forked from External/greenlight
finish settings and public recordings
This commit is contained in:
@ -109,7 +109,7 @@ class Room < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
# Fetches all recordings for a meeting.
|
||||
# Fetches all recordings for a room.
|
||||
def recordings
|
||||
res = bbb.get_recordings(meetingID: bbb_id)
|
||||
|
||||
@ -130,6 +130,11 @@ class Room < ApplicationRecord
|
||||
res[:recordings]
|
||||
end
|
||||
|
||||
# Fetches a rooms public recordings.
|
||||
def public_recordings
|
||||
recordings.select do |r| r[:metadata]["gl-listed"] end
|
||||
end
|
||||
|
||||
def update_recording(record_id, meta)
|
||||
meta.merge!({recordID: record_id})
|
||||
|
||||
|
Reference in New Issue
Block a user