From f6c49847fbc1ead8ccfb02f7ee5a037d796a1644 Mon Sep 17 00:00:00 2001 From: Calvin Walton Date: Thu, 3 Aug 2017 11:21:51 -0400 Subject: [PATCH] Use new shape thickness calculation on BBB 2.0 Thickness is now fraction of page width, rather than "pixels" on an unspecified screen size. --- .../presentation/scripts/publish/presentation.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/record-and-playback/presentation/scripts/publish/presentation.rb b/record-and-playback/presentation/scripts/publish/presentation.rb index 89f0586e69..e80ec5aef0 100755 --- a/record-and-playback/presentation/scripts/publish/presentation.rb +++ b/record-and-playback/presentation/scripts/publish/presentation.rb @@ -939,6 +939,11 @@ def processShapesAndClears end end + if $version_atleast_2_0 + # Shape thickness is now calculated as a fraction of page width + $shapeThickness = $shapeThickness.to_f * $vbox_width + end + case $shapeType when 'pencil' storePencilShape() @@ -1179,9 +1184,9 @@ begin $meeting_start = @doc.xpath("//event")[0][:timestamp] $meeting_end = @doc.xpath("//event").last()[:timestamp] - ## These $version variables are not used anywere in this code ## $version = BigBlueButton::Events.bbb_version("#{$process_dir}/events.xml") $version_atleast_0_9_0 = BigBlueButton::Events.bbb_version_compare("#{$process_dir}/events.xml", 0, 9, 0) + $version_atleast_2_0 = BigBlueButton::Events.bbb_version_compare("#{$process_dir}/events.xml", 2, 0, 0) BigBlueButton.logger.info("Creating metadata.xml") # Get the real-time start and end timestamp