埋め込まれたビデオでは、iPhoneのアプリケーションを作成します

StackOverflow https://stackoverflow.com/questions/883804

  •  22-08-2019
  •  | 
  •  

質問

私は近い将来に記述する必要があり、iPhoneのアプリケーションのストリーミングビデオを研究しています。アプリケーションは、ストリーム動画以外の全体の多くを行いますが、ビデオのアスペクトは、私は経験がない部分である。

誰でもストリーミングビデオアプリケーションを書く上の任意の良い記事を知っている?

Googleは私が求めて何をすべきかではないすべてのものを持っているリンクで私を水浸しようです。

おかげで、

M

役に立ちましたか?

解決

アップル私はドキュメントをNtheirのメディアフレームワークの良いドキュメントを提供します。

MPMoviePlayerControllerを検索します。次のサンプルコードでは、URLから動画を再生します。 (免責事項は、このコードは、Appleから持ち上げ)。

-(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]; 
}

他のヒント

私は、この問題で探しています。私は、AP通信のiPadアプリケーションはビデオをどのように扱うかのようなものをiPadアプリで動画を埋め込むしたいと思います。

どうやらあなたはOS 3.2以降に埋め込まれたビデオのこのタイプを行うことができます。 MPMoviePlayerControllerのためのAppleのドキュメントには、これを行う方法を説明します:

http://developer.apple .COM / iphone /ライブラリ/ドキュメント/ MediaPlayerの/リファレンス/ MPMoviePlayerController_Class / MPMoviePlayerController / MPMoviePlayerController.htmlする

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top