Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PlayWallDesktop
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PlayWall
PlayWallDesktop
Commits
507770ed
Commit
507770ed
authored
3 years ago
by
Tobias Ullerich
Browse files
Options
Downloads
Patches
Plain Diff
#183 - Only play next playlist item if pad status is "play" after trigger execution
parent
87a93243
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerMediaContainer.scala
+6
-2
6 additions, 2 deletions
...ypad/plugin/content/pad/ContentPlayerMediaContainer.scala
with
6 additions
and
2 deletions
PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerMediaContainer.scala
+
6
−
2
View file @
507770ed
...
...
@@ -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
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment