Package com.brightcove.player.config
Class LoadControlConfig
java.lang.Object
com.brightcove.player.config.LoadControlConfig
Config class used when creating a
LoadControl
instance.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The LoadControlConfig Builder. -
Method Summary
Modifier and TypeMethodDescriptionGets the AllocatorConfig object.int
Gets the default duration of media that must be buffered for playback to resume after a rebuffer, in milliseconds.int
Gets the duration of media that must be buffered for playback to start or resume following a user action such as a seek, in milliseconds.int
Gets the maximum duration of media that the player will attempt buffer, in milliseconds.int
Gets the minimum duration of media that the player will attempt to ensure is buffered at all times, in milliseconds.int
Gets the target buffer size in bytes.boolean
Gets whether the load control prioritizes buffer time constraints over buffer size constraints.
-
Method Details
-
getMinBufferMs
public int getMinBufferMs()Gets the minimum duration of media that the player will attempt to ensure is buffered at all times, in milliseconds.- Returns:
- the min buffer in milliseconds
- See Also:
-
DefaultLoadControl
-
getMaxBufferMs
public int getMaxBufferMs()Gets the maximum duration of media that the player will attempt buffer, in milliseconds.- Returns:
- the max buffer in milliseconds
- See Also:
-
DefaultLoadControl
-
getBufferForPlaybackMs
public int getBufferForPlaybackMs()Gets the duration of media that must be buffered for playback to start or resume following a user action such as a seek, in milliseconds.- Returns:
- the buffer for playback in milliseconds
- See Also:
-
DefaultLoadControl
-
getBufferForPlaybackAfterRebufferMs
public int getBufferForPlaybackAfterRebufferMs()Gets 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.- Returns:
- the buffer for playback after rebuffer in milliseconds
- See Also:
-
DefaultLoadControl
-
getTargetBufferBytes
public int getTargetBufferBytes()Gets the target buffer size in bytes.- Returns:
- the target buffer bytes
- See Also:
-
DefaultLoadControl
-
isPrioritizeTimeOverSizeThresholds
public boolean isPrioritizeTimeOverSizeThresholds()Gets whether the load control prioritizes buffer time constraints over buffer size constraints.- See Also:
-
DefaultLoadControl
-
getAllocatorConfig
Gets the AllocatorConfig object.- Returns:
- the allocator config
-