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

mp4 does not play in safari #557

Closed
gramakri opened this issue Dec 28, 2023 · 4 comments
Closed

mp4 does not play in safari #557

gramakri opened this issue Dec 28, 2023 · 4 comments

Comments

@gramakri
Copy link
Contributor

System Info

  • PHP Version: 8.1 (hosted on Cloudron)
  • XBackBone Version: 3.6.3
  • Webserver: [Apache/Nginx/...] apache
  • Database backend: [SQLite/Mysql/...] MySQL

Describe the bug
Upload a mp4 file . The video does not play in Safari (on Desktop or iOS). It plays fine on all other browsers.

To Reproduce
Steps to reproduce the behavior:

  1. Upload mp4. I used the mp4 in https://mobamotion.mobatek.net/samples/sample-mp4-video.html
  2. Open link . It works everywhere except Safari
  3. The video appears to be "stuck"

Expected behavior
mp4 video should play

@gramakri
Copy link
Contributor Author

Some background - https://forum.cloudron.io/topic/10723/mp4-files-not-playing-in-safari-on-iphones

I was debugging this a bit. Initially, I thought this was because of "/raw" in the source URL. I renamed this to raw.mp4 but it doesn't need to matter for Safari.

It looks like there is some issue with the response XBackBone sends for content range requests. See https://stackoverflow.com/questions/30199261/why-wont-safari-play-file-without-extension-in-video , rwf2/Rocket#806 , jooby-project/jooby#523 and https://stackoverflow.com/questions/32996396/safari-9-0-can-not-play-mp4-video-on-the-storage-server for related issues. I am still debugging , will update this issue as I find any more info to add.

@gramakri
Copy link
Contributor Author

gramakri commented Jan 5, 2024

Removing the autoplay tag for video makes it work on iphone. But it still doesn't work on desktop safari.

@gramakri
Copy link
Contributor Author

gramakri commented Jan 5, 2024

FWIW, playsinline doesn't seem to help on desktop safari.

@sergix44
Copy link
Owner

I dont have any Apple device to test Safari sadly, if you find a way to make it work feel free to open a PR

@sergix44 sergix44 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants