-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MPEG-2 TS not working with 3.1 and mux.js #3407
Comments
Do you have repro steps for us to follow? Specific content? Can you reproduce the issue in our demo? All of these questions were in the issue template that you deleted. Next time, please use the template so that we have all the necessary information to investigate your issue. |
Sorry for the short bug report, I created 2 codepens: 3.0.6 working: 3.1 not working: It looks like in 3.1 it's throwing error 4032, CONTENT_UNSUPPORTED_BY_BROWSER. |
Your codepen fails with the same content that works fine in our demo. Something is different in the codepen, and I'm not sure what. I tried using both compiled & uncompiled code in our demo, and both work. So the compiler didn't break anything. Still investigating. |
I found the issue. You need to load mux.min.js before Shaka Player. This shouldn't be required, though. So long as muxjs is loaded by the time you call The change in behavior occured with the introduction of I will see if I can find a simple way to fix it. In the meantime, please change the order of scripts so that mux.js is loaded before Shaka Player. This seems to be an effective workaround. |
In PR #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 #3407 Change-Id: Ia6e0a68bea88f0cdb614e8751edc70147bc67f28
MPEG-2 TS transmuxing via mux.js is not working in 3.1. 3.0.7 is working fine.
The text was updated successfully, but these errors were encountered: