views:

44

answers:

0

Hey,every humen. When i use .m3u8 file for playing,how can I get the current contentURL when MPMoviePlayerViewController playing a XXX.m3u8 file??

The .m3u8 file‘s content is:

EXTM3U

EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=9600

http://XXXXX/test03-1/test03-1.stream/playlist.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=5120

http://XXXXX/test03-2/test03-2.stream/playlist.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=640

http://XXXXX/test03-3/test03-3.stream/playlist.m3u8