Added inaccesible recording format (#2750)

This commit is contained in:
Ahmad Farhat
2021-06-02 18:50:11 -04:00
committed by GitHub
parent 1ff45a4061
commit 0f90c4e873
6 changed files with 61 additions and 10 deletions

View File

@ -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)

View File

@ -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