Revision: 4533
Author:   [email protected]
Date:     Wed Nov  9 22:19:55 2011
Log: ismoderator is passed to the video component through a local connection
http://code.google.com/p/openmeetings/source/detail?r=4533

Modified:
 /branches/video-component/WebContent/openmeetings/base/mainAttributes.lzx
 /branches/video-component/WebContent/openmeetings/base/mainMethods.lzx
 /branches/video-component/WebContent/openmeetings/main.as3.lzx
 /branches/video-component/WebContent/openmeetings/maindebug.as3.lzx
/branches/video-component/WebContent/openmeetings/modules/conference/commonVideoComponentAdapter.lzx /branches/video-component/WebContent/openmeetings/modules/conference/interviewuserlist/interviewVideoBox.lzx /branches/video-component/WebContent/openmeetings/modules/conference/participents/participentList.lzx /branches/video-component/WebContent/openmeetings/modules/conference/video/editRecordStream.lzx /branches/video-component/WebContent/openmeetings/swf10/base/remote/baseVideoStreamDevice.lzx /branches/video-component/WebContent/openmeetings/swf10/commonVideoViewContent.lzx /branches/video-component/WebContent/openmeetings/swf10/video/baseVideoObject.lzx /branches/video-component/WebContent/openmeetings/swf10/video/editRecordStream.lzx

=======================================
--- /branches/video-component/WebContent/openmeetings/base/mainAttributes.lzx Tue Nov 8 23:12:38 2011 +++ /branches/video-component/WebContent/openmeetings/base/mainAttributes.lzx Wed Nov 9 22:19:55 2011
@@ -15,11 +15,11 @@

 <attribute name="rtmp_lc"/>

-<attribute name="stream_lc_name" value="" type="String"/>
-
-<attribute name="stream_lc_callback_name" value="" type="String"/>
-
-<attribute name="stream_lc"/>
+<attribute name="videoComp_lc_name" value="" type="String"/>
+
+<attribute name="videoComp_lc_callback_name" value="" type="String"/>
+
+<attribute name="videoComp_lc"/>

 <!--- URL/IP to use for the Server 192.168.178.28
        inno02.fh-pforzheim.de macbook 192.168.2.103
=======================================
--- /branches/video-component/WebContent/openmeetings/base/mainMethods.lzx Tue Nov 8 23:12:38 2011 +++ /branches/video-component/WebContent/openmeetings/base/mainMethods.lzx Wed Nov 9 22:19:55 2011
@@ -174,12 +174,12 @@
         this.setAttribute('lc_SID', pMap['lcSID']);
         this.setAttribute('vid_lc_name', this.lc_SID + "__videoLC");
         this.setAttribute('rtmp_lc_name', this.lc_SID + "__rtmpLC");
-        this.setAttribute('stream_lc_name', this.lc_SID + "__streamLC");
- this.setAttribute('stream_lc_callback_name', this.lc_SID + "__streamLC_cback");
-
-        var stream_lc = new LocalConnection();
-        stream_lc.connect(this.stream_lc_name);
-        this.setAttribute('stream_lc', stream_lc);
+        this.setAttribute('videoComp_lc_name', this.lc_SID + "__streamLC");
+ this.setAttribute('videoComp_lc_callback_name', this.lc_SID + "__streamLC_cback");
+
+        var videoComp_lc = new LocalConnection();
+        videoComp_lc.connect(this.videoComp_lc_name);
+        this.setAttribute('videoComp_lc', videoComp_lc);


         mainBaseText.setAttribute('text',canvas.currentappname);
=======================================
--- /branches/video-component/WebContent/openmeetings/main.as3.lzx Tue Nov 8 23:12:38 2011 +++ /branches/video-component/WebContent/openmeetings/main.as3.lzx Wed Nov 9 22:19:55 2011
@@ -24,11 +24,11 @@

     <attribute name="rtmp_lc"/>

-    <attribute name="stream_lc_name" />
-
-    <attribute name="stream_lc_callback_name" />
-
-    <attribute name="stream_lc" />
+    <attribute name="videoComp_lc_name" />
+
+    <attribute name="videoComp_lc_callback_name" />
+
+    <attribute name="videoComp_lc" />

     <include href="swf10/base/" />

@@ -56,12 +56,12 @@
         this.setAttribute('lc_SID', this.getLCSID());
         this.setAttribute('vid_lc_name', lc_SID + '__videoLC');
         this.setAttribute('rtmp_lc_name', lc_SID + '__rtmpLC');
-        this.setAttribute('stream_lc_name', lc_SID + '__streamLC');
- this.setAttribute('stream_lc_callback_name', lc_SID + '__streamLC_cback');
-
-        var stream_lc_cback:LocalConnection = new LocalConnection();
-        stream_lc_cback.connect(this.stream_lc_callback_name);
-        this.setAttribute('stream_lc',stream_lc_cback);
+        this.setAttribute('videoComp_lc_name', lc_SID + '__streamLC');
+ this.setAttribute('videoComp_lc_callback_name', lc_SID + '__streamLC_cback');
+
+        var videoComp_lc_cback:LocalConnection = new LocalConnection();
+        videoComp_lc_cback.connect(this.videoComp_lc_callback_name);
+        this.setAttribute('videoComp_lc',videoComp_lc_cback);

var request:URLRequest = new URLRequest("main.swf8.swf?lzproxied=solo&lcSID="+canvas.lc_SID);
         var loader:Loader = new Loader();
=======================================
--- /branches/video-component/WebContent/openmeetings/maindebug.as3.lzx Tue Nov 8 23:12:38 2011 +++ /branches/video-component/WebContent/openmeetings/maindebug.as3.lzx Wed Nov 9 22:19:55 2011
@@ -24,11 +24,11 @@

     <attribute name="rtmp_lc"/>

-    <attribute name="stream_lc_name" />
-
-    <attribute name="stream_lc_callback_name" />
-
-    <attribute name="stream_lc" />
+    <attribute name="videoComp_lc_name" />
+
+    <attribute name="videoComp_lc_callback_name" />
+
+    <attribute name="videoComp_lc" />

     <include href="swf10/base/" />

@@ -56,12 +56,12 @@
         this.setAttribute('lc_SID', this.getLCSID());
         this.setAttribute('vid_lc_name', lc_SID + '__videoLC');
         this.setAttribute('rtmp_lc_name', lc_SID + '__rtmpLC');
-        this.setAttribute('stream_lc_name', lc_SID + '__streamLC');
- this.setAttribute('stream_lc_callback_name', lc_SID + '__streamLC_cback');
-
-        var stream_lc_cback:LocalConnection = new LocalConnection();
-        stream_lc_cback.connect(this.stream_lc_callback_name);
-        this.setAttribute('stream_lc',stream_lc_cback);
+        this.setAttribute('videoComp_lc_name', lc_SID + '__streamLC');
+ this.setAttribute('videoComp_lc_callback_name', lc_SID + '__streamLC_cback');
+
+        var videoComp_lc_cback:LocalConnection = new LocalConnection();
+        videoComp_lc_cback.connect(this.videoComp_lc_callback_name);
+        this.setAttribute('videoComp_lc',videoComp_lc_cback);

var request:URLRequest = new URLRequest("maindebug.swf8.swf?lzproxied=solo&lcSID="+canvas.lc_SID);
         var loader:Loader = new Loader();
=======================================
--- /branches/video-component/WebContent/openmeetings/modules/conference/commonVideoComponentAdapter.lzx Wed Nov 9 19:31:34 2011 +++ /branches/video-component/WebContent/openmeetings/modules/conference/commonVideoComponentAdapter.lzx Wed Nov 9 22:19:55 2011
@@ -4,12 +4,16 @@
 <class name="commonVideoComponentAdapter" extends="view">

     <handler name="oninit">
-        canvas.stream_lc.lc_switchMicMuted = function(publicSID, tMute) {
+ canvas.videoComp_lc.lc_switchMicMuted = function(publicSID, tMute) {
             if ($debug) Debug.write("lc_switchMicMuted", publicSID, tMute);
             canvas.thishib.switchMicMuted.setMute(publicSID, tMute);
         };
     </handler>

+    <handler name="onismoderator" reference="canvas" args="m">
+        canvas.lc.send(canvas.vid_lc_name, "ismoderatorChanged", m);
+    </handler>
+
     <!--
         set size of video objects
     -->
=======================================
--- /branches/video-component/WebContent/openmeetings/modules/conference/interviewuserlist/interviewVideoBox.lzx Tue Nov 8 23:12:38 2011 +++ /branches/video-component/WebContent/openmeetings/modules/conference/interviewuserlist/interviewVideoBox.lzx Wed Nov 9 22:19:55 2011
@@ -64,7 +64,7 @@
        if ($debug) Debug.write("startInterView :: ");
//canvas._videocontainer._videoviewcontent.createVideoObject(canvas.publicSID, true, this.interviewPodId);
         var t = this;
- canvas.stream_lc.onStartBroadcast = function(broadCastID, settings) { + canvas.videoComp_lc.onStartBroadcast = function(broadCastID, settings) {
             //TODO: settings
if ($debug) Debug.write("onStartBroadcast :: ", broadCastID, settings); t._videoPlay.setAttribute('chatpartnername',canvas.firstName+' '+canvas.lastName);
=======================================
--- /branches/video-component/WebContent/openmeetings/modules/conference/participents/participentList.lzx Tue Nov 8 23:12:38 2011 +++ /branches/video-component/WebContent/openmeetings/modules/conference/participents/participentList.lzx Wed Nov 9 22:19:55 2011
@@ -45,7 +45,7 @@
     <handler name="oninit">
         <![CDATA[
             var items = this._table.innerList.subnodes;
- canvas.stream_lc.lc_setSoundMuted = function(publicSID,isMuted) { + canvas.videoComp_lc.lc_setSoundMuted = function(publicSID,isMuted) { if ($debug) Debug.write("lc_setSoundMuted: publicSID, isMuted",publicSID, isMuted);

                 for (var i=1; i<items.length; i++) {
=======================================
--- /branches/video-component/WebContent/openmeetings/modules/conference/video/editRecordStream.lzx Tue Nov 8 23:12:38 2011 +++ /branches/video-component/WebContent/openmeetings/modules/conference/video/editRecordStream.lzx Wed Nov 9 22:19:55 2011
@@ -32,13 +32,13 @@
         //this.getBroadCastId.doCall();
         var t = this;
canvas.lc.send(canvas.vid_lc_name, "createEditRecordStream", this.syncUpdate, this.isInterview); - canvas.stream_lc.lc_getBroadCastId = function(chosenSetting,remoteMessage) { + canvas.videoComp_lc.lc_getBroadCastId = function(chosenSetting,remoteMessage) { if ($debug) Debug.write("lc_getBroadCastId",chosenSetting,remoteMessage);
             t.chosenSetting = chosenSetting;
             t.remoteMessage = remoteMessage;
             t.getBroadCastId.doCall();
         };
-        canvas.stream_lc.sendNotification = function(objMessage) {
+        canvas.videoComp_lc.sendNotification = function(objMessage) {
//if ($debug) Debug.write("Level sendNotification ",this.isgreater);
             t.objMessage = objMessage;
             t.sendMessage.doCall();
@@ -53,7 +53,7 @@
                <![CDATA[
                        if ($debug) 
Debug.write("getBroadCastId",value,canvas.publicSID);

- canvas.stream_lc.send(canvas.stream_lc_callback_name, 'clb_getBroadCastId', value) + canvas.videoComp_lc.send(canvas.videoComp_lc_callback_name, 'clb_getBroadCastId', value)

canvas.setAttribute("currentMicName", Microphone.names[parent.chosenMic]); canvas.setAttribute("currentCamName", Camera.names[parent.chosenCam]);
@@ -75,7 +75,7 @@
                        if ($debug) Debug.write("setUserAVSettings",value);
                        parent.currentClient = value;
                //parent.doninitalize();
- canvas.stream_lc.send(canvas.stream_lc_callback_name, 'clb_setUserAVSettings', value); + canvas.videoComp_lc.send(canvas.videoComp_lc_callback_name, 'clb_setUserAVSettings', value);
             ]]>
         </handler>
     </netRemoteCallHib>
=======================================
--- /branches/video-component/WebContent/openmeetings/swf10/base/remote/baseVideoStreamDevice.lzx Tue Nov 8 23:02:39 2011 +++ /branches/video-component/WebContent/openmeetings/swf10/base/remote/baseVideoStreamDevice.lzx Wed Nov 9 22:19:55 2011
@@ -138,7 +138,7 @@
                this.objMessage[0] = 'audioActivity';
                this.objMessage[1] = this.isgreater;
                this.objMessage[2] = parent.parent.publicSID;
- canvas.stream_lc.send(canvas.stream_lc_name, "sendNotification", this.objMessage); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, "sendNotification", this.objMessage);
        </method>

 </class>
=======================================
--- /branches/video-component/WebContent/openmeetings/swf10/commonVideoViewContent.lzx Wed Nov 9 19:31:34 2011 +++ /branches/video-component/WebContent/openmeetings/swf10/commonVideoViewContent.lzx Wed Nov 9 22:19:55 2011
@@ -40,7 +40,8 @@
             client.removeVideoByUser = this.removeVideoByUser;
             client.muteSound = this.muteSound;
             client.videoOnMove = this.videoOnMove;
- client.updateMuteStatusVideoView = this.updateMuteStatusVideoView + client.updateMuteStatusVideoView = this.updateMuteStatusVideoView;
+            client.ismoderatorChanged = this.ismoderatorChanged;

             var lc:LocalConnection = new LocalConnection();
             lc.connect(canvas.vid_lc_name);
@@ -274,6 +275,10 @@
         ]]>
     </method>

+    <method name="ismoderatorChanged" args="m">
+        canvas.setAttribute("ismoderator", m);
+    </method>
+

     <method name="setSpeakingByPos" args="publicSID,bool">
         <![CDATA[
=======================================
--- /branches/video-component/WebContent/openmeetings/swf10/video/baseVideoObject.lzx Wed Nov 9 19:31:34 2011 +++ /branches/video-component/WebContent/openmeetings/swf10/video/baseVideoObject.lzx Wed Nov 9 22:19:55 2011
@@ -548,7 +548,7 @@
refObj:this,showCheckBox:false});
                 return;
                } else {
- canvas.stream_lc.send(canvas.stream_lc_name, 'lc_switchMicMuted', this.publicSID, false); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, 'lc_switchMicMuted', this.publicSID, false);
                }
         } else {
                //disable this action for now
@@ -575,7 +575,7 @@
refObj:this,showCheckBox:false});
                     return;
                 } else {
- canvas.stream_lc.send(canvas.stream_lc_name, 'lc_switchMicMuted', this.publicSID, false); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, 'lc_switchMicMuted', this.publicSID, false);
                 }
                } else {
                if (mute) {
@@ -596,7 +596,7 @@
     <method name="confirmGloballyOff" args="bool,t" >
        if ($debug) Debug.write("confirmGloballyOff :: ",bool);
        if (bool) {
- canvas.stream_lc.send(canvas.stream_lc_name, 'lc_switchMicMuted', this.publicSID, true); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, 'lc_switchMicMuted', this.publicSID, true);
        }
     </method>

=======================================
--- /branches/video-component/WebContent/openmeetings/swf10/video/editRecordStream.lzx Tue Nov 8 23:02:39 2011 +++ /branches/video-component/WebContent/openmeetings/swf10/video/editRecordStream.lzx Wed Nov 9 22:19:55 2011
@@ -46,7 +46,7 @@
                        if ($debug) Debug.write("this.myvideocontainer 
",this.myvideocontainer);
                        if ($debug) Debug.write("editrecordstream 
###################### ");

- canvas.stream_lc.client = {clb_getBroadCastId: this.clb_getBroadCastId, clb_setUserAVSettings: this.clb_setUserAVSettings}; + canvas.videoComp_lc.client = {clb_getBroadCastId: this.clb_getBroadCastId, clb_setUserAVSettings: this.clb_setUserAVSettings};

                var t:SharedObject = SharedObject.getLocal('userdata');
                var g = t.data;
@@ -68,7 +68,7 @@
                     this.remoteMessage[0] = 'avsettings';
                     this.remoteMessage[2] = this.chosenSetting;
                     //this.getBroadCastId.doCall();
- canvas.stream_lc.send(canvas.stream_lc_name, 'lc_getBroadCastId', this.chosenSetting, this.remoteMessage); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, 'lc_getBroadCastId', this.chosenSetting, this.remoteMessage);
                 } else {
                     if (this.doDefaultAnimation) {
                         this._chooseDeviceAnimation.doStart();
@@ -170,7 +170,7 @@
                 case "vs":
videoview.broadcast(this.currentClient.broadCastID,_camera,null);
                     if(isInterview) {
- canvas.stream_lc.send(canvas.stream_lc_name, "onStartBroadcast", this.currentClient.broadCastID, settings); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, "onStartBroadcast", this.currentClient.broadCastID, settings);
                     } else {
this.myvideocontainer.setAttribute("visibility","visible");
                     }
@@ -178,7 +178,7 @@
                        case "av":
                                
videoview.broadcast(this.currentClient.broadCastID,_camera,_micro);
                     if(isInterview) {
- canvas.stream_lc.send(canvas.stream_lc_name, "onStartBroadcast", this.currentClient.broadCastID, settings); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, "onStartBroadcast", this.currentClient.broadCastID, settings);
                     } else {
this.myvideocontainer.setAttribute("visibility","visible");
                     }
@@ -187,7 +187,7 @@
                        case "a":
                                
videoview.broadcast(this.currentClient.broadCastID,null,_micro);
                     if(isInterview) {
- canvas.stream_lc.send(canvas.stream_lc_name, "onStartBroadcast", this.currentClient.broadCastID, settings); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, "onStartBroadcast", this.currentClient.broadCastID, settings);
                     } else {
                         if (this.myvideocontainer.hidebyAudioOnly) {
this.myvideocontainer.setAttribute("visibility","hidden");
@@ -202,7 +202,7 @@
                        case "v":
                                
videoview.broadcast(this.currentClient.broadCastID,_camera,null);
                                if(isInterview) {
- canvas.stream_lc.send(canvas.stream_lc_name, "onStartBroadcast", this.currentClient.broadCastID, settings); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, "onStartBroadcast", this.currentClient.broadCastID, settings);
                     } else {
this.myvideocontainer.setAttribute("visibility","visible");
                     }
@@ -411,7 +411,7 @@
             this.parent.remoteMessage[1] = "0";
             this.parent.remoteMessage[2] = this.parent.chosenSetting;
             //this.parent.getBroadCastId.doCall();
- canvas.stream_lc.send(canvas.stream_lc_name, 'lc_getBroadCastId', this.parent.chosenSetting, this.parent.remoteMessage); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, 'lc_getBroadCastId', this.parent.chosenSetting, this.parent.remoteMessage);
         </handler>
     </simpleLabelButton>

@@ -434,8 +434,8 @@
                        this.parent.remoteMessage[1] = "0";
                        this.parent.remoteMessage[2] = 
this.parent.chosenSetting;
             //this.parent.getBroadCastId.doCall();
- if ($debug) Debug.write(canvas.stream_lc_name, 'lc_getBroadCastId', this.parent.chosenSetting, this.parent.remoteMessage); - canvas.stream_lc.send(canvas.stream_lc_name, 'lc_getBroadCastId', this.parent.chosenSetting, this.parent.remoteMessage); + if ($debug) Debug.write(canvas.videoComp_lc_name, 'lc_getBroadCastId', this.parent.chosenSetting, this.parent.remoteMessage); + canvas.videoComp_lc.send(canvas.videoComp_lc_name, 'lc_getBroadCastId', this.parent.chosenSetting, this.parent.remoteMessage);
         </handler>
     </simpleLabelButton>

--
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to