编写带有嵌入式视频的iPhone应用程序

编写带有嵌入式视频的iPhone应用程序,iphone,video,video-streaming,Iphone,Video,Video Streaming,我正在为一个iPhone应用程序研究视频流,我可能在不久的将来不得不编写这个应用程序。该应用程序除了流式视频之外还有很多其他功能,但视频方面是我没有经验的部分 有人知道写流媒体视频应用的好文章吗 谷歌似乎给我提供了大量的链接,这些链接与我所寻求的内容完全无关 谢谢 苹果公司在其文档中提供了关于媒体框架的良好文档 搜索MPMoviePlayerController。下面的示例代码从URL播放电影。(免责声明,此代码摘自苹果) 我也在研究这个问题。我想在iPad应用程序中嵌入一个视频,比如美联社iP

我正在为一个iPhone应用程序研究视频流,我可能在不久的将来不得不编写这个应用程序。该应用程序除了流式视频之外还有很多其他功能,但视频方面是我没有经验的部分

有人知道写流媒体视频应用的好文章吗

谷歌似乎给我提供了大量的链接,这些链接与我所寻求的内容完全无关

谢谢


苹果公司在其文档中提供了关于媒体框架的良好文档

搜索MPMoviePlayerController。下面的示例代码从URL播放电影。(免责声明,此代码摘自苹果)


我也在研究这个问题。我想在iPad应用程序中嵌入一个视频,比如美联社iPad应用程序如何处理视频

显然,你可以在OS3.2及更高版本中制作这种类型的嵌入式视频。苹果公司的MPMoviePlayerController文档介绍了如何做到这一点:


或者,如果你有专业知识,想提供一些关于如何开始的指导,也可以!谢谢我对使用movieplayer有所了解,但也想知道是否有库可用于创建更集成的电影播放应用程序。ie在播放一部小框架电影的同时仍然显示我的应用程序界面。看看VLC。它是开源的,已经移植到(越狱)iPhone上
-(void)playMovieAtURL:(NSURL*)theURL 

{
    MPMoviePlayerController* theMovie=[[MPMoviePlayerController alloc] initWithContentURL:theURL]; 
    theMovie.scalingMode=MPMovieScalingModeAspectFill; 
    theMovie.userCanShowTransportControls=NO;

    // Register for the playback finished notification. 

    [[NSNotificationCenter defaultCenter] addObserver:self 
                                            selector:@selector(myMovieFinishedCallback:) 
                                                name:MPMoviePlayerPlaybackDidFinishNotification 
                                              object:theMovie]; 

    // Movie playback is asynchronous, so this method returns immediately. 
    [theMovie play]; 
} 

// When the movie is done,release the controller. 
-(void)myMovieFinishedCallback:(NSNotification*)aNotification 
{
    MPMoviePlayerController* theMovie=[aNotification object]; 
    [[NSNotificationCenter defaultCenter] removeObserver:self 
                                                    name:MPMoviePlayerPlaybackDidFinishNotification 
                                                  object:theMovie]; 

    // Release the movie instance created in playMovieAtURL
    [theMovie release]; 
}