You must use option 2.
Suppose you created a “downloads” folder in the “Documents / downloads” folder
- First, run HTTPServer in your application (i.e. Mongoose).
- Define the Mongoose root path to the download folder.
- Download the video and m3u8 file to the download folder. If you want to change m3u8, use the NSString methods.
When playing back recorded video, use the address below
http:
And MPMoviePlayer should play the recorded videos without any problems.
If you want to record different videos, you can embed a directory system in the download directory.
source share