ストリーミングビデオを表示するMonotouchiPhoneアプリを作成しています。MPMoviePlayerControllerをローカルファイル(NSUrl FromFile)で動作させることはできましたが、メディアサーバーからストリーミングされるビデオを取得することはできませんでした。
ビデオの再生に使用しているコードは次のとおりです。
string url = @"http://testhost.com/test.mp4";
var nsurl = NSUrl.FromString(url);
mp = new MPMoviePlayerController(nsurl);
mp.SourceType = MPMovieSourceType.Streaming;
//enable AirPlay
//mp.AllowsAirPlay = true;
//Add the MPMoviePlayerController View
this.View.AddSubview(mp.View);
//set the view to be full screen and show animated
mp.SetFullscreen(true, true);
//MPMoviePlayer must be set to PrepareToPlay before playback
mp.PrepareToPlay();
//Play Movie
mp.Play();
私が見逃しているビデオストリーミング用のMPMoviePlayerControllerの実装に他に何かありますか?また、iOS用のビデオはメディアサーバーでAppleのHTTPライブストリーミングを使用してストリーミングする必要があることも読みましたが、それは要件ですか?私はこれまでiOSデバイスでビデオストリーミングを使用したことがないので、コードやメディアサーバーのセットアップ、またはそれらの組み合わせに不足しているものがあるかどうかわかりません。