>> I am trying to playback video in my iOS app while I am loading and caching >> it at the same time. I fetch the video using a NSURLConnection and then >> store it in a local file, I start video playback of the local video file >> after a certain number of bytes are received. I have it working great in >> the simulator, I can start playing the video before I have received all of >> it, but when I go to run my app on my iPodTouch, I can only seem to play >> up to the number of bytes I had already received before I started >> playback. I can only play the entire video if I wait until I have receive >> the entire file before I start playback. I can also get the video to play >> completely if I stop the failed attempt with a [video stop] message and >> then start playing it again, pausing the video only doesn't work. >> >> Has anybody got this working, is it possible. >>
I haven't done this, but I would be interested in hearing about the solution you come up with. What you describe sounds like a bug worth filing a bug report on. I'll speculate the device implementation sees that you are opening a file and uses the number of bytes as a hint to the length of the video (incorrectly). So a random, not completely thought out idea...what if you created an intermediate local socket which you use to further separate the temporary file from the NSFileHandle. Maybe the implementation won't be able to find the file size if your NSFileHandle wraps a socket instead. -Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com