I'm trying to serve a WAV file using PHP, and I want it to play rather than download. I'm setting up the headers like this:
$path = "wav.wav";
header('Accept-Ranges: bytes');
header('Connection: keep-alive');
header('Content-Length: ' . filesize($path));
header("Content-Type: audio/wav");
header("Content-Duration: 00:00:22.046");
readfile($path);
exit();
this works perfectly on chrome, IE, firefox, but not on safari 9 on mac (safari 8 did work). When I test I get no response headers at all!
this is a test link you can see for yourself: http://staging-new-play.idomoo.com/couchbase_test/t3.php
any ideas?