fix close cam if it's not available
This commit is contained in:
parent
8731a43148
commit
9babc757fc
@ -97,7 +97,7 @@ dependencies {
|
||||
|
||||
//redis
|
||||
compile 'redis.clients:jedis:2.0.0'
|
||||
providedCompile 'commons:commons-pool:1.5.6'
|
||||
providedCompile 'commons-pool:commons-pool:1.5.6'
|
||||
|
||||
// Libraries needed to run the scala tools
|
||||
scalaTools 'org.scala-lang:scala-compiler:2.9.2'
|
||||
|
@ -210,11 +210,13 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
private function disableCamera():void {
|
||||
_camera = null;
|
||||
if(_video != null){
|
||||
_video.attachCamera(null);
|
||||
_video.clear();
|
||||
_videoHolder.remove(_video);
|
||||
_video = null;
|
||||
}
|
||||
}
|
||||
|
||||
private function handleKeyDown(event:KeyboardEvent):void {
|
||||
if (event.charCode == Keyboard.ESCAPE) {
|
||||
@ -245,7 +247,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
onCameraAccessAllowed();
|
||||
// this is just to overwrite the message of waiting for approval
|
||||
_videoHolder.showWarning('bbb.video.publish.hint.openingCamera');
|
||||
} else if (e.code == "Camera.Muted") {
|
||||
} else {//if (e.code == "Camera.Muted") {
|
||||
onCameraAccessDisallowed();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user