Skip to content
Snippets Groups Projects
Commit 1ae88760 authored by sokie's avatar sokie
Browse files

Fixed broadcast module not showing for clients, multiple windows opening for...

Fixed broadcast module not showing for clients, multiple windows opening for presenter and stream not playing if joining once the stream was started
parent 92a31599
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ package org.bigbluebutton.modules.broadcast.managers
trace("***BroadcastManager Not Opening BroadcastModule Window");
}
// sendWhatIsTheCurrentStreamRequest();
sendWhatIsTheCurrentStreamRequest();
if (UserManager.getInstance().getConference().amIPresenter) {
handleSwitchToPresenterMode();
......
......@@ -38,35 +38,19 @@ package org.bigbluebutton.modules.broadcast.services
if (sender == null) {
trace("SENDER is NULL!!!!");
}
// sender.playStream(uri, streamID, streamName);
var event:BBBEvent = new BBBEvent("BroadcastPlayStreamCommand");
event.payload["messageID"] = "BroadcastPlayStreamCommand";
event.payload["uri"] = uri;
event.payload["streamID"] = streamID;
event.payload["streamName"] = streamName;
var dispatcher:Dispatcher = new Dispatcher();
dispatcher.dispatchEvent(event);
sender.playStream(uri, streamID, streamName);
}
public function stopStream():void {
trace("BroadcastService::stopStream");
// sender.stopStream();
var event:BBBEvent = new BBBEvent("BroadcastStopStreamCommand");
event.payload["messageID"] = "BroadcastStopStreamCommand";
var dispatcher:Dispatcher = new Dispatcher();
dispatcher.dispatchEvent(event);
sender.stopStream();
}
public function sendWhatIsTheCurrentStreamRequest():void {
sender.sendWhatIsTheCurrentStreamRequest();
}
public function sendWhatIsTheCurrentStreamReply(requestedByUserID:Number, streamID:String):void {
public function sendWhatIsTheCurrentStreamReply(requestedByUserID:String, streamID:String):void {
sender.sendWhatIsTheCurrentStreamReply(requestedByUserID, streamID);
}
}
......
......@@ -76,7 +76,7 @@ package org.bigbluebutton.modules.broadcast.services
);
}
public function sendWhatIsTheCurrentStreamReply(requestedByUserID:Number, streamID:String):void {
public function sendWhatIsTheCurrentStreamReply(requestedByUserID:String, streamID:String):void {
var message:Object = new Object();
message["messageID"] = "BroadcastWhatIsTheCurrentStreamReply";
message["requestedBy"] = requestedByUserID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment