From 76b1f95406bdf92faa70be1475d76e1d430e87e1 Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Tue, 27 Oct 2009 15:07:09 +0000 Subject: [PATCH] - inform clients that the stream has stopped git-svn-id: http://svn.bigbluebutton.org/project-bbb/trunk@57 6ac8b576-4aa1-4e98-a958-8badfeb98c9d --- .../deskshare/server/FrameStreamerGateway.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/deskshare/app/src/main/java/org/bigbluebutton/deskshare/server/FrameStreamerGateway.java b/deskshare/app/src/main/java/org/bigbluebutton/deskshare/server/FrameStreamerGateway.java index bdd830a1d4..9391be426d 100644 --- a/deskshare/app/src/main/java/org/bigbluebutton/deskshare/server/FrameStreamerGateway.java +++ b/deskshare/app/src/main/java/org/bigbluebutton/deskshare/server/FrameStreamerGateway.java @@ -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()); + stream.stop(); + stream = null; } }