Hi,
at first sorry for the bad english but i hope you can understand my problem.
I've two files on my webserver "test.mp4" and "test.php".
"test.mp4" is a video file that plays well on iphone when i open it in safari
"test.php" is a php script that set the headers of the mp4 video file and then sends the file content to the browser
"test.php" plays well on my pc, but the iphone brings the player up and then says: "this video can't be played"
so i captured the traffic of both requests (to "test.mp4" & "test.php") with wireshark and followed the tcp stream, but can't see anything wrong.
so does anyone else have an idea ?
the content of "test.php" is below, as well as the wireshark output.
"test.php":
Wireshark - Follow TCP Stream (test.php)PHP Code:<?php
header("HTTP/1.1 200 OK");
header("Date: Tue, 19 May 2009 20:55:26 GMT");
header("Server: Apache/2.2.3 (Debian) mod_mono/1.2.1 mod_python/3.2.10 Python/2.4.4 PHP/5.2.9-0.dotdeb.1 with Suhosin-Patch mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8");
header("Last-Modified: Tue, 19 May 2009 20:50:33 GMT");
header("ETag: \"5696da-54ac4-fdb5840\"");
header("Accept-Ranges: bytes");
header("Content-Length: 346820");
header("Content-Type: video/mp4");
passthru("cat test.mp4");
?>
Wireshark - Follow TCP Stream (test.mp4)Code:GET /test.php HTTP/1.1 User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2 like Mac OS X; de-de) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5G77 Safari/525.20 Referer: http://wwwdump.zcnet.ath.cx/ Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: de-de Accept-Encoding: gzip, deflate Connection: keep-alive Host: wwwdump.zcnet.ath.cx HTTP/1.1 200 OK Date: Tue, 19 May 2009 21:47:04 GMT Server: Apache/2.2.3 (Debian) mod_mono/1.2.1 mod_python/3.2.10 Python/2.4.4 PHP/5.2.9-0.dotdeb.1 with Suhosin-Patch mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 X-Powered-By: PHP/5.2.9-0.dotdeb.1 Last-Modified: Tue, 19 May 2009 20:50:33 GMT ETag: "5696da-54ac4-fdb5840" Accept-Ranges: bytes Content-Length: 346820 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: video/mp4 ....ftypisom....mp41....free. <MORE BINARY CONTENT OF test.mp4>
Code:GET /test.mp4 HTTP/1.1 User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2 like Mac OS X; de-de) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5G77 Safari/525.20 Referer: http://wwwdump.zcnet.ath.cx/ Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: de-de Accept-Encoding: gzip, deflate Connection: keep-alive Host: wwwdump.zcnet.ath.cx HTTP/1.1 200 OK Date: Tue, 19 May 2009 21:47:09 GMT Server: Apache/2.2.3 (Debian) mod_mono/1.2.1 mod_python/3.2.10 Python/2.4.4 PHP/5.2.9-0.dotdeb.1 with Suhosin-Patch mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 Last-Modified: Tue, 19 May 2009 21:12:26 GMT ETag: "5696da-af095-5e1e2280" Accept-Ranges: bytes Content-Length: 716949 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: video/mp4 ....ftypisom....mp41....free. <MORE BINARY CONTENT OF test.mp4>



LinkBack URL
About LinkBacks








Reply With Quote

Bookmarks