サーバーからiPadアプリに動画をストリーミングしています。私は、次のコードを使用しています:サーバーからビデオをiPadにストリーミングする方法は?
NSURL *videoURL = [NSURL URLWithString:@"http://10.1.0.251/blah/videos/test.mp4"];
MPMoviePlayerViewController* playerController = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
playerController.moviePlayer.view.frame = CGRectMake(50, 50, 200, 200);
[self presentMoviePlayerViewControllerAnimated:playerController];
playerController.moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
[playerController.moviePlayer play];
[playerController release];
playerController=nil;
これは私のビデオのためのフレームに対する制御を与えず、また、プレイヤーが一度ビデオを再生した後、終了しますか?どのようにしてフレームをコントロールし、 "リプレイ"を許可できますか?
次のコードは、どのように私はiPadのために同じことを達成ん
NSURL *url = [NSURL URLWithString:strVideo];
moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
moviePlayer.view.frame = CGRectMake(50, 50, 480, 320);
moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
moviePlayer.scalingMode=MPMovieScalingModeAspectFill;
moviePlayer.shouldAutoplay = YES;
moviePlayer.controlStyle=MPMovieControlStyleEmbedded;
[self.view addSubview:moviePlayer.view];
[moviePlayer play];
(ローカルビデオがストリーミングのみではない)iPad上でも、私のiPhone上で上記の機能を可能にして?