Skip to content

Commit

Permalink
- add example in 3rd party html to lock unlock layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ritzalam committed Nov 1, 2012
1 parent 028db22 commit 3265e6c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bigbluebutton-client/resources/prod/3rd-party.html
Expand Up @@ -42,6 +42,8 @@
<button type="button" onclick="unmuteAll()">Unmute All</button>
<button type="button" onclick="switchLayout('Video Chat')">Switch Video Layout</button>
<button type="button" onclick="switchLayout('Default')">Switch Default Layout</button>
<button type="button" onclick="lockLayout(true)">Lock Layout</button>
<button type="button" onclick="lockLayout(false)">Unlock Layout</button>
<button type="button" onclick="sendPublicChat()">Send Public Chat</button>
<button type="button" onclick="sendPrivateChat()">Send Private Chat</button>
</div>
Expand Down
5 changes: 5 additions & 0 deletions bigbluebutton-client/resources/prod/lib/3rd-party.js
Expand Up @@ -55,6 +55,11 @@ var switchLayout = function(newLayout) {
BBB.switchLayout(newLayout);
}

var lockLayout = function(lock) {
BBB.lockLayout(lock);
}


var sendPublicChat = function () {
var message = "Hello from the Javascript API";
BBB.sendPublicChatMessage('0x7A7A7A', "en", message);
Expand Down
2 changes: 2 additions & 0 deletions labs/html5-embed/public/index.html
Expand Up @@ -46,6 +46,8 @@
<button type="button" onclick="unmuteAll()">Unmute All</button>
<button type="button" onclick="switchLayout('Video Chat')">Switch Video Layout</button>
<button type="button" onclick="switchLayout('Default')">Switch Default Layout</button>
<button type="button" onclick="lockLayout(true)">Lock Layout</button>
<button type="button" onclick="lockLayout(false)">Unlock Layout</button>
<button type="button" onclick="sendPublicChat()">Send Public Chat</button>
<button type="button" onclick="sendPrivateChat()">Send Private Chat</button>
</div>
Expand Down
5 changes: 5 additions & 0 deletions labs/html5-embed/public/js/lib/3rd-party.js
Expand Up @@ -49,6 +49,11 @@ var switchLayout = function(newLayout) {
BBB.switchLayout(newLayout);
}

var lockLayout = function(lock) {
BBB.lockLayout(lock);
}


var sendPublicChat = function () {
var message = "Hello from the Javascript API";
BBB.sendPublicChatMessage('0x7A7A7A', "en", message);
Expand Down

0 comments on commit 3265e6c

Please sign in to comment.