loctrice
loctrice

Reputation: 2543

Safari gets 404 on mp4 from IIS

I'm using IIS to serve mp4 videos. I get a 404 on mac/safari. It works in chrome and firefox on the same macs. The MIME is video/mp4 .

I've ran tests locally to rule out the video encoding, and the videojs. I've taken the request path directly as well, skipping the html and js, with the same results. Safari will not load the direct url to the video either.

I'm not sure where to look next?

Upvotes: 1

Views: 196

Answers (1)

loctrice
loctrice

Reputation: 2543

It turns out Safari does range requests for media. IIS itself can handle this, but we are using mvc routing - and we didn't provide any handling for this. The solution is to build an action result that handles range request. We're pulling a solution based on this article

Upvotes: 0

Related Questions