Skip to content

Commit

Permalink
- fix problem where webcam button is not showing up when user is usi…
Browse files Browse the repository at this point in the history
…ng RTMPT
  • Loading branch information
ritzalam committed Apr 28, 2013
1 parent 9a338b8 commit dd8014c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
10 changes: 5 additions & 5 deletions bigbluebutton-client/src/VideoconfModule.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
public function get uri():String {
if (_attributes.mode == "PLAYBACK") {
return _attributes.uri + "/" + _attributes.playbackRoom;
}
return _attributes.uri + "/" + _attributes.room;
}
Expand Down Expand Up @@ -89,8 +85,12 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
public function start(attributes:Object):void {
trace("Starting Video Module");
_attributes = attributes;
var globalDispatcher:Dispatcher = new Dispatcher();
globalDispatcher.dispatchEvent(new VideoModuleStartEvent(VideoModuleStartEvent.START));
var event:VideoModuleStartEvent = new VideoModuleStartEvent(VideoModuleStartEvent.START);
event.uri = uri;
globalDispatcher.dispatchEvent(event);
}
public function stop():void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ package org.bigbluebutton.modules.videoconf.events
{
public static const START:String = "video module start event";

public var uri:String;

public function VideoModuleStartEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.

<EventHandlers type="{VideoModuleStartEvent.START}">
<ObjectBuilder generator="{VideoEventMapDelegate}" cache="global" constructorArguments="{scope.dispatcher}"/>
<MethodInvoker generator="{VideoEventMapDelegate}" method="start"/>
<MethodInvoker generator="{VideoEventMapDelegate}" method="start" arguments="{event.uri}"/>
</EventHandlers>

<EventHandlers type="{VideoModuleStopEvent.STOP}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ package org.bigbluebutton.modules.videoconf.maps
public class VideoEventMapDelegate
{
private var options:VideoConfOptions = new VideoConfOptions();
private var uri:String;

private var webcamWindows:WindowManager = new WindowManager();

private var button:ToolbarButton;
Expand All @@ -78,8 +80,9 @@ package org.bigbluebutton.modules.videoconf.maps
return UsersUtil.getMyUsername();
}

public function start():void {
public function start(uri:String):void {
trace("VideoEventMapDelegate:: [" + me + "] Video Module Started.");
this.uri = uri;
}

public function stop():void {
Expand Down Expand Up @@ -258,7 +261,7 @@ package org.bigbluebutton.modules.videoconf.maps
}

public function connectToVideoApp():void {
proxy = new VideoProxy(options.uri + "/" + UsersUtil.getInternalMeetingID());
proxy = new VideoProxy(uri + "/" + UsersUtil.getInternalMeetingID());
proxy.connect();
}

Expand Down

0 comments on commit dd8014c

Please sign in to comment.