close webcam if users don't allow access
This commit is contained in:
parent
1a291349ac
commit
53a7f7a49a
@ -90,8 +90,10 @@ define(
|
||||
function userMediaFailed () {
|
||||
if ( stream ) {
|
||||
stopStream();
|
||||
publishers.error.dispatch( 'webcam.error.access' );
|
||||
}
|
||||
|
||||
closeVideo();
|
||||
publishers.error.dispatch( 'webcam.error.access' );
|
||||
}
|
||||
|
||||
function closeVideo () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user