- no need to notify others to play the stream since a user just needs to play the stream

This commit is contained in:
Richard Alam 2013-01-07 20:57:02 +00:00
parent 051c55c37d
commit 9da16e3613
2 changed files with 22 additions and 3 deletions

View File

@ -65,7 +65,7 @@ package org.bigbluebutton.modules.broadcast.managers
trace("***BroadcastManager Not Opening BroadcastModule Window");
}
sendWhatIsTheCurrentStreamRequest();
// sendWhatIsTheCurrentStreamRequest();
if (UserManager.getInstance().getConference().amIPresenter()) {
handleSwitchToPresenterMode();

View File

@ -1,7 +1,10 @@
package org.bigbluebutton.modules.broadcast.services
{
import com.asfusion.mate.events.Dispatcher;
import org.bigbluebutton.core.BBB;
import org.bigbluebutton.core.managers.UserManager;
import org.bigbluebutton.main.events.BBBEvent;
public class BroadcastService {
private var sender:MessageSender;
@ -17,12 +20,28 @@ package org.bigbluebutton.modules.broadcast.services
if (sender == null) {
trace("SENDER is NULL!!!!");
}
sender.playStream(uri, streamID, streamName);
// 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);
}
public function stopStream():void {
trace("BroadcastService::stopStream");
sender.stopStream();
// sender.stopStream();
var event:BBBEvent = new BBBEvent("BroadcastStopStreamCommand");
event.payload["messageID"] = "BroadcastStopStreamCommand";
var dispatcher:Dispatcher = new Dispatcher();
dispatcher.dispatchEvent(event);
}
public function sendWhatIsTheCurrentStreamRequest():void {