مشكلة في تشغيل مقاطع الفيديو على Safari لنظامي التشغيل iOS و macOS

Hi all,

We’re seeing an issue on 3.6.0.beta3-latest where iPhone and Safari on macOS users get an endless spinner when attempting to play an uploaded .mp4 (H.264) video. These same videos played fine until recently (I’m not sure what the last version of Discourse was when they worked).

It looks like Safari makes a GET to fetch the first bytes (Range: bytes=0-1) of the video (eg /uploads/default/original/1X/44395933ccadf546b1b1ce65b742e24f900b33fa.mp4), which returns 200 but fails for reasons that aren’t shown in the JS console or network inspector (just highlighted in red, no error messages). If the same URL is pasted into the browser directly, they are able to successfully download the full video and play it.

Firefox and Chrome on macOS have no issues playing the videos. Browsers on Android also don’t appear to be having issues.

The videos are small (in the 10MB range). We aren’t using S3 for uploads.

Can anyone else corroborate, or confirm that they’re not having issues with iPhones/Safari playing videos? And is there any other diagnostic I can do that might cast light on the issue?