Update server
This commit is contained in:
parent
3605ca0468
commit
c92dff9bfe
@ -20543,6 +20543,26 @@ const getLocalStream = () => {
|
|||||||
hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
|
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({
|
// navigator.mediaDevices.getUserMedia({
|
||||||
// audio: false,
|
// audio: false,
|
||||||
// video: {
|
// video: {
|
||||||
@ -20853,6 +20873,7 @@ const closeCall = () => {
|
|||||||
resetCallSettings()
|
resetCallSettings()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
btnLocalVideo.addEventListener('click', getLocalStream)
|
btnLocalVideo.addEventListener('click', getLocalStream)
|
||||||
btnRecvSendTransport.addEventListener('click', goConnect)
|
btnRecvSendTransport.addEventListener('click', goConnect)
|
||||||
btnCloseCall.addEventListener('click', closeCall)
|
btnCloseCall.addEventListener('click', closeCall)
|
||||||
|
Loading…
Reference in New Issue
Block a user