Your code does not work very well. PHP sends an error:

Warning: Header may not contain more than a single header, new line
detected. in C:\xampp\htdocs\ipod\stream.php on line 9


I modified the code to that:

<?php
$filename = "./test.mp4";
$filesize = filesize($filename);
$mime_type = 'video/mp4';

header('Content-Length: '.$filesize);
header('Content-Type: '.$mime_type);
header('Content-Disposition: attachment;
filename="'.basename($filename).'"');

$fp = fopen($filename,"r");
while (!feof($fp)) {
        echo fread($fp, 8192);
}
fclose($fp);
?>

and it seems to work. But no, I doesn't work right. I don't see the
movie on my iPod but first the quicktime symbol as like the movie will
start and then a crossed play-symbol.

Any ideas?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to