mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-28 01:19:23 +01:00
Merge pull request #4008 from ByteHamster/exoplayer-user-agent
Use consistent user agent
This commit is contained in:
commit
f0cd5a0cd0
@ -29,7 +29,7 @@ import com.google.android.exoplayer2.upstream.DataSource;
|
||||
import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory;
|
||||
import com.google.android.exoplayer2.upstream.DefaultHttpDataSource;
|
||||
import com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory;
|
||||
import com.google.android.exoplayer2.util.Util;
|
||||
import de.danoeh.antennapod.core.ClientConfig;
|
||||
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||
import de.danoeh.antennapod.core.util.playback.IPlayer;
|
||||
import io.reactivex.Observable;
|
||||
@ -187,7 +187,7 @@ public class ExoPlayerWrapper implements IPlayer {
|
||||
public void setDataSource(String s) throws IllegalArgumentException, IllegalStateException {
|
||||
Log.d(TAG, "setDataSource: " + s);
|
||||
DefaultHttpDataSourceFactory httpDataSourceFactory = new DefaultHttpDataSourceFactory(
|
||||
Util.getUserAgent(context, context.getPackageName()), null,
|
||||
ClientConfig.USER_AGENT, null,
|
||||
DefaultHttpDataSource.DEFAULT_CONNECT_TIMEOUT_MILLIS,
|
||||
DefaultHttpDataSource.DEFAULT_READ_TIMEOUT_MILLIS,
|
||||
true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user