Skip to content

Commit

Permalink
Merge pull request #5 from NenoR96/main
Browse files Browse the repository at this point in the history
fix: play next item looping wrong item
  • Loading branch information
nteske authored Mar 14, 2022
2 parents c6a7ca9 + 156d6b7 commit be7c989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion widget/controllers/widget.nowplaying.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
*/
//var first = true;
var ready=false, setOder=false, first=false, open=true;
audioPlayer.onEvent(function (e) {
var mediaListener = audioPlayer.onEvent(function (e) {
switch (e.event) {
case 'play':
NowPlaying.playing = true;
Expand Down Expand Up @@ -308,6 +308,7 @@
NowPlaying.finished=true;
} else NowPlaying.finished=false;
}
mediaListener.clear();
break;
case 'pause':
NowPlaying.playing = false;
Expand Down

0 comments on commit be7c989

Please sign in to comment.