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