Update default max buffer in DefaultLoadControl.

The value is increased to 50 seconds. With that the player can better handle
short network problems. This does NOT increase the maximum memory used as we
still apply the seperate DEFAULT_TARGET_BUFFER_BYTES.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188335603
This commit is contained in:
tonihei 2018-03-08 08:27:07 -08:00 committed by Oliver Woodman
parent 2675d03b30
commit 2a737eecc1
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
* Moved initial bitrate estimate from `AdaptiveTrackSelection` to * Moved initial bitrate estimate from `AdaptiveTrackSelection` to
`DefaultBandwidthMeter`. `DefaultBandwidthMeter`.
* Updated default max buffer length in `DefaultLoadControl`.
* UI components: * UI components:
* Add support for listening to `AspectRatioFrameLayout`'s aspect ratio update * Add support for listening to `AspectRatioFrameLayout`'s aspect ratio update
([#3736](https://github.com/google/ExoPlayer/issues/3736)). ([#3736](https://github.com/google/ExoPlayer/issues/3736)).

View File

@ -37,7 +37,7 @@ public class DefaultLoadControl implements LoadControl {
/** /**
* The default maximum duration of media that the player will attempt to buffer, in milliseconds. * The default maximum duration of media that the player will attempt to buffer, in milliseconds.
*/ */
public static final int DEFAULT_MAX_BUFFER_MS = 30000; public static final int DEFAULT_MAX_BUFFER_MS = 50000;
/** /**
* The default duration of media that must be buffered for playback to start or resume following a * The default duration of media that must be buffered for playback to start or resume following a