-
Notifications
You must be signed in to change notification settings - Fork 966
New issue
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
bug:网络预览图片和视频时闪退 —— 2.6.6 fixed #216
Comments
具体是怎么操作,然后崩溃了? |
就是进入网络预览页面,左右来回滑动切换图片和视频的崩溃了。猜测是因为KVO没有及时移除引起的 |
我遇到了同样的问题,在iPhone6 Plus iOS10系统,每次预览网络视频和图片时,都会崩溃,崩溃日志跟@zhangzhang 的一样,但是在iOS11就没有这个问题!!! |
@ParadiseGitHub 你试试在
|
好的,谢谢
张站
手机:17600056168
2018年04月19日
在2018年04月19日 10:06,long 写道:
@ParadiseGitHub 你试试在ZLPreviewNetVideo这个类的seekToZero添加如下代码
- (void)seekToZero
{
[self.playLayer.player.currentItem removeObserver:self forKeyPath:@"playbackBufferEmpty"];
[self.playLayer.player.currentItem removeObserver:self forKeyPath:@"playbackLikelyToKeepUp"];
AVPlayer *player = self.playLayer.player;
[player.currentItem seekToTime:kCMTimeZero];
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
你好,添加这两行代码之后,没有解决问题,之前iOS11不会崩溃,iOS10会崩溃,崩溃之日是之前的记录。现在加上这两行代码iOS10、iOS11都会崩溃,崩溃日至如下: |
2.6.6版本已经解决了,添加这两行代码,需要把之前dealloc中的observer删掉 |
The text was updated successfully, but these errors were encountered: