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
楼主您好,在选择视频界面时,点击后放大查看,播放按钮后面是黑色,点击播放按钮没反应。 经调试发现以下方法中的playerItem为空,想请教下楼主这个问题怎么处理呢?期待您的回复。
The text was updated successfully, but these errors were encountered:
在上述方法中做出如下修改
(void)getVideoWithAsset:(PHAsset *)asset completion:(void (^)(AVPlayerItem * _Nullable, NSDictionary * _Nullable))completion {
PHVideoRequestOptions *option = [[PHVideoRequestOptions alloc] init]; option.networkAccessAllowed = YES;
[[PHImageManager defaultManager] requestPlayerItemForVideo:asset options:option resultHandler:^(AVPlayerItem * _Nullable playerItem, NSDictionary * _Nullable info) { if (completion) completion(playerItem,info); }]; } 视频现在可以播放 不过还有如下问题: 1 播放按钮下是一片黑色,没有展示出首帧缩略图。 2 点击播放按钮 会出现一幕上个播放的视频的画面,然后才播放现在已选中的视频。 请问这个问题有什么办法可以解决么?期待您的回复。
Sorry, something went wrong.
No branches or pull requests
楼主您好,在选择视频界面时,点击后放大查看,播放按钮后面是黑色,点击播放按钮没反应。
经调试发现以下方法中的playerItem为空,想请教下楼主这个问题怎么处理呢?期待您的回复。
[[PHImageManager defaultManager] requestPlayerItemForVideo:asset options:nil resultHandler:^(AVPlayerItem * _Nullable playerItem, NSDictionary * _Nullable info) {
if (completion) completion(playerItem,info);
}];
}
The text was updated successfully, but these errors were encountered: