From a9d9a5ac4262751a5ff660c47915c190bcd6c414 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Wed, 4 Jul 2018 23:54:04 +0200 Subject: [PATCH] Added Exoplayer to new method --- .../de/danoeh/antennapod/core/service/playback/LocalPSMP.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java index 2bc247d9f..91c4a0fd7 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java @@ -631,6 +631,9 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer { } else if (mediaPlayer instanceof AudioPlayer) { AudioPlayer ap = (AudioPlayer) mediaPlayer; ap.setOnErrorListener((mediaPlayer, i, i1) -> true); + } else if (mediaPlayer instanceof ExoPlayerWrapper) { + ExoPlayerWrapper ap = (ExoPlayerWrapper) mediaPlayer; + ap.setOnErrorListener((mediaPlayer, i, i1) -> true); } }