smartReadFile
smartReadFile copied to clipboard
For reading media files through a PHP controller, while satisfying <audio> and <video> media element RANGE requests.
Handle range requests that exceed the size of the file. Fixes Issue #7.
I have found this problem in the wild on a 20i web host. On the 20i CDN, it seems that for paths that end in "streamable" extensions (e.g. `\.mp3$`, `\.wav$`)...
The initial code works well on desktop (Chrome OSX). **But not on Safari (iOS)**. I've comment out all about Range and now it works on iPhone too. I did that...
I discover that my iPhone doesn't understand this header: //header('Pragma: no-cache'); Commented all works fine, but I don't know why.
Recording this information here, due to relevancy. The [original post](https://groups.google.com/d/topic/jplayer/vdTxzli6R60/discussion) on jPlayer google group may have more information. **Dom Wyss Wrote:** Hi there, Dave Rodriguez and me did spend a...
So that this can be used to initiate downloads of the file. Something like: ``` php if($_GET['download'] !== null) { $type = 'application/octet-stream' } else { switch ($file[count($file)-1]) { case...
Had reports of this not allowing seeking on Android, but it turned out to be that their response was being GZIPed. This was causing a few browsers to behave a...