From 1d8509fd8acfa4eeded40b48c016d86f5c353e33 Mon Sep 17 00:00:00 2001 From: falko Date: Sat, 5 Jan 2019 18:11:43 +0100 Subject: Enable ExoPlayer feature to skip silence SetSpeed was change to SetPlaybackParams which contain speed and a switch to skip silence. For Players that fo not support this the call is ignored or only SetSpeed is used. It is only working if ExoPlayeris used Default is OFF --- .../java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src/play') diff --git a/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java b/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java index 79e058d0c..487849ef5 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java +++ b/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java @@ -515,8 +515,8 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer { } @Override - public void setSpeed(float speed) { - throw new UnsupportedOperationException("Setting playback speed unsupported for Remote Playback"); + public void setPlaybackParams(float speed, boolean skipSilence) { + //Can be safely ignored as neither set speed not skipSilence is supported } @Override -- cgit v1.2.3