WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 15 months ago

#15552 closed defect (bug) (invalid)

Serving video to iOS devices does not work in Multisite Wordpress due to lack of byte-range support

Reported by: atetlaw Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: Multisite Keywords:
Focuses: Cc:

Description

Apparently iOS requires byte-range support for audio and video. Serving a static .mp4 file to an iOS from Apache works fine, but serving the same file from a Wordpress MS 3.01 installation fails. This is because the file URL is rewritten to use ms-files.php. The PHP file does a readfile($file) on the file to serve it. This is incompatible with iOS devices and will fail.

The problem, and a solution (supporting byte-range requests), is explained in 'Appendix A' here:
http://mobiforge.com/developing/story/content-delivery-mobile-devices

Change History (8)

comment:1 @scribu5 years ago

Related: #14833

comment:2 @atetlaw5 years ago

  • Component changed from General to Multisite

Correcting the component field

comment:3 @hakre5 years ago

I guess they need that for streaming. But to implement that with PHP via mod_rewrite can kill the server (load).

comment:4 @kingkong9544 years ago

This continues to be an issue for MS deployments -- any chance on someone reviewing it?

comment:5 @scribu4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Given the performance hit that hakre already mentioned, this is unlikely to get added to Core.

Furthermore, you're free to change your .htaccess to point to a custom file that implements the solution mentioned in the ticket description.

Version 1, edited 4 years ago by scribu (previous) (next) (diff)

comment:7 @SergeyBiryukov3 years ago

  • Resolution changed from maybelater to invalid

#19235 turned off ms-files.php by default.

comment:8 @mkormendy15 months ago

A tutorial on how to achieve what scribu describes re: .htaccess modification with that PHP script would be wonderful!

Note: See TracTickets for help on using tickets.