Merge pull request #3361 from cmgustavo/bug/camera-stop-old
Fix: Close/stop camera on linux
This commit is contained in:
commit
6387d6bfc7
1 changed files with 5 additions and 1 deletions
|
|
@ -67,7 +67,11 @@ angular.module('copayApp.directives')
|
||||||
localMediaStreamTrack[i].stop();
|
localMediaStreamTrack[i].stop();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
localMediaStream.stop();
|
try {
|
||||||
|
localMediaStream.stop();
|
||||||
|
} catch(e) {
|
||||||
|
// Older Chromium not support the STOP function
|
||||||
|
};
|
||||||
}
|
}
|
||||||
localMediaStream = null;
|
localMediaStream = null;
|
||||||
video.src = '';
|
video.src = '';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue