mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-15 05:31:42 +03:00
fix(examples): fix streaming example on Windows, closes #3646
This commit is contained in:
parent
e974f8fbae
commit
ea94a28a34
@ -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" {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user