Fix: Close/stop camera for linux

This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-29 10:20:52 -03:00
commit 9573e596fd
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

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