Merge pull request #4381 from TacoTheDank/exoplayer-update
Update ExoPlayer to 2.11.8
This commit is contained in:
commit
d0a23cd017
|
@ -76,7 +76,7 @@ dependencies {
|
|||
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
|
||||
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
|
||||
|
||||
implementation 'com.google.android.exoplayer:exoplayer:2.10.8'
|
||||
implementation 'com.google.android.exoplayer:exoplayer:2.11.8'
|
||||
implementation "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion"
|
||||
|
||||
// Add casting features
|
||||
|
|
|
@ -8,7 +8,6 @@ import com.google.android.exoplayer2.C;
|
|||
import com.google.android.exoplayer2.DefaultLoadControl;
|
||||
import com.google.android.exoplayer2.DefaultRenderersFactory;
|
||||
import com.google.android.exoplayer2.ExoPlaybackException;
|
||||
import com.google.android.exoplayer2.ExoPlayerFactory;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.PlaybackParameters;
|
||||
import com.google.android.exoplayer2.Player;
|
||||
|
@ -76,9 +75,11 @@ public class ExoPlayerWrapper implements IPlayer {
|
|||
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_MS,
|
||||
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS);
|
||||
loadControl.setBackBuffer(UserPreferences.getRewindSecs() * 1000 + 500, true);
|
||||
trackSelector = new DefaultTrackSelector();
|
||||
exoPlayer = ExoPlayerFactory.newSimpleInstance(context, new DefaultRenderersFactory(context),
|
||||
trackSelector, loadControl.createDefaultLoadControl());
|
||||
trackSelector = new DefaultTrackSelector(context);
|
||||
exoPlayer = new SimpleExoPlayer.Builder(context, new DefaultRenderersFactory(context))
|
||||
.setTrackSelector(trackSelector)
|
||||
.setLoadControl(loadControl.createDefaultLoadControl())
|
||||
.build();
|
||||
exoPlayer.setSeekParameters(SeekParameters.EXACT);
|
||||
exoPlayer.addListener(new Player.EventListener() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue