FS-8087 #comment always make one basic call to getusermedia to ensure perms are ok

This commit is contained in:
Anthony Minessale committed 2015-08-28 11:41:02 -05:00
1 parent 0ffa3a5d0b
commit 6831fa7015
3 files changed
+10 -7

No files matched your search

+3 -3
View File
@@ -1111,14 +1111,14 @@ var iceTimer;
checkRes(cam, func);
}
$.FSRTC.checkPerms = function () {
$.FSRTC.checkPerms = function (runtime) {
getUserMedia({
constraints: {
audio: true,
video: true,
},
onsuccess: function(e) {e.stop(); console.info("media perm init complete");},
onerror: function(e) {console.error("media perm init error");}
onsuccess: function(e) {e.stop(); console.info("media perm init complete"); if (runtime) {runtime(true)}},
onerror: function(e) {console.error("media perm init error"); if (runtime) {runtime(false)}}
});
}