Package com.theoplayer.android.api.abr
Interface Abr
-
- All Implemented Interfaces:
public interface Abr
The adaptive bitrate configuration.
- Since:
v2.30.0
-
-
Method Summary
Modifier and Type Method Description abstract void
setTargetBuffer(int value)
Sets the amount which the player should buffer ahead of the current playback position. abstract int
getTargetBuffer()
The amount which the player buffers ahead of the current playback position. abstract AbrStrategyConfiguration
getAbrStrategy()
The adaptive bitrate strategy configuration. abstract void
setAbrStrategy(@NonNull() AbrStrategyConfiguration abrStrategyConfiguration)
Sets the adaptive bitrate strategy configuration. -
-
Method Detail
-
setTargetBuffer
abstract void setTargetBuffer(int value)
Sets the amount which the player should buffer ahead of the current playback position.
- This duration has a maximum of 60 seconds.
- The player might reduce or ignore configured amount because of device or performance constraints.
- Parameters:
value
- The target buffer, in seconds.
-
getTargetBuffer
abstract int getTargetBuffer()
The amount which the player buffers ahead of the current playback position.
- Returns:
The target buffer, in seconds.
-
getAbrStrategy
@NonNull() abstract AbrStrategyConfiguration getAbrStrategy()
The adaptive bitrate strategy configuration.
- Returns:
The adaptive bitrate strategy. (NonNull)
-
setAbrStrategy
abstract void setAbrStrategy(@NonNull() AbrStrategyConfiguration abrStrategyConfiguration)
Sets the adaptive bitrate strategy configuration.
- Parameters:
abrStrategyConfiguration
- The new AbrStrategyConfiguration.
-
-
-
-