Fix: Close/stop camera for linux

This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-29 10:20:52 -03:00
parent 7fb8867fd6
commit 9573e596fd
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
1 changed files with 5 additions and 1 deletions

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