We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
上面是截图,下面是代码
#pragma mark -- 开始转换视频 -(void)convertVideoWithAsset:(PHAsset *)asset{
__block CGFloat duration = asset.duration; //根据PHAsset 获取视频相关信息 PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc] init]; options.version = PHVideoRequestOptionsVersionCurrent; __weak typeof(self) weakSelf = self; [[PHImageManager defaultManager] requestAVAssetForVideo:asset options:options resultHandler:^(AVAsset *asset, AVAudioMix *audioMix, NSDictionary *info) { // asset 这里有时候会返回空的 if ([asset isKindOfClass:[AVURLAsset class]]) { } }];
}
The text was updated successfully, but these errors were encountered:
可参考最新版的requestVideoOutputPathWithAsset,这个方法支持iOS14
可参考:#1073
Sorry, something went wrong.
No branches or pull requests
上面是截图,下面是代码
#pragma mark -- 开始转换视频
-(void)convertVideoWithAsset:(PHAsset *)asset{
}
The text was updated successfully, but these errors were encountered: