From c92dff9bfe9f34299f40a8aea2a02c782ecec843 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Mon, 28 Nov 2022 23:40:56 +0200 Subject: [PATCH] Update server --- public/bundle.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/public/bundle.js b/public/bundle.js index 733c840..e55a76e 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20543,6 +20543,26 @@ const getLocalStream = () => { hd : { width: { ideal: 1280 }, height: { ideal: 720 } } } }) + + navigator.permissions.query( + // { name: 'camera' } + { name: 'microphone' } + // { name: 'geolocation' } + // { name: 'notifications' } + // { name: 'midi', sysex: false } + // { name: 'midi', sysex: true } + // { name: 'push', userVisibleOnly: true } + // { name: 'push' } // without userVisibleOnly isn't supported in chrome M45, yet + ).then(function(permissionStatus){ + + console.log('navigator.permissions', permissionStatus.state); // granted, denied, prompt + + permissionStatus.onchange = function(){ + console.log("Permission changed to " + this.state); + } + + }) + // navigator.mediaDevices.getUserMedia({ // audio: false, // video: { @@ -20853,6 +20873,7 @@ const closeCall = () => { resetCallSettings() } + btnLocalVideo.addEventListener('click', getLocalStream) btnRecvSendTransport.addEventListener('click', goConnect) btnCloseCall.addEventListener('click', closeCall)