fix: LAN paths and camera stream

This commit is contained in:
Ian Chua
2026-09-04 16:18:43 +08:00
parent 972031cf06
commit 2f82cfe40f
7 changed files with 575 additions and 35 deletions
+5 -2
View File
@@ -52,10 +52,13 @@ void WebMediaController::Play()
"refreshCameraFrame();"
"setInterval(refreshCameraFrame,200);"
"</script></body></html>";
m_webview->SetPage(html, url);
} else {
html += " src=\"" + url + "\"></body></html>";
// Load MJPEG streams as the top-level document. Some embedded WebView
// backends buffer a multipart stream when it is used as an <img> resource,
// which introduces noticeable live-view latency.
m_webview->LoadURL(url);
}
m_webview->SetPage(html, url);
}
void WebMediaController::Stop()