Properly integrate with VideoJS TextTracks and AudioTracks API to allow the viewer to switch audio stream and subtitle.
Fix race condition on videojs-quality-picker API support:
loadedqualiydata event sometimes (as in happen with a probability when refresh) is raised before the handlers in the videojs-quality-picker is registered.
Potential explanation is because in VJS 6 html5 tech is not created when the plugin is loaded. Thus we need to wait until the video player is ready but Hls.js manifest could be parsed before the (async) ready callback is called -> payload missed. 😢
TextTracks
andAudioTracks
API to allow the viewer to switch audio stream and subtitle.videojs-quality-picker
API support:loadedqualiydata
event sometimes (as in happen with a probability when refresh) is raised before the handlers in thevideojs-quality-picker
is registered.html5
tech is not created when the plugin is loaded. Thus we need to wait until the video player isready
but Hls.js manifest could be parsed before the (async) ready callback is called -> payload missed. 😢