diff options
author | Som Meaden <som@theprojectsomething.com> | 2020-04-23 17:01:49 +1000 |
---|---|---|
committer | Som Meaden <som@theprojectsomething.com> | 2020-04-23 17:01:49 +1000 |
commit | 40f06e0b4cd9df8daa11e1dec1f3f51fc63424b2 (patch) | |
tree | bfd3bd24ce9cdedb33b39d881f66417ac0b80f04 /src/js/utils/browser.js | |
parent | 6f1366bd198e52ea17ead09c0e593572c2f846db (diff) | |
download | plyr-40f06e0b4cd9df8daa11e1dec1f3f51fc63424b2.tar.lz plyr-40f06e0b4cd9df8daa11e1dec1f3f51fc63424b2.tar.xz plyr-40f06e0b4cd9df8daa11e1dec1f3f51fc63424b2.zip |
This commit addresses preloading TextTracks as outlined in feature request #1791
These changes bring Plyr captions download behaviour in line with that of the default video element in major browsers. Specifically text tracks only download as they are required for display. Previously all text tracks would download when the Plyr instance was instantiated - which could become an issue when e.g. many translations are available.
For a track to be downloaded it must either be the default track, the active track when captions are toggled on, or selected from the captions menu.
Diffstat (limited to 'src/js/utils/browser.js')
0 files changed, 0 insertions, 0 deletions