Update server

This commit is contained in:
Sergiu Toma 2022-11-29 03:55:34 +02:00
parent ac8c651a9d
commit df0cb81a8e
2 changed files with 56 additions and 48 deletions

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 => {