Open safadig opened 5 years ago
this works for me:
<video id="video" class='video-js vjs-default-skin vjs-big-play-centered' controls style='width:100%;height:524px;' crossorigin='anonymous'></video>
var player = videojs('video', {
autoplay: true
});
player.playlist(your playlist);
player.playlist.autoadvance(0);
Autoadvance is working with @meyfleur's solution, but i'm having a strange behaviour. When I skip near the end of the video, and the video ends, the plugin does not autoadvance to the next.
Can I control this kind of behaviour? Or it's something with the script? I'm using this plugin alongside video-contribs-ads.
Below are my settings:
{
controls: true,
autoplay: true,
inactivityTimeout: 0,
preload: 'auto',
fluid: true,
}
Best regards
Did anyone ever figure out how to get this working predictably? I had auto advance working... and then suddenly I changed the video sources and now it refuses to advance.
Also [was, when autoadvance was working] having trouble getting the playlist to repeat, but that's another thing entirely.
Tried various combination but still neither autoplay nor autoadvance seem to work `<!doctype html>