Merge pull request #8349 from kepstin/screenshare-breakout

screenshare recording format: add breakout room info to metadata.xml
This commit is contained in:
Fred Dixon 2019-11-22 23:04:46 +01:00 committed by GitHub
commit bb76dc9be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,6 +166,9 @@ end
logger.info "Generating metadata xml"
duration = BigBlueButton::Events.get_recording_length(events)
meeting_xml = events.at_xpath('/recording/meeting')
breakout_xml = events.at_xpath('/recording/breakout')
breakout_rooms_xml = events.at_xpath('/recording/breakoutRooms')
metadata_xml = Nokogiri::XML::Builder.new do |xml|
xml.recording {
xml.id(meeting_id)
@ -173,6 +176,9 @@ metadata_xml = Nokogiri::XML::Builder.new do |xml|
xml.published('true')
xml.start_time(start_real_time)
xml.end_time(start_real_time + final_timestamp - initial_timestamp)
xml << meeting_xml.to_xml unless meeting_xml.nil?
xml << breakout_xml.to_xml unless breakout_xml.nil?
xml << breakout_rooms_xml.to_xml unless breakout_rooms_xml.nil?
xml.playback {
xml.format('screenshare')
xml.link("#{props['playback_protocol']}://#{props['playback_host']}/recording/screenshare/#{meeting_id}/")