0

I'm assigned to implement a iphone app that can download video files from a server, and to play that video while the video file is written to the disk; something likes

(Movie player)<--read--[###### iphone flaskdisk ######]<--write---(Downloader)

I know that I would use HTTP video streaming play a remote video stream, but what i need is the video file is saved in flask mem after playing.

Any suggestion?

Thanks

jAckOdE
  • 2,402
  • 8
  • 37
  • 67

1 Answers1

1

If you know how to play a video from a URL, you can easily play the video while simultaneously download the video on another thread (if you are short on time)...

Alternatively, you can create your own video player that handles this function. Application sin the App Store do already do this (check out any video downloader application)

Thanks!

Darth Maul
  • 84
  • 8
  • thanks, can you point me to some good examples? Your suggestion would work, but our video files are relatively big, so it will cost user twice for download and playing in two different threads unless the data is somehow cached. – jAckOdE Sep 13 '12 at 05:34
  • 1
    Take a look at: libavcodec and libavformat from the ffmpeg library. – Darth Maul Sep 14 '12 at 00:59
  • Thanks, I managed to compile those libs for iOS, Do you know any ffmpeg example or sample code for iOS? – jAckOdE Sep 16 '12 at 23:57
  • take a look at kxmovie on github – Darth Maul Feb 14 '13 at 06:17