视频文件不使用MPMoviePlayerController流式传输?

时间:2013-07-28 10:06:51

标签: iphone ios streaming avplayer avplayerlayer

如何使用AVPlayerlayer播放视频文件?

1 个答案:

答案 0 :(得分:0)

您可以尝试使用Matt Gallagher的AudioStreamer播放歌曲。

https://github.com/mattgallagher/AudioStreamer

对于视频,您可以使用MPMoviePlayerController

http://developer.apple.com/library/ios/#documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/

MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:streamURL];
[player play];