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