-
public class LoadControlConfig
Config class used when creating a com.google.android.exoplayer2.LoadControl instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
LoadControlConfig.Builder
The LoadControlConfig Builder.
-
Field Summary
Fields Modifier and Type Field Description private final int
minBufferMs
private final int
maxBufferMs
private final int
bufferForPlaybackMs
private final int
bufferForPlaybackAfterRebufferMs
private final int
targetBufferBytes
private final AllocatorConfig
allocatorConfig
-
Method Summary
Modifier and Type Method Description int
getMinBufferMs()
Gets the minimum duration of media that the player will attempt to ensure isbuffered at all times, in milliseconds. int
getMaxBufferMs()
Gets the maximum duration of media that the player will attempt buffer, inmilliseconds. int
getBufferForPlaybackMs()
Gets the duration of media that must be buffered for playback to start orresume following a user action such as a seek, in milliseconds. int
getBufferForPlaybackAfterRebufferMs()
Gets the default duration of media that must be buffered forplayback to resume after a rebuffer, in milliseconds. int
getTargetBufferBytes()
Gets the target buffer size in bytes. AllocatorConfig
getAllocatorConfig()
Gets the AllocatorConfig object. boolean
isPrioritizeTimeOverSizeThresholds()
Gets whether the load control prioritizes buffer timeconstraints over buffer size constraints. -
-
Method Detail
-
getMinBufferMs
int getMinBufferMs()
Gets the minimum duration of media that the player will attempt to ensure isbuffered at all times, in milliseconds.
-
getMaxBufferMs
int getMaxBufferMs()
Gets the maximum duration of media that the player will attempt buffer, inmilliseconds.
-
getBufferForPlaybackMs
int getBufferForPlaybackMs()
Gets the duration of media that must be buffered for playback to start orresume following a user action such as a seek, in milliseconds.
-
getBufferForPlaybackAfterRebufferMs
int getBufferForPlaybackAfterRebufferMs()
Gets the default duration of media that must be buffered forplayback to resume after a rebuffer, in milliseconds. A rebuffer is defined to be caused bybuffer depletion rather than a user action.
-
getTargetBufferBytes
int getTargetBufferBytes()
Gets the target buffer size in bytes.
-
getAllocatorConfig
@NonNull() AllocatorConfig getAllocatorConfig()
Gets the AllocatorConfig object.
-
isPrioritizeTimeOverSizeThresholds
boolean isPrioritizeTimeOverSizeThresholds()
Gets whether the load control prioritizes buffer timeconstraints over buffer size constraints.
-
-
-
-