-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
core-js Promise polyfill not working with Shaka Player on IE11 #1062
Comments
Shaka Player has its own promise polyfill, which is installed by shaka.poyfill.installAll() if window.Promise isn't defined. Does the problem still happen if you don't import the core-js promise polyfill? |
Yes this still holds true 👍 "Note. If I remove the polyfil then shaka works." Is it possible that shaka is actually polyfilling more than just |
Ah, I didn't see that you had addressed that already. My apologies. Anyway... I'm looking at es6.promise.js, and it looks like their implementation of Promise.all assumes that promises conform to the iterable protocol. We don't use that protocol, to reduce the number of polyfills we need to maintain. |
In case anyone else finds same issue: our temp fix is to just use the shaka polyfil instead of core-js 😅
|
Okay, I've done more testing, and I think this might just be a bug with core-js. |
@theodab, thanks for looking into this. Can you please file a bug on core-js? https://github.com/zloirock/core-js/issues/new In that bug, please mention |
Looking at core-js's github page, it seems this might be a case of using core-js improperly. |
Good find. Thanks! @bengeorge, does this help? |
@joeyparrish @theodab You guys are awesome. Thanks a bunch for looking into that! And sorry for wasting your time 😅 I should have never doubted shaka! |
Have you read the FAQ and checked for duplicate issues: Yes
What version of Shaka Player are you using: 2.2.2
Can you reproduce the issue with our latest release version: Yes 2.2.2
Can you reproduce the issue with the latest code from
master
: Not tried.Are you using the demo app or your own custom app: Own app
If custom app, can you reproduce the issue using our demo app: No, not sure how I could.
What browser and OS are you using: IE11 (works in Edge, Chrome), Windows 10
What are the manifest and license server URIs:
(you can send the URIs to [email protected] instead, but please use GitHub and the template for the rest)
What did you do?
Added promise polyfil ([email protected]) and use Shaka. eg:
What did you expect to happen?
Playback to work.
What actually happened?
Get errors and no playback is possible.
Followed by 10 - 15 repeats of
Note. If I remove the polyfil then shaka works.
Please let me know if I can help in any way, provide more / clearer details etc.
The text was updated successfully, but these errors were encountered: