Added a custom preloader to try to handle runtime shared library errors; More cleanup of old code
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@3272 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
02a955ff19
commit
ab9ceb78ba
@ -1,85 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
BigBlueButton - http://www.bigbluebutton.org
|
||||
|
||||
Copyright (c) 2008-2009 by respective authors (see below). All rights reserved.
|
||||
|
||||
BigBlueButton is free software; you can redistribute it and/or modify it under the
|
||||
terms of the GNU Lesser General Public License as published by the Free Software
|
||||
Foundation; either version 3 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with BigBlueButton; if not, If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
$Id: $
|
||||
-->
|
||||
|
||||
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
|
||||
implements="org.bigbluebutton.common.IBigBlueButtonModule"
|
||||
creationComplete="onCreationComplete()">
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import org.bigbluebutton.modules.whiteboard.BoardFacade;
|
||||
import org.bigbluebutton.common.messaging.Router;
|
||||
|
||||
private var _router:Router;
|
||||
private var _moduleID:String = "WhiteboardModule";
|
||||
private var _moduleName:String = "Whiteboard Module";
|
||||
private var _attributes:Object;
|
||||
|
||||
private function onCreationComplete():void{
|
||||
LogUtil.debug("WhiteboardModule initialized");
|
||||
}
|
||||
|
||||
public function acceptRouter(router:Router):void{
|
||||
_router = router;
|
||||
}
|
||||
|
||||
public function get router():Router{
|
||||
return _router;
|
||||
}
|
||||
|
||||
public function get moduleId():String{
|
||||
return _moduleID;
|
||||
}
|
||||
|
||||
public function get moduleName():String{
|
||||
return _moduleName;
|
||||
}
|
||||
|
||||
public function get uri():String{
|
||||
return _attributes.uri + "/" + _attributes.room;
|
||||
}
|
||||
|
||||
public function get username():String {
|
||||
return _attributes.username;
|
||||
}
|
||||
|
||||
public function get userid():Number {
|
||||
return _attributes.userid as Number;
|
||||
}
|
||||
|
||||
public function start(attributes:Object):void{
|
||||
LogUtil.debug("whiteboard attr: " + attributes.username);
|
||||
_attributes = attributes;
|
||||
BoardFacade.getInstance().startup(this);
|
||||
}
|
||||
|
||||
public function stop():void{
|
||||
BoardFacade.getInstance().stop(this);
|
||||
}
|
||||
|
||||
public function get role():String{
|
||||
return _attributes.role;
|
||||
}
|
||||
]]>
|
||||
</mx:Script>
|
||||
|
||||
</mx:Module>
|
@ -0,0 +1,23 @@
|
||||
package org.bigbluebutton.main.managers
|
||||
{
|
||||
import mx.events.RSLEvent;
|
||||
import mx.preloaders.DownloadProgressBar;
|
||||
|
||||
import org.bigbluebutton.util.i18n.ResourceUtil;
|
||||
|
||||
public class BigBlueButtonPreloader extends DownloadProgressBar
|
||||
{
|
||||
public function BigBlueButtonPreloader()
|
||||
{
|
||||
super();
|
||||
downloadingLabel = "Downloading BigBlueButton main...";
|
||||
initializingLabel = "Initializing BigBlueButton...";
|
||||
addEventListener(RSLEvent.RSL_ERROR, sharedLibraryLoadingFailed);
|
||||
}
|
||||
|
||||
private function sharedLibraryLoadingFailed(e:RSLEvent):void{
|
||||
ResourceUtil.getInstance().changeLocale([ResourceUtil.DEFAULT_LANGUAGE]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -32,7 +32,7 @@ package org.bigbluebutton.util.i18n
|
||||
private static var instance:ResourceUtil = null;
|
||||
|
||||
private static var MSG_RESOURCE:String = 'bbbResources';
|
||||
private static var DEFAULT_LANGUAGE:String = "en_US";
|
||||
public static var DEFAULT_LANGUAGE:String = "en_US";
|
||||
|
||||
private var localeChain:Array = [ "en_US", "zh_CN", "fr_FR" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user