From 089af69bc8fdf7b275aa87a9e37abee6653e2eef Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 May 2020 10:39:54 +0200 Subject: Fix old edge HLS compat --- client/src/app/videos/+video-watch/video-watch.component.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client') 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 51e484275..3790c7f6a 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() -- cgit v1.2.3