mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 05:48:33 +00:00
FS-8087 #comment always make one basic call to getusermedia to ensure perms are ok
This commit is contained in:
1 parent
0ffa3a5d0b
commit
6831fa7015
3 files changed
+10
-7
No files matched your search
@@ -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)}}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user