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

Safari Browser 自动调用 player.play() 串流无法正常播放 #80

Closed
s6091214 opened this issue Oct 27, 2021 · 2 comments
Closed

Comments

@s6091214
Copy link

请问大大,前端使用按钮交互 player 后调用 stop() 和 play() 可正常使用,但行动端是否无法支援在监听事件中(如 timeUpdate) 自动调用 player.stop() 和 player.play() ? 感谢回复。

@ErosZy
Copy link
Owner

ErosZy commented Oct 27, 2021

safari以及现代的浏览器(高版本Chrome/Firefox)要求调用play方法时需要用户的主动触发(click/mouseup/mousedown/touchstart/touchend...),否则直接异常报错。

@s6091214
Copy link
Author

謝謝,已改用原生播放器。

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

2 participants