Lazy load player captions

pull/3952/head
Chocobozzz 2021-04-13 08:38:15 +02:00
parent cb6a78c291
commit 93f30abf28
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 2 deletions

View File

@ -220,7 +220,9 @@ export class PeertubePlayerManager {
const isHLS = mode === 'p2p-media-loader'
let autoplay = this.getAutoPlayValue(commonOptions.autoplay)
let html5 = {}
let html5 = {
preloadTextTracks: false
}
const plugins: VideoJSPluginOptions = {
peertube: {
@ -248,7 +250,7 @@ export class PeertubePlayerManager {
if (isHLS) {
const { hlsjs } = PeertubePlayerManager.addP2PMediaLoaderOptions(plugins, options, p2pMediaLoaderModule)
html5 = hlsjs.html5
Object.assign(html5, hlsjs.html5)
}
if (mode === 'webtorrent') {