mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-23 07:25:25 +01:00
Keep 30 seconds of back buffer
This commit is contained in:
parent
373f31c53e
commit
fc317e3b68
@ -63,6 +63,7 @@ public class ExoPlayerWrapper implements IPlayer {
|
||||
loadControl.setBufferDurationsMs(30000, 120000,
|
||||
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_MS,
|
||||
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS);
|
||||
loadControl.setBackBuffer(30000, true);
|
||||
SimpleExoPlayer p = ExoPlayerFactory.newSimpleInstance(mContext, new DefaultRenderersFactory(mContext),
|
||||
new DefaultTrackSelector(), loadControl.createDefaultLoadControl());
|
||||
p.setSeekParameters(SeekParameters.PREVIOUS_SYNC);
|
||||
|
Loading…
Reference in New Issue
Block a user