Skip to content
Snippets Groups Projects
Commit 9ada59d1 authored by Calvin Walton's avatar Calvin Walton
Browse files

Fix more variable references in screenshare events

parent cd3e28a0
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,7 @@ module BigBlueButton ...@@ -219,7 +219,7 @@ module BigBlueButton
filename = start_event.at_xpath('file').text filename = start_event.at_xpath('file').text
filename = "#{archive_dir}/deskshare/#{File.basename(filename)}" filename = "#{archive_dir}/deskshare/#{File.basename(filename)}"
when 'StartWebRTCDesktopShareEvent' when 'StartWebRTCDesktopShareEvent'
uri = event.at_xpath('filename').text uri = start_event.at_xpath('filename').text
filename = "#{archive_dir}/deskshare/#{File.basename(uri)}" filename = "#{archive_dir}/deskshare/#{File.basename(uri)}"
else else
next next
...@@ -240,10 +240,10 @@ module BigBlueButton ...@@ -240,10 +240,10 @@ module BigBlueButton
events.xpath('/recording/event[@module="Deskshare" or @module="bbb-webrtc-sfu"]').each do |stop_event| events.xpath('/recording/event[@module="Deskshare" or @module="bbb-webrtc-sfu"]').each do |stop_event|
case stop_event['eventname'] case stop_event['eventname']
when 'DeskshareStoppedEvent' when 'DeskshareStoppedEvent'
filename = start_event.at_xpath('file').text filename = stop_event.at_xpath('file').text
filename = "#{archive_dir}/deskshare/#{File.basename(filename)}" filename = "#{archive_dir}/deskshare/#{File.basename(filename)}"
when 'StopWebRTCDesktopShareEvent' when 'StopWebRTCDesktopShareEvent'
uri = event.at_xpath('filename').text uri = stop_event.at_xpath('filename').text
filename = "#{archive_dir}/deskshare/#{File.basename(uri)}" filename = "#{archive_dir}/deskshare/#{File.basename(uri)}"
else else
next next
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment