Xin chào! Tôi đang chụp hình thu nhỏ của video từ url video. Và tôi đang sử dụng mã sau để chụp hình thu nhỏTrình phát phim có trạng thái kích hoạt sai (1)
MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc]initWithContentURL:movieURL];
[moviePlayer setControlStyle:MPMovieControlStyleFullscreen];
[moviePlayer setFullscreen:YES];
moviePlayer.useApplicationAudioSession = NO;
UIImage *image = [moviePlayer thumbnailImageAtTime:(NSTimeInterval)1.0 timeOption: MPMovieTimeOptionNearestKeyFrame];
Tôi đang sử dụng luồng cho việc này. Tôi gặp phải lỗi sau:
Movie player has wrong activation state (1)
Ai cũng có thể giúp tôi?
Cảm ơn Aaron .... –
Bạn nên nhấn vào hộp kiểm ở bên trái để chấp nhận câu trả lời nếu nó giúp bạn. –
+1, Cảm ơn câu trả lời đơn giản :) – mAc