diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 863ad19687..287a53cb69 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -20,6 +20,9 @@ * Add a setter to `SntpClient` to set the max elapsed time since the last update after which the client is re-initialized ([#1794](https://github.com/androidx/media/pull/1794)). + * Reduce default values for `bufferForPlaybackMs` and + `bufferForPlaybackAfterRebufferMs` in `DefaultLoadControl` to 1000 and + 2000 ms respectively. * Transformer: * Update parameters of `VideoFrameProcessor.registerInputStream` and `VideoFrameProcessor.Listener.onInputStreamRegistered` to use `Format`. diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/DefaultLoadControl.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/DefaultLoadControl.java index 41518ba442..54247a0c80 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/DefaultLoadControl.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/DefaultLoadControl.java @@ -58,13 +58,13 @@ public class DefaultLoadControl implements LoadControl { * The default duration of media that must be buffered for playback to start or resume following a * user action such as a seek, in milliseconds. */ - public static final int DEFAULT_BUFFER_FOR_PLAYBACK_MS = 2500; + public static final int DEFAULT_BUFFER_FOR_PLAYBACK_MS = 1000; /** * The default duration of media that must be buffered for playback to resume after a rebuffer, in * milliseconds. A rebuffer is defined to be caused by buffer depletion rather than a user action. */ - public static final int DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS = 5000; + public static final int DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS = 2000; /** * The default target buffer size in bytes. The value ({@link C#LENGTH_UNSET}) means that the load