Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix player

Chocobozzz2e3b0825bbdd
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts
index b3818c8dee..983a27e110 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -657,7 +657,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
: null,
authorizationHeader: () => this.authService.getRequestHeaderValue(),
- serverUrl: environment.originServerUrl,
+ serverUrl: environment.originServerUrl || window.location.origin,
videoFileToken: () => videoFileToken,
requiresAuth: videoRequiresAuth(video),