Hi there.
I have an iphone app which has an NSURLConnection downloading a large video file. It takes about 5-10 minutes to download (a little bit of data at a time).
There are some problems though.
If the iPhone is just left on the side to download then the screen turns off and the iPhone locks. This seems to cause the download to stop. (and calls connection:didFailWithError:
).
Sometimes as well the download will finish well before it is supposed to. For instance it will download the first 20 seconds of a 3 minute film and then call connectionDidFinishLoading:
.
I have no idea why this is happening. If I download a smaller film (say 15seconds) then it works perfectly, I just don't know why it chokes on the larger files, or could it just be my internet connection?
Thanks Tom