From 4891180f73df84c4065fc263d1ed6b4165fa45f3 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 24 Nov 2013 16:23:32 +0200 Subject: [PATCH] some streaming options are now available even when streaming is off --- src/config.py | 4 ---- static/js/main.js | 2 +- templates/main.html | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/config.py b/src/config.py index 4fc0676..6f23d2a 100644 --- a/src/config.py +++ b/src/config.py @@ -527,10 +527,6 @@ def camera_ui_to_dict(ui): if data['width'] > 320: data['text_double'] = True - if not ui.get('video_streaming', True): - data['webcam_maxrate'] = 5 - data['webcam_quality'] = 85 - if ui.get('still_images', False): capture_mode = ui.get('capture_mode', 'motion-triggered') if capture_mode == 'motion-triggered': diff --git a/static/js/main.js b/static/js/main.js index b42b55b..3c2873c 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -395,7 +395,7 @@ function updateConfigUi() { /* video streaming switch */ if (!$('#videoStreamingSwitch').get(0).checked) { - $('#videoStreamingSwitch').parent().next('table.settings').find('tr.settings-item').each(markHide); + $('#videoStreamingSwitch').parent().next('table.settings').find('tr.settings-item').not('.local-streaming').each(markHide); } /* still images switch */ diff --git a/templates/main.html b/templates/main.html index 58c1f9d..5ce1676 100644 --- a/templates/main.html +++ b/templates/main.html @@ -240,12 +240,12 @@
Video Streaming
- + - + -- 2.39.5
Streaming Frame Rate ?
Streaming Quality ?