fix(examples): fix streaming example on Windows, closes #3646

This commit is contained in:
Lucas Nogueira 2022-03-12 08:42:54 -03:00
parent e974f8fbae
commit ea94a28a34
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1
2 changed files with 4 additions and 1 deletions

View File

@ -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" {

View File

@ -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