Permalink
Browse files

fixing the issue related to the duplicate of the webcam publishing wi…

  • Loading branch information...
1 parent c1a5972 commit 2a5023bb22647a16ea56be65f833b10aa65e7af0 @fcecagno fcecagno committed May 24, 2012
@@ -68,7 +68,7 @@
// the auto-publishing until after the Viewers's window has loaded
// to receive the publishing events. Otherwise, the user joining next
// won't be able to view the webcam.
- private var autoPublishTimer:Timer;
+ private var autoPublishTimer:Timer = null;
// Timer used to enable the start publishing button, only after get
// any activity on the camera. It avoids the problem of publishing
@@ -234,6 +234,9 @@
private function startPublishing():void{
if (_camera == null) return;
+ if (autoPublishTimer != null)
+ autoPublishTimer.stop();
+
showWarning('bbb.video.publish.hint.publishing', true, "0xFFFF00");
defaultWidth = originalWidth;
@@ -21,6 +21,7 @@
-->
<mx:Button xmlns:mx="http://www.adobe.com/2006/mxml" icon="{camIcon}"
+ xmlns:mate="http://mate.asfusion.com/"
click="openPublishWindow()" creationComplete="init()"
toolTip="{ResourceUtil.getInstance().getString('bbb.toolbar.video.toolTip')}"
visible="{isPresenter}"
@@ -48,8 +49,6 @@
private function openPublishWindow():void{
dispatchEvent(new OpenPublishWindowEvent());
- this.enabled = false;
- camIcon = images.webcam;
}
public function show():void{
@@ -62,4 +61,6 @@
}
]]>
</mx:Script>
+
+ <mate:Listener type="{OpenPublishWindowEvent.OPEN_PUBLISH_WINDOW}" receive="enabled=false" />
</mx:Button>

0 comments on commit 2a5023b

Please sign in to comment.