From a63bcc35c81a9421f094a8336805edbdda5e1a31 Mon Sep 17 00:00:00 2001 From: 15498th Date: Fri, 17 Dec 2021 00:15:05 +0300 Subject: [PATCH] Add max fps control for ov3660 index page. --- index_ov3660.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/index_ov3660.h b/index_ov3660.h index eb7ca74..ef33baa 100644 --- a/index_ov3660.h +++ b/index_ov3660.h @@ -251,6 +251,20 @@ const uint8_t index_ov3660_html[] = R"=====( +
+ + +
@@ -310,6 +324,7 @@ const uint8_t index_ov3660_html[] = R"=====( const savePrefsButton = document.getElementById('save_prefs') const clearPrefsButton = document.getElementById('clear_prefs') const rebootButton = document.getElementById('reboot') + const framerateLimit = document.getElementById('framerate_limit') const hide = el => { el.classList.add('hidden') @@ -371,6 +386,8 @@ const uint8_t index_ov3660_html[] = R"=====( } else if(el.id === "rotate"){ rotate.value = value; applyRotation(); + } else if(el.id === "framerate_limit"){ + framerate_limit.value = value; } else if(el.id === "stream_url"){ streamURL = value; viewerURL = value + 'view'; @@ -571,6 +588,10 @@ const uint8_t index_ov3660_html[] = R"=====( updateConfig(framesize) } + framerateLimit.onchange = () => { + updateConfig(framerateLimit) + } + swapButton.onclick = () => { window.open('/?view=simple','_self'); }