diff --git a/examples/streaming/src-tauri/src/main.rs b/examples/streaming/src-tauri/src/main.rs index 57d860169..235e10a74 100644 --- a/examples/streaming/src-tauri/src/main.rs +++ b/examples/streaming/src-tauri/src/main.rs @@ -43,6 +43,9 @@ fn main() { // prepare our response let mut response = ResponseBuilder::new(); // get the wanted path + #[cfg(target_os = "windows")] + let path = request.uri().replace("stream://localhost/", ""); + #[cfg(not(target_os = "windows"))] let path = request.uri().replace("stream://", ""); if path != "example/test_video.mp4" { diff --git a/examples/streaming/src-tauri/tauri.conf.json b/examples/streaming/src-tauri/tauri.conf.json index cf00abf38..1da76d730 100644 --- a/examples/streaming/src-tauri/tauri.conf.json +++ b/examples/streaming/src-tauri/tauri.conf.json @@ -48,7 +48,7 @@ } ], "security": { - "csp": "default-src 'self'; media-src stream: https://stream.example" + "csp": "default-src 'self'; media-src stream: https://stream.localhost" }, "updater": { "active": false