Skip to content
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

Safari can't play videos from media servers that don't support CORS #1595

Closed
nolanlawson opened this issue Oct 19, 2019 · 3 comments · Fixed by #1712
Closed

Safari can't play videos from media servers that don't support CORS #1595

nolanlawson opened this issue Oct 19, 2019 · 3 comments · Fixed by #1712
Labels
bug Something isn't working

Comments

@nolanlawson
Copy link
Owner

Follow up to #1590 and #1547.

If the media host doesn't have CORS enabled, then Safari cannot properly support range requests. The reason for this is:

  1. There is a bug in WebKit that causes ServiceWorker not to allow range requests to pass through normally.
  2. The only known workaround for this issue is to issues a CORS-enabled request to the server, read the bytes, and strip out everything but the requested bytes (i.e. serving a pseudo-range request).
  3. But this isn't possible if the server doesn't support CORS, and lots of Mastodon instances use media servers that don't support CORS (e.g. awoo.space).
@nolanlawson nolanlawson added the bug Something isn't working label Oct 19, 2019
@nolanlawson
Copy link
Owner Author

The WebKit bug was marked fixed in November, perhaps it is released now. Need to check.

@nolanlawson
Copy link
Owner Author

Based on the repro steps in https://bugs.webkit.org/show_bug.cgi?id=184447 it appears that this bug still repros for me on iPod Touch running 12.4.5.

@nolanlawson
Copy link
Owner Author

This seems fixed in iOS 13.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant