From 7e5008561fe4b2c4d80568a8b97e1707f878cf0b Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Thu, 6 Aug 2020 14:37:26 +0200 Subject: [PATCH] small fixes --- raspberry/roberto/camera/camera_gstreamer_webrtc.py | 1 + raspberry/roberto/views/frontend/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/raspberry/roberto/camera/camera_gstreamer_webrtc.py b/raspberry/roberto/camera/camera_gstreamer_webrtc.py index 563485b..672d31b 100644 --- a/raspberry/roberto/camera/camera_gstreamer_webrtc.py +++ b/raspberry/roberto/camera/camera_gstreamer_webrtc.py @@ -290,6 +290,7 @@ class WebRTCCamera(Thread): audio_src_pad.remove_probe(audio_block) video_src_pad.remove_probe(video_block) + print("client pipeline running") def probe_block(self, pad, info): print("blocked") diff --git a/raspberry/roberto/views/frontend/templates/index.html b/raspberry/roberto/views/frontend/templates/index.html index 4a9e776..73cc37c 100644 --- a/raspberry/roberto/views/frontend/templates/index.html +++ b/raspberry/roberto/views/frontend/templates/index.html @@ -272,7 +272,7 @@ function toggleFullScreen() { var goDebug = document.getElementById("goDebug"); goDebug.addEventListener("click", function() { var stats_box = document.querySelector(".stats-box"); - if (stats_box.style.display == "none") { + if (stats_box.style.display != "inherit") { stats_box.style.display = "inherit"; } else { stats_box.style.display = "none";