Closing users video windows before trying to open new ones

This commit is contained in:
Pedro Beschorner Marin 2015-07-08 19:15:50 +00:00
parent c1d80eeda8
commit d1bce6ffe0
2 changed files with 6 additions and 9 deletions

View File

@ -131,10 +131,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<EventHandlers type="{BBBEvent.CAM_SETTINGS_CLOSED}">
<MethodInvoker generator="{VideoEventMapDelegate}" method="handleCamSettingsClosedEvent" arguments="{event}"/>
</EventHandlers>
<EventHandlers type="{BBBEvent.RECONNECT_DISCONNECTED_EVENT}">
<MethodInvoker generator="{VideoEventMapDelegate}" method="closeAllWindows"/>
</EventHandlers>
<EventHandlers type="{PlayConnectionReady.PLAY_CONNECTION_READY}">
<MethodInvoker generator="{VideoEventMapDelegate}" method="handlePlayConnectionReady" arguments="{event}" />

View File

@ -227,13 +227,14 @@ package org.bigbluebutton.modules.videoconf.maps
private function openWebcamWindowFor(userID:String):void {
trace("VideoEventMapDelegate:: [" + me + "] openWebcamWindowFor:: open window for = [" + userID + "]");
if (hasWindow(userID)) {
trace("VideoEventMapDelegate:: [" + me + "] openWebcamWindowFor:: user = [" + userID + "] has a window open. Close it.");
closeWindow(userID);
}
if (! UsersUtil.isMe(userID) && UsersUtil.hasWebcamStream(userID)) {
trace("VideoEventMapDelegate:: [" + me + "] openWebcamWindowFor:: Not ME and user = [" + userID + "] is publishing.");
if (hasWindow(userID)) {
trace("VideoEventMapDelegate:: [" + me + "] openWebcamWindowFor:: user = [" + userID + "] has a window open. Close it.");
closeWindow(userID);
}
trace("VideoEventMapDelegate:: [" + me + "] openWebcamWindowFor:: View user's = [" + userID + "] webcam.");
initAllPlayConnectionsFor(userID);
} else {