diff --git a/bigbluebutton-client/resources/config.xml.template b/bigbluebutton-client/resources/config.xml.template index 743cc0f410..f3811ff9af 100755 --- a/bigbluebutton-client/resources/config.xml.template +++ b/bigbluebutton-client/resources/config.xml.template @@ -31,6 +31,7 @@ uri="rtmp://HOST/bigbluebutton" recordingHost="http://HOST" windowVisible="true" + position="bottom-left" /> + click="toggleMuteMeState()" height="30" maxWidth="180"> diff --git a/bigbluebutton-client/src/org/bigbluebutton/util/i18n/ResourceUtil.as b/bigbluebutton-client/src/org/bigbluebutton/util/i18n/ResourceUtil.as index c43e240164..5948c6239b 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/util/i18n/ResourceUtil.as +++ b/bigbluebutton-client/src/org/bigbluebutton/util/i18n/ResourceUtil.as @@ -119,11 +119,15 @@ package org.bigbluebutton.util.i18n public function setPreferredLocale(locale:String):void { LogUtil.debug("Setting up preferred locale " + locale); if (isPreferredLocaleAvailable(preferredLocale)) { + LogUtil.debug("The locale " + preferredLocale + " is available"); preferredLocale = locale; - localeIndex = getIndexForLocale(preferredLocale); - LogUtil.debug("Setting up preferred locale index " + localeIndex); - changeLocale(preferredLocale); + }else{ + LogUtil.debug("The locale " + preferredLocale + " isn't available. Default will be: " + MASTER_LOCALE); + preferredLocale = MASTER_LOCALE; } + localeIndex = getIndexForLocale(preferredLocale); + LogUtil.debug("Setting up preferred locale index " + localeIndex); + changeLocale(preferredLocale); } private function loadMasterLocale(locale:String):void { diff --git a/record-and-playback/core/lib/recordandplayback/events_archiver.rb b/record-and-playback/core/lib/recordandplayback/events_archiver.rb index 6b229bdaf4..8f12646dbf 100755 --- a/record-and-playback/core/lib/recordandplayback/events_archiver.rb +++ b/record-and-playback/core/lib/recordandplayback/events_archiver.rb @@ -65,7 +65,18 @@ module BigBlueButton xml.event(:timestamp => res[TIMESTAMP], :module => res[MODULE], :eventname => res[EVENTNAME]) { res.each do |key, val| if not [TIMESTAMP, MODULE, EVENTNAME, MEETINGID].include?(key) - xml.method_missing(key, val) + # a temporary solution for enable a good display of the xml in the presentation module and for add CDATA to chat + if res[MODULE] == "PRESENTATION" && key == "slidesInfo" + xml.method_missing(key){ + xml << val + } + elsif res[MODULE] == "CHAT" && res[EVENTNAME] == "PublicChatEvent" && key == "message" + xml.method_missing(key){ + xml.cdata!(val) + } + else + xml.method_missing(key, val) + end end end } diff --git a/record-and-playback/slides/scripts/publish/slides.rb b/record-and-playback/slides/scripts/publish/slides.rb index f718cf3a52..1633caf588 100755 --- a/record-and-playback/slides/scripts/publish/slides.rb +++ b/record-and-playback/slides/scripts/publish/slides.rb @@ -122,39 +122,5 @@ if (playback == "slides") end FileUtils.cp_r(package_dir, publish_dir) - # Create index.html - dir_list = Dir.entries(publish_dir) - ['.', '..'] - recordings = [] - dir_list.each do |d| - if File::directory?("#{publish_dir}/#{d}") - rec_time = File.ctime("#{publish_dir}/#{d}") - play_link = "http://#{playback_host}/playback/slides/playback.html?meetingId=#{d}" - - metadata = BigBlueButton::Events.get_meeting_metadata("#{publish_dir}/#{d}/events.xml") - - recordings << {:rec_time => rec_time, :link => play_link, :title => metadata['title'].nil? ? metadata['meetingId'] : metadata['title']} - end - end - - b = Builder::XmlMarkup.new(:indent => 2) - html = b.html { - b.head { - b.title "Slides Playback Recordings" - } - b.body { - b.h1 "Slides Playback Recordings" - recordings.each do |r| - b.p { |y| - y << r[:rec_time].to_s - b.a({:href => r[:link]}, r[:title]) - } - end - } - } - - index_html = File.new("#{publish_dir}/index.html","w") - index_html.write(html) - index_html.close - File.chmod(0644, "#{publish_dir}/index.html") end end