Closing users video windows before trying to open new ones
This commit is contained in:
parent
c1d80eeda8
commit
d1bce6ffe0
@ -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}" />
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user