diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-13 10:39:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-13 10:39:54 +0200 |
commit | 089af69bc8fdf7b275aa87a9e37abee6653e2eef (patch) | |
tree | af78db9657d8255e44df2cfc59811a38c47c2753 /client/src | |
parent | 0845e480d25a644661cb4e0eed366719289ebc37 (diff) | |
download | PeerTube-089af69bc8fdf7b275aa87a9e37abee6653e2eef.tar.gz PeerTube-089af69bc8fdf7b275aa87a9e37abee6653e2eef.tar.zst PeerTube-089af69bc8fdf7b275aa87a9e37abee6653e2eef.zip |
Fix old edge HLS compat
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 | ||