bigbluebutton-Github/bigbluebutton-client/src/CaptionModule.mxml

66 lines
2.4 KiB
Plaintext
Raw Normal View History

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;
import org.bigbluebutton.common.LogUtil;
import org.bigbluebutton.modules.caption.events.StartCaptionModuleEvent;
import org.bigbluebutton.modules.caption.events.StopCaptionModuleEvent;
private var _moduleName:String = "Caption Module";
private function onCreationComplete():void {
LogUtil.debug("CaptionModule Initialized");
}
public function get moduleName():String {
return _moduleName;
}
public function start(attributes:Object):void {
LogUtil.debug("Dispatching StartCaptionModuleEvent");
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 {
LogUtil.debug("Dispatching StopCaptionModuleEvent");
var dispatcher:Dispatcher = new Dispatcher();
var event:StopCaptionModuleEvent = new StopCaptionModuleEvent(StopCaptionModuleEvent.STOP_CAPTION_MODULE_EVENT);
dispatcher.dispatchEvent(event);
}
]]>
</mx:Script>
</mx:Module>