リンクでビデオを再生したい: www.mysite.com/iphone/video.mp4
私はios5とMPMoviePlayerControllerを使用しています。次のコードで試しましたが、黒いページしか表示されません:
MPMoviePlayerController *player=[[MPMoviePlayerController alloc]initWithContentURL:[NSURL URLWithString:@"http://www.mysite.com/iphone/video.mp4"]]; [[player view] setFrame:[self.view.bounds]]; [self.view addSubview:[player view]]; [player play];
Web URL 文字列でビデオを再生することは可能ですか? ビデオがたくさんあるので、プロジェクトに入れたくないので、Web から再生する必要があります
ストリームを使用しますが、Web URL を使用するため、問題は解決します。すべての回答に感謝します