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

播放失败后手动换源/重新加载,若仍播放失败会无限次重连 #1642

Open
Myidisnull opened this issue Oct 18, 2024 · 0 comments

Comments

@Myidisnull
Copy link

您使用的西瓜播放器版本是多少? What version of xgplayer are you using?
"xgplayer":"3.0.20","xgplayer-flv": "3.0.20"

您使用的操作系统和浏览器分别是? What OS and browser are you using?
win11 chrome 129.0.6668.101

如何复现问题? How to reproduce the problem?
初次播放,若视频接口请求失败会进行重连3次,并触发‘error’事件,此时通过给实例src属性赋值,调用实例的switchUrl方法或者调用实例的start方法来重新加载视频,此时视频接口如果仍请求失败会无限次重连(观察所见);

如果重新加载视频后调用实例的retry方法会触发‘play'事件(我理解play事件是视频正常播放会触发,retry方法本身不应该触发play事件,个人理解)

您期望的播放器正常行为是? What did you expect to happen?
实例可以配置重连次数并按重连次数重连,或者是无论是切换视频源,还是实例初始化,播放失败均按3次重连

实际播放器的表现是? What actually happened?
播放失败后换源后若仍播放失败会无限次重连

可填写您所在的公司和相关产品业务,方便我们提供更好的技术支持 You can write your company and product which uses xgplayer, for helping us provide better technical support.
仓储视频监控平台

@Myidisnull Myidisnull changed the title 播放失败后换源后若仍播放失败会无限次重连 播放失败后手动换源/重新加载,若仍播放失败会无限次重连 Oct 18, 2024
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