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

restart事件不会被触发 #751

Closed
zijiren233 opened this issue May 10, 2024 · 1 comment
Closed

restart事件不会被触发 #751

zijiren233 opened this issue May 10, 2024 · 1 comment

Comments

@zijiren233
Copy link

zijiren233 commented May 10, 2024

var art = new Artplayer({
    container: '.artplayer-app',
    url: '/assets/sample/video.mp4',
});

art.on('ready', () => {
    art.url = '/assets/sample/video.mp4'
	console.log("ready")
});

art.on('restart', (url) => {
    console.info('restart', url);
});

在线编辑器中发现只会打印ready,而没有restart

@zhw2590582
Copy link
Owner

文档写漏了,触发restart的还有一个前提是,前后两个url是不一样的:demo

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