Skip to content

Commit

Permalink
Applying upstream PR and replacing minified version with non-minified.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakual committed Aug 5, 2022
1 parent fda8ca4 commit cecd2aa
Show file tree
Hide file tree
Showing 2 changed files with 340 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plg_sermonspeaker_mediaelement/media/js/playlist/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Object.assign(MediaElementPlayer.prototype, {
controls.style.zIndex = 5;

player.endedCallback = function () {
if (player.currentPlaylistItem < player.listItems.length) {
player.setSrc(player.playlist[++player.currentPlaylistItem]);
if (player.currentPlaylistItem < player.listItems.length - 1) {
player.setSrc(player.playlist[++player.currentPlaylistItem].src);
player.load();
setTimeout(function () {
player.play();
Expand Down
Loading

0 comments on commit cecd2aa

Please sign in to comment.