diff --git a/sampler/src/main/java/atlantafx/sampler/page/showcase/musicplayer/PlayerPane.java b/sampler/src/main/java/atlantafx/sampler/page/showcase/musicplayer/PlayerPane.java index 94b3e8d..97553c8 100644 --- a/sampler/src/main/java/atlantafx/sampler/page/showcase/musicplayer/PlayerPane.java +++ b/sampler/src/main/java/atlantafx/sampler/page/showcase/musicplayer/PlayerPane.java @@ -209,7 +209,7 @@ final class PlayerPane extends VBox { long max = (long) currentPlayer.get().getMedia().getDuration().toSeconds(); long sliderVal = (long) timeSlider.getValue(); if (sliderVal <= max && timeSlider.isValueChanging()) { - currentPlayer.get().seek(Duration.seconds(sliderVal)); + currentPlayer.get().seek(Duration.seconds((double) sliderVal)); } });