Hide ingestion URL when live on small screen

This commit is contained in:
David Halls
2021-07-29 21:46:35 +01:00
parent d91778b983
commit af9716df79
2 changed files with 5 additions and 3 deletions

View File

@@ -61,6 +61,7 @@ async function start() {
go_live_el.disabled = true;
ingestion_url_el.disabled = true;
ingestion_url_el.parentNode.classList.add('d-none');
ffmpeg_lib_url_el.disabled = true;
lock_portrait_el.disabled = true;
zoom_portrait_el.disabled = true;
@@ -115,6 +116,7 @@ async function start() {
go_live_el.checked = false;
go_live_el.disabled = false;
ingestion_url_el.disabled = false;
ingestion_url_el.parentNode.classList.remove('d-none');
ffmpeg_lib_url_el.disabled = false;
lock_portrait_el.disabled = false;
zoom_portrait_el.disabled = lock_portrait_el.checked;
@@ -271,8 +273,8 @@ async function start() {
canvas_el.style.width = canvas_el_parent.parentNode.offsetWidth;
canvas_el.style.height = canvas_el_parent.parentNode.offsetWidth / ar_canvas;
}
// TODO: responsive including top section
// hide ingestion url when live and small?
// TODO:
// still if click stop too soon get error
// windows, android, iOS, find a mac to test
// check behaviour when rotate phone
}