I have to implement service which should stream a video content to iPhone application. My service is implemented in PHP:
header("Content-Type: video/mp4");
header('Content-Length: '.$result['size']);
echo $result['data'];
where result is array containing the content of the video file and its size.
When I open it with browser there isn't problem (I have quick time and the video has played). However the application cannot open it, but it works with local files (sorry i don't have currently the code of the mobile aplication). When I have opend it in safary from the iPhone it says that the file cannot be downloaded.
It seems that I am missing some headers.