diff --git a/clients/flash/air-client/src/org/bigbluebutton/air/screenshare/ScreenshareConfig.as b/clients/flash/air-client/src/org/bigbluebutton/air/screenshare/ScreenshareConfig.as new file mode 100755 index 0000000000..40993f6ce5 --- /dev/null +++ b/clients/flash/air-client/src/org/bigbluebutton/air/screenshare/ScreenshareConfig.as @@ -0,0 +1,33 @@ +package org.bigbluebutton.air.screenshare +{ + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.signalCommandMap.api.ISignalCommandMap; + import robotlegs.bender.framework.api.IConfig; + + public class ScreenshareConfig implements IConfig + { + [Inject] + public var mediatorMap:IMediatorMap; + + [Inject] + public var signalCommandMap:ISignalCommandMap; + + public function configure():void { + mediators(); + signals(); + } + + /** + * Maps view mediators to views. + */ + private function mediators():void { + //mediatorMap.map(IVideoButton).toMediator(VideoButtonMediator); + //mediatorMap.map(IVideoChatView).toMediator(VideoChatViewMediator); + //mediatorMap.map(ISwapCameraButton).toMediator(SwapCameraMediator); + } + + private function signals():void { + + } + } +} \ No newline at end of file diff --git a/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/IScreenshareConnection.as b/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/IScreenshareConnection.as new file mode 100755 index 0000000000..40714d7553 --- /dev/null +++ b/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/IScreenshareConnection.as @@ -0,0 +1,17 @@ +package org.bigbluebutton.lib.screenshare.services +{ + import flash.net.NetConnection; + + import org.osflash.signals.ISignal; + + public interface IScreenshareConnection + { + function get connectionFailureSignal():ISignal; + function get connectionSuccessSignal():ISignal; + //function set uri(uri:String):void; + //function get uri():String; + function get connection():NetConnection; + function connect():void; + function disconnect(onUserCommand:Boolean):void; + } +} \ No newline at end of file diff --git a/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/ScreenshareConnection.as b/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/ScreenshareConnection.as new file mode 100755 index 0000000000..426ef9b1e8 --- /dev/null +++ b/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/ScreenshareConnection.as @@ -0,0 +1,66 @@ +package org.bigbluebutton.lib.screenshare.services +{ + + import flash.net.NetConnection; + + import org.bigbluebutton.lib.common.services.DefaultConnectionCallback; + import org.bigbluebutton.lib.common.services.IBaseConnection; + import org.bigbluebutton.lib.main.models.IConferenceParameters; + import org.osflash.signals.ISignal; + import org.osflash.signals.Signal; + + public class ScreenshareConnection extends DefaultConnectionCallback implements IScreenshareConnection + { + private const LOG:String = "ScreenshareConnection::"; + + [Inject] + public var baseConnection:IBaseConnection; + + [Inject] + public var conferenceParameters:IConferenceParameters; + + protected var _connectionSuccessSignal:ISignal = new Signal(); + + protected var _connectionFailureSignal:ISignal = new Signal(); + + public function ScreenshareConnection() + { + } + + [PostConstruct] + public function init():void { + baseConnection.init(this); + baseConnection.connectionSuccessSignal.add(onConnectionSuccess); + baseConnection.connectionFailureSignal.add(onConnectionFailure); + } + + private function onConnectionFailure(reason:String):void { + connectionFailureSignal.dispatch(reason); + } + + private function onConnectionSuccess():void { + connectionSuccessSignal.dispatch(); + } + + public function get connectionFailureSignal():ISignal { + return _connectionFailureSignal; + } + + public function get connectionSuccessSignal():ISignal { + return _connectionSuccessSignal; + } + + public function get connection():NetConnection { + return baseConnection.connection; + } + + public function connect():void { + trace("Screenshare connect"); + // baseConnection.connect(uri, conferenceParameters.meetingID); + } + + public function disconnect(onUserCommand:Boolean):void { + baseConnection.disconnect(onUserCommand); + } + } +} \ No newline at end of file diff --git a/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/ScreenshareMessageReceiver.as b/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/ScreenshareMessageReceiver.as new file mode 100755 index 0000000000..e0cdaa8d3b --- /dev/null +++ b/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/ScreenshareMessageReceiver.as @@ -0,0 +1,9 @@ +package org.bigbluebutton.lib.screenshare.services +{ + public class ScreenshareMessageReceiver + { + public function ScreenshareMessageReceiver() + { + } + } +} \ No newline at end of file diff --git a/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/ScreenshareMessageSender.as b/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/ScreenshareMessageSender.as new file mode 100755 index 0000000000..c5749d84a0 --- /dev/null +++ b/clients/flash/common-library/src/main/actionscript/org/bigbluebutton/lib/screenshare/services/ScreenshareMessageSender.as @@ -0,0 +1,9 @@ +package org.bigbluebutton.lib.screenshare.services +{ + public class ScreenshareMessageSender + { + public function ScreenshareMessageSender() + { + } + } +} \ No newline at end of file