AndroidLivePlaybackSpeedControl class Null safety

Speed control for live streams on Android.

Constructors

AndroidLivePlaybackSpeedControl({double fallbackMinPlaybackSpeed = 0.97, double fallbackMaxPlaybackSpeed = 1.03, Duration minUpdateInterval = const Duration(seconds: 1), double proportionalControlFactor = 1.0, Duration maxLiveOffsetErrorForUnitSpeed = const Duration(milliseconds: 20), Duration targetLiveOffsetIncrementOnRebuffer = const Duration(milliseconds: 500), double minPossibleLiveOffsetSmoothingFactor = 0.999})

Properties

fallbackMaxPlaybackSpeed double
(Android) The maximum playback speed to use when adjusting playback speed to approach the target live offset, if none is defined by the media.
final
fallbackMinPlaybackSpeed double
(Android) The minimum playback speed to use when adjusting playback speed to approach the target live offset, if none is defined by the media.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
maxLiveOffsetErrorForUnitSpeed Duration
(Android) The maximum difference between the current live offset and the target live offset within which the speed 1.0 is used.
final
minPossibleLiveOffsetSmoothingFactor double
(Android) The factor for smoothing the minimum possible live offset achievable during playback.
final
minUpdateInterval Duration
(Android) The minimum interval between playback speed changes on a live stream.
final
proportionalControlFactor double
(Android) The proportional control factor used to adjust playback speed on a live stream. The adjusted speed is calculated as: 1.0 + proportionalControlFactor * (currentLiveOffsetSec - targetLiveOffsetSec).
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
targetLiveOffsetIncrementOnRebuffer Duration
(Android) The increment applied to the target live offset whenever the player rebuffers.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited