Fix: Close/stop camera for linux
This commit is contained in:
parent
7fb8867fd6
commit
9573e596fd
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue