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

Set pad with ContentPLayerPadContent to stop state after fade out on eof

parent b7995ba2
No related branches found
No related tags found
No related merge requests found
...@@ -151,7 +151,10 @@ class ContentPlayerPadContent(val pad: Pad, val `type`: String) extends PadConte ...@@ -151,7 +151,10 @@ class ContentPlayerPadContent(val pad: Pad, val `type`: String) extends PadConte
if (fadeOut.toMillis > 0) { if (fadeOut.toMillis > 0) {
fadeController.fadeOut(fadeOut, () => { fadeController.fadeOut(fadeOut, () => {
if (onFinish != null) onFinish.run() if (onFinish != null) onFinish.run()
updateVolume()
if (getPad.getStatus == PadStatus.PLAY) {
getPad.setStatus(PadStatus.STOP)
}
}) })
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment