Class LatencyConfiguration.Builder
-
- All Implemented Interfaces:
public final class LatencyConfiguration.Builder
-
-
Constructor Summary
Constructors Constructor Description LatencyConfiguration.Builder()
-
Method Summary
Modifier and Type Method Description final LatencyConfiguration.Builder
setMinimumOffset(Double minimumOffset)
The start of the target live window. final LatencyConfiguration.Builder
setMaximumOffset(Double maximumOffset)
The end of the target live window. final LatencyConfiguration.Builder
setTargetOffset(Double targetOffset)
The live offset that the player will aim for. final LatencyConfiguration.Builder
setForceSeekOffset(Double forceSeekOffset)
The live offset at which the player will automatically trigger a live seek. final LatencyConfiguration.Builder
setMinimumPlaybackRate(Double minimumPlaybackRate)
Indicates the minimum playbackRate used to slow down the player. final LatencyConfiguration.Builder
setMaximumPlaybackRate(Double maximumPlaybackRate)
Indicates the maximum playbackRate used to speed up the player. final LatencyConfiguration
build()
-
-
Method Detail
-
setMinimumOffset
final LatencyConfiguration.Builder setMinimumOffset(Double minimumOffset)
The start of the target live window. If the live offset becomes smaller than this value, the player will slow down in order to increase the latency.
Default: 0.66 times the targetOffset.
-
setMaximumOffset
final LatencyConfiguration.Builder setMaximumOffset(Double maximumOffset)
The end of the target live window. If the live offset becomes higher than this value, the player will speed up in order to decrease the latency.
Default: Value 1.5 times the targetOffset.
-
setTargetOffset
final LatencyConfiguration.Builder setTargetOffset(Double targetOffset)
The live offset that the player will aim for. When correcting the offset by tuning the playbackRate, the player will stop correcting when it reaches this value.
This will override the TypedSource.liveOffset value.
-
setForceSeekOffset
final LatencyConfiguration.Builder setForceSeekOffset(Double forceSeekOffset)
The live offset at which the player will automatically trigger a live seek.
Default: Value 3 times the targetOffset.
-
setMinimumPlaybackRate
final LatencyConfiguration.Builder setMinimumPlaybackRate(Double minimumPlaybackRate)
Indicates the minimum playbackRate used to slow down the player.
Default: Value
0.92
-
setMaximumPlaybackRate
final LatencyConfiguration.Builder setMaximumPlaybackRate(Double maximumPlaybackRate)
Indicates the maximum playbackRate used to speed up the player.
Default: Value
1.08
-
build
final LatencyConfiguration build()
-
-
-
-