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

Fixed Live Mode counter bug

parent dc3389f5
No related branches found
No related tags found
No related merge requests found
......@@ -196,6 +196,9 @@ public class AudioContent extends PadContent implements Pauseable, Durationable,
@Override
public void unloadMedia() {
// First Stop the pad (if playing)
getPad().setStatus(PadStatus.STOP);
durationProperty.unbind();
positionProperty.unbind();
......@@ -204,7 +207,7 @@ public class AudioContent extends PadContent implements Pauseable, Durationable,
if (audioHandler != null)
audioHandler.unloadMedia();
Platform.runLater(() ->
Platform.runLater(() -> // TODO Platform.runLater ?
{
if (getPad() != null) {
getPad().setStatus(PadStatus.EMPTY);
......
......@@ -44,8 +44,7 @@ public class ImageContent extends PadContent {
}
@Override
public void updateVolume() {
}
public void updateVolume() {}
@Override
public String getType() {
......@@ -79,6 +78,9 @@ public class ImageContent extends PadContent {
@Override
public void unloadMedia() {
// First Stop the pad (if playing)
getPad().setStatus(PadStatus.STOP);
Platform.runLater(() ->
{
if (getPad() != null) {
......
......@@ -209,6 +209,9 @@ public class VideoContent extends PadContent implements Pauseable, Durationable
@Override
public void unloadMedia() {
// First Stop the pad (if playing)
getPad().setStatus(PadStatus.STOP);
durationProperty.unbind();
positionProperty.unbind();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment