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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for aCatchupConfiguration.static enumTiming reference which will be used to calculate the thresholds of the CatchupConfigurationstatic enumRepresents the catchup strategy.Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Parcelable.Creator<CatchupConfiguration> static CatchupConfigurationfinal longThreshold relative to thetimeReferencewhich indicates a fallback safeguard for thespeedmode.final longThreshold relative to thetimeReferencewhich indicates the end or destination of the Catchup.booleanDirects the player seek to Catchup Upper Time Threshold on Video Segment Download Timeout Errors.final floatPlayer speed at which to perform Catchup whenupperTimeThresholdMsis reached.The time reference to which the thresholds will be relativeThe type (strategy) of the Catchup behaviour.final longThreshold relative to thetimeReferencewhich 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 TypeMethodDescriptionintbooleaninthashCode()toString()voidwriteToParcel(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 thetimeReferencewhich indicates the end or destination of the Catchup. -
upperTimeThresholdMs
public final long upperTimeThresholdMsThreshold relative to thetimeReferencewhich indicates the start trigger of the Catchup. -
fallbackTimeThresholdMs
public final long fallbackTimeThresholdMsThreshold relative to thetimeReferencewhich indicates a fallback safeguard for thespeedmode. If reached, a seek operation will be triggered to prevent theplayheadfrom the timeReference. -
speedCoefficient
public final float speedCoefficientPlayer speed at which to perform Catchup whenupperTimeThresholdMsis reached. Only applicable inspeedmode. -
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:
describeContentsin interfaceParcelable
-
toString
-
writeToParcel
- Specified by:
writeToParcelin interfaceParcelable
-
hashCode
public int hashCode() -
equals
-