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 56 additions and 48 deletions
Showing only changes of commit df0cb81a8e - Show all commits

View File

@ -20512,15 +20512,7 @@ const streamSuccess = (stream) => {
const getLocalStream = () => {
console.log('[getLocalStream]');
navigator.mediaDevices.getUserMedia({
audio: true,
video: {
qvga : { width: { ideal: 320 }, height: { ideal: 240 } },
vga : { width: { ideal: 640 }, height: { ideal: 480 } },
hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
}
})
.then((streamSuccess) => {
try {
navigator.permissions.query(
{ name: 'microphone' }
@ -20545,6 +20537,18 @@ const getLocalStream = () => {
} catch (error) {
console.log('eeeeee', error);
}
navigator.mediaDevices.getUserMedia({
audio: true,
video: {
qvga : { width: { ideal: 320 }, height: { ideal: 240 } },
vga : { width: { ideal: 640 }, height: { ideal: 480 } },
hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
}
})
.then((streamSuccess) => {
return streamSuccess
})
.catch(error => {

View File

@ -154,15 +154,7 @@ const streamSuccess = (stream) => {
const getLocalStream = () => {
console.log('[getLocalStream]');
navigator.mediaDevices.getUserMedia({
audio: true,
video: {
qvga : { width: { ideal: 320 }, height: { ideal: 240 } },
vga : { width: { ideal: 640 }, height: { ideal: 480 } },
hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
}
})
.then((streamSuccess) => {
try {
navigator.permissions.query(
{ name: 'microphone' }
@ -187,6 +179,18 @@ const getLocalStream = () => {
} catch (error) {
console.log('eeeeee', error);
}
navigator.mediaDevices.getUserMedia({
audio: true,
video: {
qvga : { width: { ideal: 320 }, height: { ideal: 240 } },
vga : { width: { ideal: 640 }, height: { ideal: 480 } },
hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
}
})
.then((streamSuccess) => {
return streamSuccess
})
.catch(error => {