diff --git a/bigbluebutton-client/resources/prod/3rd-party.html b/bigbluebutton-client/resources/prod/3rd-party.html index 1a4b1f35e3a7bae3aebdcc91fd5a639b15bb67db..48944685017c493aef65f6557de054086c0bb8be 100755 --- a/bigbluebutton-client/resources/prod/3rd-party.html +++ b/bigbluebutton-client/resources/prod/3rd-party.html @@ -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> diff --git a/bigbluebutton-client/resources/prod/lib/3rd-party.js b/bigbluebutton-client/resources/prod/lib/3rd-party.js index d6eaacad0154c56d1a3eefb0455a7242dcdae918..71f69259841a9911dfd4e2d073581b2766fc5354 100755 --- a/bigbluebutton-client/resources/prod/lib/3rd-party.js +++ b/bigbluebutton-client/resources/prod/lib/3rd-party.js @@ -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); diff --git a/labs/html5-embed/public/index.html b/labs/html5-embed/public/index.html index 8b244bcc53930cc61cf9ab8253db1049976d8941..995bdeb8f579ef6a612730b1cf0efa1ee512b2cc 100755 --- a/labs/html5-embed/public/index.html +++ b/labs/html5-embed/public/index.html @@ -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> diff --git a/labs/html5-embed/public/js/lib/3rd-party.js b/labs/html5-embed/public/js/lib/3rd-party.js index 390c82a5c1fce90ca86080da553d51a41ece8c8c..214150ce612895721162eea8db8fc649f2a1fa62 100755 --- a/labs/html5-embed/public/js/lib/3rd-party.js +++ b/labs/html5-embed/public/js/lib/3rd-party.js @@ -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);