4
movieURL = [NSURL URLWithString:@"http://122.165.71.249:6060/test/music/killbill.mp3"];
// Setup the player
moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlayBackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:nil];
[self presentMoviePlayerViewControllerAnimated:moviePlayer];
私はこのコード再生オンライン接続を使用していますが、オフラインでもビデオURLリンクで再生します。オフライン再生のためにビデオをキャッシュするにはどうすればよいですか?
私はこの問題を解決しました。私はmp3ファイルを文書ディレクトリのパスに保存しています –