forked from External/greenlight
Added inaccesible recording format (#2750)
This commit is contained in:
@ -108,6 +108,16 @@ module BbbServer
|
||||
bbb_server.send_api_request("updateRecordings", meta)
|
||||
end
|
||||
|
||||
# Update a recording from a room
|
||||
def publish_recording(record_id)
|
||||
bbb_server.publish_recordings(record_id, true)
|
||||
end
|
||||
|
||||
# Update a recording from a room
|
||||
def unpublish_recording(record_id)
|
||||
bbb_server.publish_recordings(record_id, false)
|
||||
end
|
||||
|
||||
# Deletes a recording from a room.
|
||||
def delete_recording(record_id)
|
||||
bbb_server.delete_recordings(record_id)
|
||||
|
@ -28,6 +28,12 @@ class RecordingsController < ApplicationController
|
||||
"meta_#{META_LISTED}" => (params[:state] == "public"),
|
||||
}
|
||||
|
||||
if params[:state] == "inaccessible"
|
||||
unpublish_recording(params[:record_id])
|
||||
else
|
||||
publish_recording(params[:record_id])
|
||||
end
|
||||
|
||||
res = update_recording(params[:record_id], meta)
|
||||
|
||||
# Redirects to the page that made the initial request
|
||||
|
Reference in New Issue
Block a user