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

支持播放,暂停,播放完成的事件监听么 #34

Open
Aesthetlc opened this issue Jun 8, 2022 · 5 comments
Open

支持播放,暂停,播放完成的事件监听么 #34

Aesthetlc opened this issue Jun 8, 2022 · 5 comments

Comments

@Aesthetlc
Copy link

如果支持如何操作呢,如果不支持,是否可以自定义呢?

@Aesthetlc
Copy link
Author

@muiplayer 大佬有时间辛苦回复我一下哈

@muiplayer
Copy link
Owner

监听暂停:mp.video().onpause = () => { };
监听播放完成:mp.video().onended = () => { };

参考:https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/video#事件

@Aesthetlc
Copy link
Author

谢谢,我看一下

@muiplayer
Copy link
Owner

好的,项目是还没有点 Star 吗,^_^ 🤪🤪

@Aesthetlc
Copy link
Author

已Star~

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