Turn off camera after close on desktop

This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-13 16:15:23 -03:00
parent 76b1b1193c
commit 42c736b696
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ angular.module('copayApp.directives')
for (var i = 0; i < localMediaStreamTrack.length; i++) {
localMediaStreamTrack[i].stop();
}
} else {
localMediaStream.stop();
}
localMediaStream = null;
video.src = '';