put a check while the activation is complete for publishing
This commit is contained in:
parent
931c3ba942
commit
815f3abcd3
@ -71,6 +71,7 @@ package org.bigbluebutton.modules.videoconf.maps
|
||||
private var _ready:Boolean = false;
|
||||
private var _isPublishing:Boolean = false;
|
||||
private var _isPreviewWebcamOpen:Boolean = false;
|
||||
private var _isWaitingActivation:Boolean = false;
|
||||
|
||||
public function VideoEventMapDelegate(dispatcher:IEventDispatcher)
|
||||
{
|
||||
@ -267,10 +268,11 @@ package org.bigbluebutton.modules.videoconf.maps
|
||||
}
|
||||
|
||||
public function startPublishing(e:StartBroadcastEvent):void{
|
||||
LogUtil.debug("VideoEventMapDelegate:: [" + me + "] startPublishing:: Publishing stream to: " + proxy.connection.uri + "/" + e.stream);
|
||||
LogUtil.debug("VideoEventMapDelegate:: [" + me + "] startPublishing:: Publishing stream to: " + proxy.connection.uri + "/" + e.stream);
|
||||
streamName = e.stream;
|
||||
proxy.startPublishing(e);
|
||||
|
||||
_isWaitingActivation = false;
|
||||
_isPublishing = true;
|
||||
UsersUtil.setIAmPublishing(true);
|
||||
|
||||
@ -324,7 +326,7 @@ package org.bigbluebutton.modules.videoconf.maps
|
||||
|
||||
public function handleShareCameraRequestEvent(event:ShareCameraRequestEvent):void {
|
||||
LogUtil.debug("Webcam: "+_isPublishing + " " + _isPreviewWebcamOpen);
|
||||
if (!_isPublishing && !_isPreviewWebcamOpen)
|
||||
if (!_isPublishing && !_isPreviewWebcamOpen && !_isWaitingActivation)
|
||||
openWebcamPreview(event.publishInClient);
|
||||
}
|
||||
|
||||
@ -397,6 +399,7 @@ package org.bigbluebutton.modules.videoconf.maps
|
||||
|
||||
UsersUtil.setCameraSettings(camSettings);
|
||||
|
||||
_isWaitingActivation = true;
|
||||
openPublishWindowFor(UsersUtil.getMyUserID(), cameraIndex, camWidth, camHeight);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user