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
how to display poster image at the end of the video
I tried this but not working:
art.on('video:ended', () => { art.poster = 'https://artworks.thetvdb.com/banners/v4/series/81797/backgrounds/65a14ba386293.jpg'; });
The text was updated successfully, but these errors were encountered:
var art = new Artplayer({ container: '.artplayer-app', url: '/assets/sample/video.mp4', poster: '/assets/sample/poster.jpg', }); art.on('video:ended', () => { art.template.$poster.style.display = ''; });
how to display poster image at the end of the video
I tried this but not working:
art.on('video:ended', () => {
art.poster = 'https://artworks.thetvdb.com/banners/v4/series/81797/backgrounds/65a14ba386293.jpg';
});
The text was updated successfully, but these errors were encountered: