diff options
author | ByteHamster <info@bytehamster.com> | 2020-04-04 02:03:15 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-04-04 11:34:54 +0200 |
commit | 94c69e31cdd6bb393de6b337b6be1d486b273c42 (patch) | |
tree | 844739967727cc857004eb981f85c88a887f6dfe /core/src/play | |
parent | 0d9587f09c1e1285b2804ad520b62110b05c6f5e (diff) | |
download | AntennaPod-94c69e31cdd6bb393de6b337b6be1d486b273c42.zip |
Allow to select audio track
Diffstat (limited to 'core/src/play')
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java | 16 |
1 files changed, 16 insertions, 0 deletions
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 2a75f30a2..f629793e2 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 @@ -16,6 +16,9 @@ import com.google.android.libraries.cast.companionlibrary.cast.exceptions.NoConn import com.google.android.libraries.cast.companionlibrary.cast.exceptions.TransientNetworkDisconnectionException; import de.danoeh.antennapod.core.cast.MediaInfoCreator; + +import java.util.Collections; +import java.util.List; import java.util.concurrent.Future; import java.util.concurrent.FutureTask; import java.util.concurrent.atomic.AtomicBoolean; @@ -603,6 +606,19 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer { } @Override + public List<String> getAudioTracks() { + return Collections.emptyList(); + } + + public void setAudioTrack(int track) { + + } + + public int getSelectedAudioTrack() { + return -1; + } + + @Override protected Future<?> endPlayback(boolean hasEnded, boolean wasSkipped, boolean shouldContinue, boolean toStoppedState) { Log.d(TAG, "endPlayback() called"); |