2015-09-30 04:16:45 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
|
|
|
|
BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
|
|
|
|
|
|
|
|
Copyright (c) 2012 BigBlueButton Inc. and by respective authors (see below).
|
|
|
|
|
|
|
|
This program 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.0 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
|
|
|
|
xmlns:maps="org.bigbluebutton.modules.caption.maps.*"
|
|
|
|
xmlns:mate="http://mate.asfusion.com/"
|
|
|
|
implements="org.bigbluebutton.common.IBigBlueButtonModule"
|
|
|
|
creationComplete="onCreationComplete()">
|
|
|
|
|
|
|
|
<maps:CaptionEventMap id="captionEventMap"/>
|
|
|
|
|
|
|
|
<mx:Script>
|
|
|
|
<![CDATA[
|
|
|
|
import com.asfusion.mate.events.Dispatcher;
|
|
|
|
|
2015-10-16 06:42:01 +08:00
|
|
|
import org.as3commons.logging.api.ILogger;
|
|
|
|
import org.as3commons.logging.api.getClassLogger;
|
2015-09-30 04:16:45 +08:00
|
|
|
import org.bigbluebutton.modules.caption.events.StartCaptionModuleEvent;
|
|
|
|
import org.bigbluebutton.modules.caption.events.StopCaptionModuleEvent;
|
|
|
|
|
2015-10-16 06:42:01 +08:00
|
|
|
private static const LOGGER:ILogger = getClassLogger(CaptionModule);
|
|
|
|
|
2015-09-30 04:16:45 +08:00
|
|
|
private var _moduleName:String = "Caption Module";
|
|
|
|
|
|
|
|
private function onCreationComplete():void {
|
2015-10-16 06:42:01 +08:00
|
|
|
LOGGER.debug("CaptionModule Initialized");
|
2015-09-30 04:16:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public function get moduleName():String {
|
|
|
|
return _moduleName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function start(attributes:Object):void {
|
2015-10-16 06:42:01 +08:00
|
|
|
LOGGER.debug("Dispatching StartCaptionModuleEvent");
|
2015-09-30 04:16:45 +08:00
|
|
|
var dispatcher:Dispatcher = new Dispatcher();
|
|
|
|
|
|
|
|
var event:StartCaptionModuleEvent = new StartCaptionModuleEvent(StartCaptionModuleEvent.START_CAPTION_MODULE_EVENT);
|
|
|
|
event.attributes = attributes;
|
|
|
|
dispatcher.dispatchEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function stop():void {
|
2015-10-16 06:42:01 +08:00
|
|
|
LOGGER.debug("Dispatching StopCaptionModuleEvent");
|
2015-09-30 04:16:45 +08:00
|
|
|
var dispatcher:Dispatcher = new Dispatcher();
|
|
|
|
|
|
|
|
var event:StopCaptionModuleEvent = new StopCaptionModuleEvent(StopCaptionModuleEvent.STOP_CAPTION_MODULE_EVENT);
|
|
|
|
dispatcher.dispatchEvent(event);
|
|
|
|
}
|
|
|
|
]]>
|
|
|
|
</mx:Script>
|
|
|
|
</mx:Module>
|