From cbdd3603aab4519aa477df480c57c8e2fd033012 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Wed, 2 Oct 2019 15:42:55 +0200 Subject: [PATCH] Added logging to ExoPlayer --- .../antennapod/core/service/playback/ExoPlayerWrapper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java index 13349dfdd..fc2cee54d 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java @@ -2,6 +2,7 @@ package de.danoeh.antennapod.core.service.playback; import android.content.Context; import android.net.Uri; +import android.util.Log; import android.view.SurfaceHolder; import com.google.android.exoplayer2.C; @@ -35,6 +36,7 @@ import de.danoeh.antennapod.core.util.playback.IPlayer; import java.util.concurrent.TimeUnit; public class ExoPlayerWrapper implements IPlayer { + private static final String TAG = "ExoPlayerWrapper"; private final Context mContext; private final Disposable bufferingUpdateDisposable; private SimpleExoPlayer mExoPlayer; @@ -204,6 +206,7 @@ public class ExoPlayerWrapper implements IPlayer { @Override public void setDataSource(String s) throws IllegalArgumentException, IllegalStateException { + Log.d(TAG, "setDataSource: " + s); DefaultHttpDataSourceFactory httpDataSourceFactory = new DefaultHttpDataSourceFactory( Util.getUserAgent(mContext, mContext.getPackageName()), null, DefaultHttpDataSource.DEFAULT_CONNECT_TIMEOUT_MILLIS,