Hi , we are working on a similar app, we got sidetracked onto a client project for a month but now we are back in full force, if you send me a private email I can probably help you with most of your issues. If you want to see what we are working on you can go here.
mooncatventures.blogspot.com or here www.mooncatventures.com I can tell you this a lot of the info you are getting in this post is at best "WRONG", it is simply not true that you can only play files from servers that support byte range addressing, on these servers you just have to wait until the file completely loads.... Also why not use a proxy and there has been more than one successful webserver implemented in php. Our backend server is written in Java, we "talk" to several differnet upnp servers , not all of them supporting byte range addressing. Recently we decided to boost performance and realiability to move to tomcat and maybe .net. On windows using the .net upnp libraries. BTW: we have dropped ajax iui / ajax for google web toolkit, that is really nice and produces very percise javascript. Again send me a private message and we can discuss your issues if you like. On Oct 14, 6:59 pm, "Raffaele Sena" <[EMAIL PROTECTED]> wrote: > the iphone only plays audio and video from a server that supports byte > ranges. > your script currently doesn't and that's why the iphone doesn't play your > video. > > the two requests that the phone makes are probably trying to verify that the > server supports byte ranges but since your don't the phone stop requesting > data. > > -- Raffaele > > On 10/13/07, mickey9801 <[EMAIL PROTECTED]> wrote: > > > > > > > Hi all. I am trying to develop a web application likehttp://vtap.com > > or Google video which let user to download and playback mp4 file > > through Safari browser bundled with iPod touch. I can download and > > playback a mp4 file correctly when I access the movie directly by URL > > (I put the mp4 file in a public area). But when I try to use a simple > > file proxy program to read the same file at same location and transmit > > it to iPod touch, it doesn't playback correctly. Everything goes fine > > in PC (Firefox). I think it would be a problem in header but I don't > > know what should I put into. > > > My test program is as below (http://dev.crossmedia.com.hk/ipod/ > > stream.php): > > > PHP: > > <?php > > $filename = "./ef_mv_320_h264b.mp4"; > > $filesize = filesize($filename); > > $mime_type = 'video/mp4'; > > > header("Expires: Mon, 26 Nov 1962 00:00:00 GMT"); > > header("Last-Modified: " . gmdate("D,d M Y H:i:s") . " GMT"); > > header("Cache-Control: no-store, private, must-revalidate, max- > > age=0"); > > header("Pragma: no-cache"); > > 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); > > ?> > > > I have checked access log of my server and found that each time I > > access the stream.php, ipod touch safari will access the file twice. > > The user agent of first access is "Apple iPhone" and the second access > > is "iPod Safari"... > > > xxx.xxx.xxx.xxx - - [14/Oct/2007:04:10:53 +0800] "GET /ipod/stream.php > > HTTP/1.1" 200 16384 "-" "Apple iPhone v1.1.1 CoreMedia v1.0.0.3A110a" > > xxx.xxx.xxx.xxx- - [14/Oct/2007:04:10:52 +0800] "GET /ipod/stream.php > > HTTP/1.1" 200 270336 "-" "Mozilla/5.0 (iPod; U; CPU like Mac OS X; ja- > > jp) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/3A110a > > Safari/419.3" > > > The amount of data logged in access log is not the same of the file. > > Seems it stopped to transfer data suddenly. > > > I have also tried to change the reading method from fread() to > > readfile(), so that the file will not transfer in segment. Now the > > amount of data logged in the access log is same as the mp4 file size, > > but iPod touch still cannot playback the file. The access log is like > > this : > > > xxx.xxx.xxx.xxx- - [14/Oct/2007:04:24:17 +0800] "GET /ipod/stream.php > > HTTP/1.1" 200 5027707 "-" "Apple iPhone v1.1.1 CoreMedia > > v1.0.0.3A110a" > > xxx.xxx.xxx.xxx- - [14/Oct/2007:04:24:17 +0800] "GET /ipod/stream.php > > HTTP/1.1" 200 5027707 "-" "Mozilla/5.0 (iPod; U; CPU like Mac OS X; ja- > > jp) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/3A110a > > Safari/419.3" > > > Hope anyone can help me. Thank you.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
