Streaming to iphone via m3u8

前端 未结 2 2213
时光说笑
时光说笑 2021-01-06 05:01

I\'ve been reading around about streaming on the iphone via m3u8 but I\'m not sure if I\'m missing something.

It is well documented that MPMoviePlayerController will

2条回答
  •  旧巷少年郎
    2021-01-06 05:20

    Well if you'll play audio you could use AVPlayer (https://developer.apple.com/documentation/avfoundation/avplayer) or, if you want pre-buffering as well, you could use AVQueuePlayer (https://developer.apple.com/documentation/avfoundation/avqueueplayer) - they both work with the HTTP live streaming protocol but you should fragment your tracks by using the tools provided by apple: https://developer.apple.com/streaming/

    They also have a validator which tells you if the streams are ok. The problem is that AVPlayer is available from iOS 4.0 and AVQueuePlayer from 4.1.

提交回复
热议问题