Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don't forget active track after new period is added to live stream.
The algorithm in shaka.Player.getVariantTracks assumed that the variants in the manifest would never change, and thus used object equality to see if a track should be marked as active or not. However, the (relatively) new Shaka Player period combiner system now causes all of the variants to be re-built whenever the manifest was updated. This change makes shaka.Player.getVariantTracks continue to recognize the previously active variant, even if it is not literally equal to the old one. Closes: shaka-project#3510
- Loading branch information