Added Exoplayer to new method

This commit is contained in:
ByteHamster 2018-07-04 23:54:04 +02:00
parent 3d1646c205
commit a9d9a5ac42
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
}