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

含有多P的视频切换下一集异常 #88

Open
Kyle-Ye opened this issue Nov 18, 2023 · 2 comments
Open

含有多P的视频切换下一集异常 #88

Kyle-Ye opened this issue Nov 18, 2023 · 2 comments
Assignees
Labels
bug Something isn't working inprogress

Comments

@Kyle-Ye
Copy link
Contributor

Kyle-Ye commented Nov 18, 2023

如果是自然结束播放,会触发 AVPlayerItemDidPlayToEndTime 事件,并最终走到自定义的 playDidEnd 方法,靠 VideoNextProvider 配置好正确的下一集资源并播放。
如果在快要到结束的10s内,按下快进10s按键,此时不会触发 AVPlayerItemDidPlayToEndTime 事件,最终结果是影片重播当前播放资源。

感觉现在下一集的实现有点hacky,切换到 AVKit 相关的内置方案后应该可以解决这个问题。

@yichengchen yichengchen added the bug Something isn't working label Nov 18, 2023
@yichengchen
Copy link
Owner

https://developer.apple.com/documentation/avkit/presenting_content_proposals_in_tvos 感觉应该用这个

@yichengchen
Copy link
Owner

yichengchen commented Nov 20, 2023

测试了一下,如果在快要到结束的10s内,按下快进10s按键 这个场景下,依然不能触发系统自带的下一集播放,会卡loading。会不会是生产的m3u8有问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inprogress
Projects
None yet
Development

No branches or pull requests

2 participants