diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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 { | |||
717 | else mode = 'webtorrent' | 717 | else mode = 'webtorrent' |
718 | } | 718 | } |
719 | 719 | ||
720 | // p2p-media-loader needs TextEncoder, try to fallback on WebTorrent | ||
721 | if (typeof TextEncoder === 'undefined') { | ||
722 | mode = 'webtorrent' | ||
723 | } | ||
724 | |||
720 | if (mode === 'p2p-media-loader') { | 725 | if (mode === 'p2p-media-loader') { |
721 | const hlsPlaylist = video.getHlsPlaylist() | 726 | const hlsPlaylist = video.getHlsPlaylist() |
722 | 727 | ||