mediaelement / mediaelement-plugins

Plugins for the main mediaelement project
405 stars 137 forks source link

Fixing playlist behavior when track ends #226

Open Bakual opened 2 years ago

Bakual commented 2 years ago

This should both fix the issues https://github.com/mediaelement/mediaelement-plugins/issues/225 and https://github.com/mediaelement/mediaelement-plugins/issues/223

Means it properly detects the end of the playlist (since the currentPlaylistItem starts with 0) and it properly sets the Source-URL of the PlaylistItem, and not the whole object as new player source (same as it is done for prev/next buttons).