diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-13 08:38:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-13 08:38:15 +0200 |
commit | 93f30abf2809327aa7bf637691baa2a125bba5fa (patch) | |
tree | 1ab6b8855be1ae66449f4f1758e6191beb39813e /client/src/assets/player | |
parent | cb6a78c291a52950c85eecbf172b8ec6b7d2efe2 (diff) | |
download | PeerTube-93f30abf2809327aa7bf637691baa2a125bba5fa.tar.gz PeerTube-93f30abf2809327aa7bf637691baa2a125bba5fa.tar.zst PeerTube-93f30abf2809327aa7bf637691baa2a125bba5fa.zip |
Lazy load player captions
Diffstat (limited to 'client/src/assets/player')
-rw-r--r-- | client/src/assets/player/peertube-player-manager.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index b112e231f..ed82e0496 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts | |||
@@ -220,7 +220,9 @@ export class PeertubePlayerManager { | |||
220 | const isHLS = mode === 'p2p-media-loader' | 220 | const isHLS = mode === 'p2p-media-loader' |
221 | 221 | ||
222 | let autoplay = this.getAutoPlayValue(commonOptions.autoplay) | 222 | let autoplay = this.getAutoPlayValue(commonOptions.autoplay) |
223 | let html5 = {} | 223 | let html5 = { |
224 | preloadTextTracks: false | ||
225 | } | ||
224 | 226 | ||
225 | const plugins: VideoJSPluginOptions = { | 227 | const plugins: VideoJSPluginOptions = { |
226 | peertube: { | 228 | peertube: { |
@@ -248,7 +250,7 @@ export class PeertubePlayerManager { | |||
248 | if (isHLS) { | 250 | if (isHLS) { |
249 | const { hlsjs } = PeertubePlayerManager.addP2PMediaLoaderOptions(plugins, options, p2pMediaLoaderModule) | 251 | const { hlsjs } = PeertubePlayerManager.addP2PMediaLoaderOptions(plugins, options, p2pMediaLoaderModule) |
250 | 252 | ||
251 | html5 = hlsjs.html5 | 253 | Object.assign(html5, hlsjs.html5) |
252 | } | 254 | } |
253 | 255 | ||
254 | if (mode === 'webtorrent') { | 256 | if (mode === 'webtorrent') { |