Enable camera switch when portrait locked

This commit is contained in:
David Halls
2021-08-31 22:53:09 +01:00
parent 758becd42d
commit fb1bb65098
2 changed files with 7 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
#!/bin/bash
cd "$(dirname "$0")/site"
serve -S -l tcp://0.0.0.0 --ssl-cert ../certs/server.crt --ssl-key ../certs/server.key
if test "$1" = "--https"; then
serve -S -l tcp://0.0.0.0 --ssl-cert ../certs/server.crt --ssl-key ../certs/server.key
else
serve -S -l tcp://0.0.0.0
fi

View File

@@ -281,12 +281,11 @@ async function start() {
canvas_el.style.width = `${width}px`;
canvas_el.style.height = `${height}px`;
// TODO:
// chrome inspect not working
// select which camera to use (front/rear)?
// test fix for going small while rotating (switching?)
// option to switch audio as well
// audio source has two channels even though media stream is mono - check what's recorded
// allow select audio and video devices
// await navigator.mediaDevices.enumerateDevices()
// mute option +
// hide camera option |<- these input list along with audio and video devices?
// audio/video source option +
@@ -491,9 +490,7 @@ async function start() {
this.end(true);
}
waiting_el.classList.add('d-none');
if (!lock_portrait) {
camera_swap_el.classList.remove('d-none');
}
camera_swap_el.classList.remove('d-none');
canvas_el.classList.remove('invisible');
go_live_el.disabled = false;
update();