Playlist MPMoviePlayerController & .m3u8

I would like to use a .m3u8 playlist containing deleted mp4 files with MPMoviePlayerController, did you manage this?

  • Should a .m3u8 file contain a .ts file?
    If there is no goal .ts?

  • Are the following / previous buttons turned on after loading the playlist?
    If not, what is the purpose of these buttons?

  • And the last question: do you have a .m3u8 example file with a mp4 file removed for testing?

Many thanks for your help.

Thierry

+3
source share
1 answer

Since you are talking about .m3u8 and .ts , can I assume that you are interested in HTTP Live streaming supported by iPhone OS 3.0 and Snow Leopard? For more information on the HTTP Live stream, see the documentation .

  • The HTTP Live Streaming file in the .m3u8 file lists other files that need to be downloaded and played in order. If the .m3u8 file .m3u8 not contain the #EXT-X-ENDLIST , then the client assumes that the source is a real-time stream and periodically re-selects .m3u8 to search for new media files to download. The .ts files are MPEG-2 transport stream files that contain multiplexed audio and video (although the transport stream is part of the MPEG-2 specification, the contents should be H.264 and AAC, audio and video codecs usually associated with MPEG- 4). Sometimes you see other content, such as .aac for audio-only streams. The server will segment the video stream in many .ts files, the .ts file will provide URLs for these .ts files, and the client will download and play the .ts files in order. As an iPhone developer, all you have to do is provide the .m3u8 URL, which will handle the rest.
  • I don't know about the prev / next buttons ... it doesn't seem like they will make sense in the context of the stream, and I'm not sure if even MPMoviePlayerController them. You can use the movieControlMode property to set which controls are offered to the user.
  • Apple docs provides links to some sample test patterns.
+16
source

All Articles