Merge pull request #3361 from cmgustavo/bug/camera-stop-old

Fix: Close/stop camera on linux
This commit is contained in:
Matias Alejo Garcia 2015-10-29 12:27:47 -03:00
commit 6387d6bfc7

View file

@ -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 = '';