- inform clients that the stream has stopped

git-svn-id: http://svn.bigbluebutton.org/project-bbb/trunk@57 6ac8b576-4aa1-4e98-a958-8badfeb98c9d
This commit is contained in:
Richard Alam 2009-10-27 15:07:09 +00:00
parent b15fd98fc0
commit 76b1f95406

View File

@ -57,10 +57,14 @@ public class FrameStreamerGateway {
}
public void onCaptureEndEvent(String room) {
IDeskShareStream ds = streamsMap.remove(room);
if (ds != null) {
ds.stop();
ds = null;
IDeskShareStream stream = streamsMap.remove(room);
if (stream != null) {
//notify the clients in the room that the stream has now started broadcasting.
ISharedObject deskSO = deskShareApp.getSharedObject(stream.getScope(), "deskSO");
System.out.println("Sending applet started");
deskSO.sendMessage("deskshareStreamStopped" , new ArrayList<Object>());
stream.stop();
stream = null;
}
}