Skip to content
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] ZFAVPlayerManager 调用 - (void)reloadPlayer 总会使得 self.playerItem.currentTime 先为 0 #1437

Open
Sunshineyg00 opened this issue Sep 5, 2024 · 0 comments

Comments

@Sunshineyg00
Copy link

复现步骤:
1)使用 ZFPlayerController 播放一个 http 视频;
2)播放了一会后,(因为发请求修改了视频清晰度)调用 ZFAVPlayerManager 的 reloadPlayer 方法重新播放视频。
期望:
视频从当前位置继续播放。
实际:
ZFAVPlayerManager 的 - (NSTimeInterval)currentTime 方法中,NSTimeInterval sec = CMTimeGetSeconds(self.playerItem.currentTime) 得到的结果总先为0,而且画面显示第一帧,才会继续从当前位置播放。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant