mirror of https://github.com/Chocobozzz/PeerTube
Fix old edge HLS compat
parent
0845e480d2
commit
089af69bc8
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue