mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
0e37fbf02c
Reimplementation of https://github.com/videojs/video.js/pull/2192 on current code. Seems to work but has not been carefully tested, especially on conditions such as slow networks and complex tracks. For https://github.com/videojs/video.js/issues/5252 A `preloadTextTracks` tech option is added, set to true by default, to keep current behavior intact. Alternate behavior can be enabled by setting this to false. This delays loading of the VTT cue files until they are selected. For sites like Wikipedia that tend to have large numbers of crowdsourced subtitles and can show many files together on one page, this saves a lot of unnecessary network transfer and API hits. Does mean there may be dropped cues while switching to a track that requires on-demand loading. Example usage: videojs(element, { html5: { preloadTextTracks: false } }; |
||
---|---|---|
.. | ||
examples | ||
guides | ||
legacy-docs | ||
index.md | ||
translations-needed.md |