Does anyone know how to fix this? I have googled and some people say safari is funny about headers other say its to do with partial content, but no working solutions.
The following code is a super simple example it is the only code on the php page and the mp4 file is in the same directory. In every browser except Safari the video appears on the page.
The following code is a super simple example it is the only code on the php page and the mp4 file is in the same directory. In every browser except Safari the video appears on the page.
PHP:
$file='test.mp4';
header('Content-Type: video/mp4');
header('Accept-Ranges: bytes');
header('Content-Length:'.filesize($file));
header("Accept-Ranges: 0-filesize( $file )");
readfile($file);