-
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
The newest shaka.net.HttpFetchPlugin is incompatible with Fetch API provided by Chrome/Edge/Firefox on iOS #5088
Comments
@joeyparrish It seems that |
A basic solution is to detect If we do this we lose support for DASH-LL, but at least something would work. @joeyparrish what do you think? |
Well... reading the implementation... this causes progress events to be lost. So It is best not to use fetch in these cases. @joeyparrish Is there a way to ban fetch if it doesn't support body in the response? Similar to https://github.com/shaka-project/shaka-player/blob/main/lib/net/http_fetch_plugin.js#L233 |
Add Or if clone isn't the problem maybe just |
Yes, it works. I think it's better |
I'm working on a PR for it! |
That was lightning fast. Thanks for your work and the great product! |
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
4.3.4
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from
main
?Yes
Are you using the demo app or your own custom app?
Our custom app
If custom app, can you reproduce the issue using our demo app?
Yes
What browser and OS are you using?
Edge 110.0.1587.63 Chrome 110.0.5481.114 Firefox 110.1 (28420) on iOS 16.3.1
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
What are the manifest and license server URIs?
What configuration are you using? What is the output of
player.getConfiguration()
?What did you do?
Try to play any DRM protected content in Chrome/Edge/Firefox on iOS 16.
What did you expect to happen?
shaka-player does successful request to any DRM server and can parse a response.
What actually happened?
You will get an error during request to DRM server if you try to use shaka-player in specified browsers on iOS
The exception comes from http_fetch_plugin.js file at line 129:
It seems like all these browsers are built on outdated version of the WebKit which doesn't support modern Fetch API. The error's message is
You can also reproduce this bug on a desktop platform if you use this polyfill https://github.com/github/fetch
falling back to http_xhr_plugin.js solves the issue
The text was updated successfully, but these errors were encountered: