videojs / videojs-playlist

Playlist plugin for videojs
Other
362 stars 123 forks source link

AutoAdvance and autoplay not working #108

Open safadig opened 5 years ago

safadig commented 5 years ago

Tried various combination but still neither autoplay nor autoadvance seem to work `<!doctype html>

Magicinfo `
meyfleur commented 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);
ideiasfrescas commented 3 years ago

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

GordonZed commented 2 months ago

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.