From f5728a8435f609c58149ac8d10e87e34762d569a Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Fri, 15 Oct 2010 13:39:23 -0400 Subject: [PATCH 1/2] - can not monitor except deskshare --- README | 3 +- .../src/MonitoringModule.mxml | 212 ++++++++++++++++++ .../monitoring/maps/MonitoringEventMap.mxml | 32 +++ 3 files changed, 246 insertions(+), 1 deletion(-) create mode 100755 bigbluebutton-client/src/MonitoringModule.mxml create mode 100755 bigbluebutton-client/src/org/bigbluebutton/modules/monitoring/maps/MonitoringEventMap.mxml diff --git a/README b/README index e5306a2654..c5daa88175 100644 --- a/README +++ b/README @@ -1 +1,2 @@ -- see http://code.google.com/p/bigbluebutton +- see http://code.google.com/p/bigbluebutton and http://www.bigbluebutton.org + diff --git a/bigbluebutton-client/src/MonitoringModule.mxml b/bigbluebutton-client/src/MonitoringModule.mxml new file mode 100755 index 0000000000..3dd9d0a944 --- /dev/null +++ b/bigbluebutton-client/src/MonitoringModule.mxml @@ -0,0 +1,212 @@ + + + + + + + + + + diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/monitoring/maps/MonitoringEventMap.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/monitoring/maps/MonitoringEventMap.mxml new file mode 100755 index 0000000000..f23782e60e --- /dev/null +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/monitoring/maps/MonitoringEventMap.mxml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 8cf37297e338cf4e385451a816811e7a507d4553 Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Fri, 15 Oct 2010 15:16:38 -0400 Subject: [PATCH 2/2] - fix monitoring for 0.71 --- bigbluebutton-client/src/MonitoringModule.mxml | 12 +++++++++++- .../modules/monitoring/maps/MonitoringEventMap.mxml | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-client/src/MonitoringModule.mxml b/bigbluebutton-client/src/MonitoringModule.mxml index 3dd9d0a944..d95579b7a3 100755 --- a/bigbluebutton-client/src/MonitoringModule.mxml +++ b/bigbluebutton-client/src/MonitoringModule.mxml @@ -35,6 +35,8 @@ // Video test private static var didVideoStart:Boolean = false; + private static var deskshareStarted:Boolean = false; + private function init():void { ExternalInterface.addCallback("checkLogin", checkLogin); ExternalInterface.addCallback("sendRandomChatMessage", sendRandomChatMessage); @@ -45,7 +47,7 @@ ExternalInterface.addCallback("startVideoConnection", startVideoConnection); ExternalInterface.addCallback("playVideo", playVideo); ExternalInterface.addCallback("checkVideo", checkVideo); - + ExternalInterface.addCallback("checkDeskshare", checkDeskshare); ExternalInterface.addCallback("startDeskshare", startDeskshare); LogUtil.debug("Monitoring Module initialized"); @@ -205,6 +207,14 @@ globalDispatcher.dispatchEvent(new BBBEvent(BBBEvent.START_DESKSHARE)); return "true"; } + + public static function handleStreamEventStarted():void { + deskshareStarted = true; + } + + public static function checkDeskshare():String { + return deskshareStarted.toString(); + } ]]> diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/monitoring/maps/MonitoringEventMap.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/monitoring/maps/MonitoringEventMap.mxml index f23782e60e..0ca1e82aee 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/monitoring/maps/MonitoringEventMap.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/monitoring/maps/MonitoringEventMap.mxml @@ -5,6 +5,7 @@ @@ -17,6 +18,10 @@ + + + +