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

WordPress Trac noreply at wordpress.org
Mon Nov 20 22:45:38 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 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:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list