diff --git a/src/main/java/org/watermedia/api/player/videolan/BasePlayer.java b/src/main/java/org/watermedia/api/player/videolan/BasePlayer.java index 00fc29e3..0a2a9216 100644 --- a/src/main/java/org/watermedia/api/player/videolan/BasePlayer.java +++ b/src/main/java/org/watermedia/api/player/videolan/BasePlayer.java @@ -86,8 +86,8 @@ public void start(URI url, String[] vlcArgs) { ThreadTool.thread(4, () -> { if (rpa(url)) { if (audioUrl != null) { - raw.mediaPlayer().media().slaves().add(MediaSlaveType.AUDIO, MediaSlavePriority.HIGHEST, audioUrl.toString()); raw.mediaPlayer().media().prepare(this.url, vlcArgs); + raw.mediaPlayer().media().slaves().add(MediaSlaveType.AUDIO, MediaSlavePriority.HIGHEST, audioUrl.toString()); raw.mediaPlayer().controls().start(); } else { raw.mediaPlayer().media().start(this.url, vlcArgs);