Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,9 @@ DEPENDENCIES
tabulo (~> 2.8.1)
tzinfo-data
webmock

RUBY VERSION
ruby 2.7.7p221

BUNDLED WITH
2.4.12
4 changes: 4 additions & 0 deletions app/models/recording.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def self.create_from_metadata_xml(metadata, overrides = {})
recording_params[:participants] = participants.to_i if participants.present?
state = recording_xml.at_xpath('state')&.text
recording_params[:state] = state if state.present?
rawSize = recording_xml.at_xpath('raw_size')&.text
recording_params[:rawSize] = rawSize.to_i if rawSize.present?
size = recording_xml.at_xpath('size')&.text
recording_params[:size] = size.to_i if size.present?
# Workaround screenshare state bug
recording_params[:state] = 'published' if recording_params[:state] == 'available'
start_time = recording_xml.at_xpath('start_time')&.text
Expand Down
2 changes: 2 additions & 0 deletions app/views/bigbluebutton_api/get_recordings.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ xml.response do
xml.startTime((recording.starttime.to_r * 1000).to_i)
xml.endTime((recording.endtime.to_r * 1000).to_i)
xml.participants recording.participants unless recording.participants.nil?
xml.rawSize recording.rawSize unless recording.rawSize.nil?
xml.size recording.size unless recording.size.nil?
xml.metadata do
recording.metadata.each do |metadatum|
if metadatum.value.blank?
Expand Down