From e65b7e0d7c4ab9655feffebbd8676cdd78c49608 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 24 Nov 2022 13:36:21 +0200 Subject: [PATCH] Update server --- public/bundle.js | 32 ++++++++++++++++---------------- public/index.js | 32 ++++++++++++++++---------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 2bafe5e..25c5f77 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20534,27 +20534,27 @@ const streamSuccess = (stream) => { const getLocalStream = () => { console.log('[getLocalStream]'); - // navigator.mediaDevices.getUserMedia({ - // audio: false, - // video: { - // qvga : { width: { ideal: 320 }, height: { ideal: 240 } }, - // vga : { width: { ideal: 640 }, height: { ideal: 480 } }, - // hd : { width: { ideal: 1280 }, height: { ideal: 720 } } - // } - // }) navigator.mediaDevices.getUserMedia({ audio: false, video: { - width: { - min: 640, - max: 1920, - }, - height: { - min: 400, - max: 1080, - } + qvga : { width: { ideal: 320 }, height: { ideal: 240 } }, + vga : { width: { ideal: 640 }, height: { ideal: 480 } }, + hd : { width: { ideal: 1280 }, height: { ideal: 720 } } } }) + // navigator.mediaDevices.getUserMedia({ + // audio: false, + // video: { + // width: { + // min: 640, + // max: 1920, + // }, + // height: { + // min: 400, + // max: 1080, + // } + // } + // }) .then(streamSuccess) .catch(error => { console.log(error.message) diff --git a/public/index.js b/public/index.js index 43796e9..c0326ec 100644 --- a/public/index.js +++ b/public/index.js @@ -176,27 +176,27 @@ const streamSuccess = (stream) => { const getLocalStream = () => { console.log('[getLocalStream]'); - // navigator.mediaDevices.getUserMedia({ - // audio: false, - // video: { - // qvga : { width: { ideal: 320 }, height: { ideal: 240 } }, - // vga : { width: { ideal: 640 }, height: { ideal: 480 } }, - // hd : { width: { ideal: 1280 }, height: { ideal: 720 } } - // } - // }) navigator.mediaDevices.getUserMedia({ audio: false, video: { - width: { - min: 640, - max: 1920, - }, - height: { - min: 400, - max: 1080, - } + qvga : { width: { ideal: 320 }, height: { ideal: 240 } }, + vga : { width: { ideal: 640 }, height: { ideal: 480 } }, + hd : { width: { ideal: 1280 }, height: { ideal: 720 } } } }) + // navigator.mediaDevices.getUserMedia({ + // audio: false, + // video: { + // width: { + // min: 640, + // max: 1920, + // }, + // height: { + // min: 400, + // max: 1080, + // } + // } + // }) .then(streamSuccess) .catch(error => { console.log(error.message)