From b5141883f101af4c659352d076a0ba5461cf477c Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Wed, 13 Feb 2013 17:05:05 +0000 Subject: [PATCH] - add sample on how to query the presenter user id --- .../resources/prod/lib/3rd-party.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bigbluebutton-client/resources/prod/lib/3rd-party.js b/bigbluebutton-client/resources/prod/lib/3rd-party.js index 27b649d38a..45a6c0e06a 100755 --- a/bigbluebutton-client/resources/prod/lib/3rd-party.js +++ b/bigbluebutton-client/resources/prod/lib/3rd-party.js @@ -204,8 +204,25 @@ var sendPrivateChat = function () { var webcamViewStandaloneAppReady = function() { console.log("WebcamViewStandalone App is ready."); + BBB.getPresenterUserID(function(puid) { + if (puid == "") { + console.log("There is no presenter in the meeting"); + } else { + console.log("The presenter user id is [" + puid + "]"); + // Is presenter sharing webcam? If so, get the webcam stream and display. + } + }); } var webcamPreviewStandaloneAppReady = function() { console.log("WebcamPreviewStandalone App is ready."); + BBB.getPresenterUserID(function(puid) { + if (puid == "") { + console.log("There is no presenter in the meeting"); + } else { + console.log("The presenter user id is [" + puid + "]"); + } + }); + // Am I presenter? If so, am I publishing my camera? If so, display my camera. + }