Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Allow muxjs to be loaded after Shaka
In PR shaka-project#2683, a dependency-injection system was added to Shaka Player. However, it would capture default deps from a global scope at load-time. This introduced an accidental ordering requirement where muxjs would have to be loaded first. This was not required in v3.0.x, so it should not have become a requirement in v3.1. To fix this issue, dependencies are now stored as lazy callbacks. So long as muxjs is loaded before Shaka Player tries to play TS content, it no longer matters when they each were loaded into the page. This restores the v3.0.x behavior without breaking the dependency-injection system or its API. Closes shaka-project#3407 Change-Id: Ia6e0a68bea88f0cdb614e8751edc70147bc67f28
- Loading branch information