- add JS api to share webcam

This commit is contained in:
Richard Alam 2012-12-03 21:23:29 +00:00
parent d6377fe89e
commit f4ff05856a

View File

@ -71,10 +71,14 @@
/**
* Share user's webcam.
*/
BBB.shareVideoCamera = function() {
BBB.shareVideoCamera = function(publishInClient) {
var swfObj = getSwfObj();
if (swfObj) {
swfObj.shareVideoCamera();
if (typeof publishInClient === 'boolean') {
swfObj.shareVideoCamera(publishInClient);
} else {
swfObj.shareVideoCamera();
}
}
}