-
Notifications
You must be signed in to change notification settings - Fork 14
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
RMKSA resolves to undefined in some cases #3
Comments
Babel was turning the "continue" statements in the for-of loop into "return" statements. If this were inside an anonymous function, this would make sense, but it was not. This would cause certain inputs to cause a return of undefined in the compiled bundle. This restructures the source to use if/else if/else instead of continue in the loop. Closes #3
Babel was turning the "continue" statements in the for-of loop into "return" statements. If this were inside an anonymous function, this would make sense, but it was not. This would cause certain inputs to cause a return of undefined in the compiled bundle. This restructures the source to use if/else if/else instead of continue in the loop. Closes #3
Hi @joeyparrish.
I'm using the latest version of the shaka-player which are used the latest version of the EME polyfill. Can you please help me how to avoid this error? |
Your issue sounds like it is likely distinct from this issue, which we already resolved. In your issue, "undefined is not a function" means we are trying to call a function that does not exist. In this issue, though, a return value from an async function was missing. Although the word "undefined" is involved in both, they are very different symptoms and likely very different issues. Please file a new issue with the backtrace above. Please also state what version of this polyfill (or of Shaka Player) you are using. It would also help if you could provide the exact debug bundle of Shaka Player that goes along with that backtrace, so that we could analyze and find out what specific method is missing. We do not have a WebOS device of our own, so the only chance we have to resolve this for you is with the above information. Thanks! |
@joeyparrish I found the main reason of this issue is shaka-player: 3.1.0 userAgent where I run app: Do you need any additional information? |
Are you saying that WebOS 3 doesn't have |
I think it is. Because if I comment all |
Then I would advise you either:
According to caniuse.com, |
Thank you, I will try your both solutions tomorrow and inform you about result. Could you please tell where I can see that the Shaka Player does not support webOS? |
https://github.com/google/shaka-player/#platform-and-browser-support-matrix Specifically, this callout below the table:
|
There is a bug in the minified bundle (but not in the source) where requestMediaKeySystemAccess sometimes resolves to
undefined
.The text was updated successfully, but these errors were encountered: