Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(FEC-12527): turning on hls debug mode in config causes the player…
… to crash (#176) In some cases hls.js triggers our event handlers (specifically _onAudioTrackSwitched) before the _onManifestLoaded handler. When _onAudioTracksSwitched calls _playerTracks.find, which is undefined, it crashes. The solution is to initialize _playerTracks with an empty array before _onManifestLoaded fills it with the real values.
- Loading branch information