Skip to content

Playlist plugin fails at the end of playlist run #223

@pakal

Description

@pakal

As we see in this except, at the end, the playlist still tries to load an items OUT of bounds, which is undefined, so the mediaelement player makes errors ; it should be "< player.listItems.length - 1".

player.endedCallback = function () {
	if (player.currentPlaylistItem < player.listItems.length) {
		player.setSrc(player.playlist[++player.currentPlaylistItem]);
		player.load();
		setTimeout(function () {
			player.play();
		}, 200);
	}
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions