我是 iPhone 开发新手,我正在解析 XML URL 并将其内容显示在表格中,当我单击一行时,使用电影播放器播放其相应的解析管 URL。我正在使用媒体播放器框架。这是我的代码
NSURL *movieURL = [NSURL URLWithString:requiredTubeUrl];
if (movieURL)
{
if ([movieURL scheme])
{
MoviePlayerController *myMovie = [[MoviePlayerController alloc]init];
[myMovie initAndPlayMovie:movieURL];
}
}
这工作正常,但我想使用“HTTP Live Streaming”播放视频。我该怎么做?任何教程和示例代码都会对我更有帮助。谢谢。
Apple 提供了概述以及一些带有流的示例页面。您向 MPMoviePlayer 实例提供播放列表文件 (.M3U8) URL。如果您的服务器设置正确,.M3U8 文件 URL 就足够了。
http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008332-CH1-DontLinkElementID_29 http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008332-CH1-DontLinkElementID_29
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)