mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-22 00:12:34 +00:00
fix: LAN paths and camera stream
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user