Package com.castlabs.android.player
Class CatchupConfiguration
java.lang.Object
com.castlabs.android.player.CatchupConfiguration
- All Implemented Interfaces:
Parcelable
Represents a catchup configuration.
This allows the playback position to be between two defined thresholds. The trigger of the
Catchup mechanism is automatic and based on the playhead. The two available Catchup Types are
CatchupConfiguration.Type.SEEK
and CatchupConfiguration.Type.SPEED
.
Use one of the Builder methods to create a configuration, CatchupConfiguration.Builder.speed(long, long, long, float)
or CatchupConfiguration.Builder.seek(long, long)
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for aCatchupConfiguration
.static enum
Timing reference which will be used to calculate the thresholds of the CatchupConfigurationstatic enum
Represents the catchup strategy.Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Parcelable.Creator<CatchupConfiguration>
static CatchupConfiguration
final long
Threshold relative to thetimeReference
which indicates a fallback safeguard for thespeed
mode.final long
Threshold relative to thetimeReference
which indicates the end or destination of the Catchup.boolean
Directs the player seek to Catchup Upper Time Threshold on Video Segment Download Timeout Errors.final float
Player speed at which to perform Catchup whenupperTimeThresholdMs
is reached.The time reference to which the thresholds will be relativeThe type (strategy) of the Catchup behaviour.final long
Threshold relative to thetimeReference
which indicates the start trigger of the Catchup.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
hashCode()
toString()
void
writeToParcel
(Parcel dest, int flags)
-
Field Details
-
DEFAULT
-
type
The type (strategy) of the Catchup behaviour. -
timeReference
The time reference to which the thresholds will be relative -
lowerTimeThresholdMs
public final long lowerTimeThresholdMsThreshold relative to thetimeReference
which indicates the end or destination of the Catchup. -
upperTimeThresholdMs
public final long upperTimeThresholdMsThreshold relative to thetimeReference
which indicates the start trigger of the Catchup. -
fallbackTimeThresholdMs
public final long fallbackTimeThresholdMsThreshold relative to thetimeReference
which indicates a fallback safeguard for thespeed
mode. If reached, a seek operation will be triggered to prevent theplayhead
from the timeReference. -
speedCoefficient
public final float speedCoefficientPlayer speed at which to perform Catchup whenupperTimeThresholdMs
is reached. Only applicable inspeed
mode. -
seekOnDownloadError
public boolean seekOnDownloadErrorDirects the player seek to Catchup Upper Time Threshold on Video Segment Download Timeout Errors. -
CREATOR
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
-
toString
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-
hashCode
public int hashCode() -
equals
-