我必须在我的应用中压缩视频大小并在MPMoviePlayerController
中播放该压缩视频。我正在使用AVURLAsset
压缩该视频,并在压缩后获取输出网址并在我播放时该网址显示了此 Err0r:-'NSInternalInconsistencyException', reason: 'property storage cannot find expected per-thread storage data
这是代码
[[NSFileManager defaultManager] removeItemAtURL:outputURL error:nil];
AVURLAsset *asset = [AVURLAsset URLAssetWithURL:inputURL options:nil];
AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:asset presetName:AVAssetExportPresetMediumQuality];
exportSession.outputURL = outputURL;
exportSession.outputFileType = AVFileTypeQuickTimeMovie;
[exportSession exportAsynchronouslyWithCompletionHandler:^(void) { handler(exportSession);
}];
如何解决此问题。 帮帮我