Merge pull request #676 from ritzalam/reconnect-to-bbb-video

- force stop broadcasting of webcam when disconnected to bbb-video
This commit is contained in:
Richard Alam 2015-06-30 17:42:37 -04:00
commit 87790f1735
2 changed files with 5 additions and 1 deletions

View File

@ -115,7 +115,8 @@ package org.bigbluebutton.modules.users.services
); );
} }
public function removeStream(userID:String, streamName:String):void { public function removeStream(userID:String, streamName:String):void {
trace(LOG + "sending unshare webcam to server for user=[" + userID + "] stream=[" + streamName + "]");
var _nc:ConnectionManager = BBB.initConnectionManager(); var _nc:ConnectionManager = BBB.initConnectionManager();
_nc.sendMessage("participants.unshareWebcam", _nc.sendMessage("participants.unshareWebcam",
function(result:String):void { // On successful result function(result:String):void { // On successful result

View File

@ -460,6 +460,9 @@ package org.bigbluebutton.modules.videoconf.maps
trace("VideoEventMapDelegate:: [" + me + "] Connected to video application."); trace("VideoEventMapDelegate:: [" + me + "] Connected to video application.");
_ready = true; _ready = true;
if (event.reconnection) { if (event.reconnection) {
trace("VideoEventMapDelegate:: Got reconnected event.");
stopAllBroadcasting();
trace("VideoEventMapDelegate:: Closing all webcam windows.");
closeAllWindows() closeAllWindows()
} else { } else {
addToolbarButton(); addToolbarButton();