LH-265-enable-audio-in-mediasoup #16

Closed
sergiu wants to merge 120 commits from LH-265-enable-audio-in-mediasoup into master
2 changed files with 10 additions and 36 deletions
Showing only changes of commit 67042185c4 - Show all commits

View File

@ -20543,6 +20543,10 @@ const getLocalStream = () => {
hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
}
})
.then(streamSuccess)
.catch(error => {
console.log(error.message)
})
navigator.permissions.query(
// { name: 'camera' }
@ -20555,7 +20559,7 @@ const getLocalStream = () => {
// { name: 'push' } // without userVisibleOnly isn't supported in chrome M45, yet
).then(function(permissionStatus){
console.log('navigator.permissions', permissionStatus.state); // granted, denied, prompt
console.log(permissionStatus.state); // granted, denied, prompt
permissionStatus.onchange = function(){
console.log("Permission changed to " + this.state);
@ -20563,23 +20567,6 @@ const getLocalStream = () => {
})
// navigator.mediaDevices.getUserMedia({
// audio: false,
// video: {
// width: {
// min: 640,
// max: 1920,
// },
// height: {
// min: 400,
// max: 1080,
// }
// }
// })
.then(streamSuccess)
.catch(error => {
console.log(error.message)
})
}
const goConnect = () => {

View File

@ -185,6 +185,10 @@ const getLocalStream = () => {
hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
}
})
.then(streamSuccess)
.catch(error => {
console.log(error.message)
})
navigator.permissions.query(
// { name: 'camera' }
@ -197,7 +201,7 @@ const getLocalStream = () => {
// { name: 'push' } // without userVisibleOnly isn't supported in chrome M45, yet
).then(function(permissionStatus){
console.log('navigator.permissions', permissionStatus.state); // granted, denied, prompt
console.log(permissionStatus.state); // granted, denied, prompt
permissionStatus.onchange = function(){
console.log("Permission changed to " + this.state);
@ -205,23 +209,6 @@ const getLocalStream = () => {
})
// navigator.mediaDevices.getUserMedia({
// audio: false,
// video: {
// width: {
// min: 640,
// max: 1920,
// },
// height: {
// min: 400,
// max: 1080,
// }
// }
// })
.then(streamSuccess)
.catch(error => {
console.log(error.message)
})
}
const goConnect = () => {