Skip to content

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

Fix old edge HLS compat

Chocobozzz089af69bc8fd
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 51e4842750..3790c7f6aa 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -717,6 +717,11 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
else mode = 'webtorrent'
}
+ // p2p-media-loader needs TextEncoder, try to fallback on WebTorrent
+ if (typeof TextEncoder === 'undefined') {
+ mode = 'webtorrent'
+ }
+
if (mode === 'p2p-media-loader') {
const hlsPlaylist = video.getHlsPlaylist()