mirror of https://github.com/BTCPrivate/copay.git
Fix: Close/stop camera for linux
This commit is contained in:
parent
7fb8867fd6
commit
9573e596fd
|
@ -67,7 +67,11 @@ angular.module('copayApp.directives')
|
|||
localMediaStreamTrack[i].stop();
|
||||
}
|
||||
} else {
|
||||
localMediaStream.stop();
|
||||
try {
|
||||
localMediaStream.stop();
|
||||
} catch(e) {
|
||||
// Older Chromium not support the STOP function
|
||||
};
|
||||
}
|
||||
localMediaStream = null;
|
||||
video.src = '';
|
||||
|
|
Loading…
Reference in New Issue