swifter icon indicating copy to clipboard operation
swifter copied to clipboard

Serving mp4 video not working

Open nibab opened this issue 8 years ago • 5 comments

I can't seem to get video serving to work on iOS 10.3. I thought it may be a CORS issue so I added headers to the response, but then, when I looked at the safari requests, i noticed that the request is not well-formed.

Is there no support for video currently? Or am I missing something?

screen shot 2017-04-23 at 10 56 57 pm

nibab avatar Apr 24 '17 02:04 nibab

I am currently trying to diagnose this issue. the problem appears to be with range

the requirements for video servers supporting range is here: https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW6

nidx avatar Apr 24 '17 19:04 nidx

are the response headers set to include [ HTTPHeaderKeys.accessControlAllowOrigin: "*" ]

... or http://127.0.0.1:9080/*

valdirunars avatar Oct 05 '17 13:10 valdirunars

Was someone able to make a progress on this?

Niko-r avatar May 22 '18 18:05 Niko-r

I wrote myself a workaround to add range, I think i am giving up some features to get this working (can't remember what they are) but this is working in a production app right now.

gist

nidx avatar May 22 '18 19:05 nidx

Wow thanks for this ultra fast answer @nidx and for sharing this gist! 👍 I'll try this asap

Niko-r avatar May 22 '18 20:05 Niko-r