You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2017/01/11 10:22:05 UTC

svn commit: r1778267 - in /openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf: commonVideoViewContentSWF10.lzx video/baseVideoObject.lzx

Author: solomax
Date: Wed Jan 11 10:22:05 2017
New Revision: 1778267

URL: http://svn.apache.org/viewvc?rev=1778267&view=rev
Log:
[OPENMEETINGS-1376] video-only window being displayed as expected

Modified:
    openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/commonVideoViewContentSWF10.lzx
    openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/video/baseVideoObject.lzx

Modified: openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/commonVideoViewContentSWF10.lzx
URL: http://svn.apache.org/viewvc/openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/commonVideoViewContentSWF10.lzx?rev=1778267&r1=1778266&r2=1778267&view=diff
==============================================================================
--- openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/commonVideoViewContentSWF10.lzx (original)
+++ openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/commonVideoViewContentSWF10.lzx Wed Jan 11 10:22:05 2017
@@ -133,22 +133,16 @@
 		setPartnerName(vidContainer, cl.firstname, cl.lastname);
 		switch (cl.avsettings) {
 			case 'a':
-				vidContainer.setVideouserProfilePic(cl);
 				if ($debug) Debug.warn("start play");
 				vidContainer._chatvideoinner._videostream.playStream(cl.broadCastID, -1);
-				vidContainer.setAttribute("visible", false);
 				break;
 			case 'v':
 			case 'av':
 				//this means avsettings is either: "v" or "av"
-				vidContainer.setDefaultVideoSize(cl.VWidth, cl.VHeight);
 				vidContainer._chatvideoinner._videostream.playStream(cl.broadCastID, -1);
-				vidContainer.setAttribute("visible", true);
 				break;
 			case 'n':
 			default:
-				vidContainer.setVideouserProfilePic(cl);
-				vidContainer.setAttribute("visible", false);
 				break;
 		}
 		vidContainer.updateAVSettingsSymbol(cl);
@@ -341,11 +335,6 @@
 		if (obj == null) {
 			obj = this.getNewVideoObjectByPos(rcl.publicSID);
 		}
-		if ("n" == rcl.avsettings || "a" == rcl.avsettings) {
-			obj.setVideouserProfilePic(rcl);
-		} else {
-			obj.deleteVideoConfProfilePic();
-		}
 		obj.thisVars = rcl;
 		obj.updateAVSettingsSymbol(rcl);
 		var v = ("a" == rcl.avsettings && obj.isInterview) || ("a" != rcl.avsettings && rcl.avsettings != "n");
@@ -791,11 +780,6 @@
 		if ($debug) Debug.write("startAvBroadcast::doninitalize");
 		var settings = getAVmode();
 		if ($debug) Debug.write("startAvBroadcast::mode, ", settings, canvas.currentClient.avsettings);
-		var vWidth = canvas.currentClient.VWidth;
-		var vHeight = canvas.currentClient.VHeight;
-		if (!canvas.isInterview) {
-			myvideocontainer.setDefaultVideoSize(vWidth, vHeight);
-		}
 
 		var videoview = myvideocontainer._chatvideoinner._videostream;
 		if ($debug) Debug.write("myvideocontainer: ", myvideocontainer);
@@ -805,45 +789,21 @@
 		if ($debug) Debug.write("startAvBroadcast", _camera, _micro, settings, videoview);
 
 		if ($debug) Debug.write("BroadcastId: ", canvas.currentClient.broadCastID);
-		switch (settings){
+		switch (settings) {
 			case "av":
 				videoview.broadcast(canvas.currentClient.broadCastID, _camera, _micro);
-				myvideocontainer.setAttribute("visible", true);
-				myvideocontainer._toolbar._mute.setAttribute("visible", true);
-				myvideocontainer._toolbar._volume.setAttribute("visible", true);
-				if(!canvas.isInterview && myvideocontainer.minimized) {
-					myvideocontainer.reminimize();
-				}
 				break;
 			case "a":
 				videoview.broadcast(canvas.currentClient.broadCastID, null, _micro);
-				myvideocontainer.setAttribute("visible", true);
-				myvideocontainer._toolbar._mute.setAttribute("visible", true);
-				myvideocontainer._toolbar._volume.setAttribute("visible", true);
-				if(!canvas.isInterview && !myvideocontainer.minimized) {
-					myvideocontainer.minimize();
-				}
 				break;
 			case "v":
 				videoview.broadcast(canvas.currentClient.broadCastID, _camera, null);
-				myvideocontainer.setAttribute("visible", true);
-				myvideocontainer._toolbar._mute.setAttribute("visible", false);
-				myvideocontainer._toolbar._volume.setAttribute("visible", false);
-				if(!canvas.isInterview && myvideocontainer.minimized) {
-					myvideocontainer.reminimize();
-				}
 				break;
 			case "n":
-				if ($debug) Debug.write("Do not Publish A/V");
-				//Prevent from Hiding the Box in Event Modus
-				if (canvas.thishib.modus == "conference") {
-					myvideocontainer.setAttribute("visible", false);
-				}
-				break;
 			default:
-				if ($debug) Debug.warn("no valid device Setup chosen");
 				break;
 		}
+		myvideocontainer.updateAVSettingsSymbol(canvas.currentClient);
 		enableRecordingButton();
 	]]>
 	</method>

Modified: openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/video/baseVideoObject.lzx
URL: http://svn.apache.org/viewvc/openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/video/baseVideoObject.lzx?rev=1778267&r1=1778266&r2=1778267&view=diff
==============================================================================
--- openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/video/baseVideoObject.lzx (original)
+++ openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/video/baseVideoObject.lzx Wed Jan 11 10:22:05 2017
@@ -201,8 +201,49 @@
 		</method>
 
 		<method name="updateAVSettingsSymbol" args="rcl">
-			//FIXME: Set a Symbol wether this Client is Audio(only)/Video(only), both or Profile Picture
+		<![CDATA[
+			//FIXME: Set a Symbol whereve this Client is Audio(only)/Video(only), both or Profile Picture
 			if ($debug) Debug.warn("updateAVSettingsSymbol TODO ",rcl);
+			switch (rcl.avsettings) {
+				case "av":
+					this.setDefaultVideoSize(rcl.VWidth, rcl.VHeight);
+					this.setAttribute("visible", true);
+					this._toolbar._mute.setAttribute("visible", true);
+					this._toolbar._volume.setAttribute("visible", true);
+					if(!canvas.isInterview && this.minimized) {
+						this.reminimize();
+					}
+					break;
+				case "a":
+					this.setAttribute("visible", true);
+					this._toolbar._mute.setAttribute("visible", true);
+					this._toolbar._volume.setAttribute("visible", true);
+					if(!canvas.isInterview && this.minimized) {
+						this.reminimize();
+					}
+					this.setVideouserProfilePic(rcl);
+					break;
+				case "v":
+					this.setDefaultVideoSize(rcl.VWidth, rcl.VHeight);
+					this.setAttribute("visible", true);
+					this._toolbar._mute.setAttribute("visible", false);
+					this._toolbar._volume.setAttribute("visible", false);
+					if(!canvas.isInterview && this.minimized) {
+						this.reminimize();
+					}
+					break;
+				case "n":
+					if ($debug) Debug.write("Do not Publish A/V");
+					//Prevent from Hiding the Box in Event Modus
+					if (canvas.thishib.modus == "conference") {
+						this.setAttribute("visible", false);
+					}
+					break;
+				default:
+					if ($debug) Debug.warn("no valid device Setup chosen");
+					break;
+			}
+		]]>
 		</method>
 
 		<method name="doResize" args="bool">