やあ!ビデオの URL からビデオのサムネイル画像をキャプチャしています。そして、次のコードを使用してサムネイルをキャプチャしています
MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc]initWithContentURL:movieURL];
[moviePlayer setControlStyle:MPMovieControlStyleFullscreen];
[moviePlayer setFullscreen:YES];
moviePlayer.useApplicationAudioSession = NO;
UIImage *image = [moviePlayer thumbnailImageAtTime:(NSTimeInterval)1.0 timeOption: MPMovieTimeOptionNearestKeyFrame];
これにはスレッドを使用しています。次のエラーが表示されます。
ムービー プレーヤーのアクティベーション状態が間違っている (1)
誰でも私を助けることができますか?