[wp-trac] [WordPress Trac] #42560: mp4 files do not play in Safari

WordPress Trac noreply at wordpress.org
Mon Nov 20 22:53:19 UTC 2017


#42560: mp4 files do not play in Safari
--------------------------+------------------------------
 Reporter:  cg923         |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.8.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by cg923):

 @blobfolio No worries at all!

 I will definitely try to clean this up and account for these different
 issues.  I'll probably have to read up on different range request unit
 types too to make sure I'm covering all the bases.  Might take me a while,
 but I'll give it a shot!

 Thank you!

 Replying to [comment:8 blobfolio]:
 > @cg923 Apologies, I completely forgot about the legacy file-serving
 feature for older network sites!
 >
 > For sites still using that feature, your patch is on the right track.
 Range requests are a little tricky, though, so there are some other
 factors that need to be accounted for to prevent file-piping from failing
 in new ways:
 >
 >  * Browsers can ask for multiple chunks at once: `Range: bytes=0-100,
 500-550`
 >  * The end range is optional: `Range: bytes=500-`
 >  * The unit might not be bytes
 >  * The start range needs to be sanitized too.
 >  * Range requests might be conditional: https://developer.mozilla.org
 /en-US/docs/Web/HTTP/Headers/If-Range

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42560#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list