signup and room waiting

This commit is contained in:
Josh
2018-06-07 15:52:42 -04:00
parent 56489ee6cd
commit 657feb777f
18 changed files with 191 additions and 143 deletions

View File

@ -51,6 +51,7 @@ class Room < ApplicationRecord
# Increment room sessions.
self.sessions += 1
self.last_session = DateTime.now
self.save
#meeting_options.merge!(
@ -84,7 +85,7 @@ class Room < ApplicationRecord
return call_invalid_res if !bbb
# Get the meeting info.
meeting_info = bbb.get_meeting_info(bbb_id, nil)
meeting_info = bbb.get_meeting_info(bbb_id, nil)
# Determine the password to use when joining.
password = if options[:user_is_moderator]
@ -101,6 +102,13 @@ class Room < ApplicationRecord
end
end
# Notify waiting users that a meeting has started.
def notify_waiting
ActionCable.server.broadcast("#{uid}_waiting_channel", {
action: "started"
})
end
# Fetches all recordings for a meeting.
def recordings
res = bbb.get_recordings(meetingID: bbb_id)