<video> plays in other browsers, but not Safari

后端 未结 11 1523
清酒与你
清酒与你 2020-12-06 04:30

We have an MP4 video on our site; it plays fine in IE9+, Firefox, Chrome, and Chrome on mac. However, on Safari, the video doesn\'t play at all - it does trigger a \"stalled

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 04:47

    Safari requires webserver to support "Range" request header in order to play your media content.

    https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW6

    For a legit "Range" request response, your webserve need to return status code "206".

提交回复
热议问题