Skip to content

Commit

Permalink
fixing the issue related to the duplicate of the webcam publishing wi…
Browse files Browse the repository at this point in the history
  • Loading branch information
fcecagno committed May 24, 2012
1 parent c1a5972 commit 2a5023b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -48,8 +49,6 @@
private function openPublishWindow():void{
dispatchEvent(new OpenPublishWindowEvent());
this.enabled = false;
camIcon = images.webcam;
}
public function show():void{
Expand All @@ -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.