- sample calls to show how to use the api

This commit is contained in:
Richard Alam 2013-01-11 22:27:18 +00:00
parent d32ccde274
commit 4e0d1cf787
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,10 @@
<script type="text/javascript" src="http://192.168.0.249/client/lib/bbb_api_cam_view.js"></script>
<script type="text/javascript" src="http://192.168.0.235/3rd-party.js"></script>
<script>
window.chatLinkClicked = function(url) {
window.open(url, '_blank');
window.focus();
}
window.displayBBBClient = function() {
var bbbc = document.getElementById("flashclient");
var wcpc = document.getElementById("webcampreviewclient");

View File

@ -5,7 +5,7 @@ var registerListeners = function() {
console.log("New Layout [" + bbbEvent.layoutID + "].");
});
BBB.listen("NewRoleEvent", function(bbbEvent) {
console.log("Switched Presenter [amIPresenter=" + bbbEvent.amIPresenter + ",role=" + bbbEvent.role + ",newPresenterUserID=" + bbbEvent.newPresenterUserID + "].");
console.log("New Role Event [amIPresenter=" + bbbEvent.amIPresenter + ",role=" + bbbEvent.role + ",newPresenterUserID=" + bbbEvent.newPresenterUserID + "].");
});
BBB.listen("SwitchedPresenterEvent", function(bbbEvent) {
console.log("Switched Presenter [amIPresenter=" + bbbEvent.amIPresenter + ",role=" + bbbEvent.role + ",newPresenterUserID=" + bbbEvent.newPresenterUserID + "].");