Skip to content
Snippets Groups Projects
Commit 507770ed authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

#183 - Only play next playlist item if pad status is "play" after trigger execution

parent 87a93243
Branches
Tags
No related merge requests found
......@@ -56,10 +56,14 @@ class ContentPlayerMediaContainer(val content: ContentPlayerPadContent, private[
if (currentIndex + 1 < players.length) {
content.listeners.forEach(listener => listener.onNextItem(content.pad, currentIndex + 1, players.length))
if (content.getPad.getStatus == PadStatus.PLAY) {
players(currentIndex + 1).play(false)
}
} else if (content.getPad.getPadSettings.isLoop) {
content.listeners.forEach(listener => listener.onNextItem(content.pad, 0, players.length))
if (content.getPad.getStatus == PadStatus.PLAY) {
players.head.play(false)
}
} else {
content.getPad.setStatus(PadStatus.STOP)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment