Package com.castlabs.android.player
Class CatchupConfiguration
- java.lang.Object
-
- com.castlabs.android.player.CatchupConfiguration
-
- All Implemented Interfaces:
Parcelable
public final class CatchupConfiguration extends Object implements 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 areCatchupConfiguration.Type.SEEKandCatchupConfiguration.Type.SPEED. Use one of the Builder methods to create a configuration,CatchupConfiguration.Builder.speed(long, long, long, float)orCatchupConfiguration.Builder.seek(long, long).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCatchupConfiguration.BuilderBuilder for aCatchupConfiguration.static classCatchupConfiguration.TimeReferenceTiming reference which will be used to calculate the thresholds of the CatchupConfigurationstatic classCatchupConfiguration.TypeRepresents the catchup strategy.-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<CatchupConfiguration>CREATORstatic CatchupConfigurationDEFAULTlongfallbackTimeThresholdMsThreshold relative to thetimeReferencewhich indicates a fallback safeguard for thespeedmode.longlowerTimeThresholdMsThreshold relative to thetimeReferencewhich indicates the end or destination of the Catchup.floatspeedCoefficientPlayer speed at which to perform Catchup whenupperTimeThresholdMsis reached.CatchupConfiguration.TimeReferencetimeReferenceThe time reference to which the thresholds will be relativeCatchupConfiguration.TypetypeThe type (strategy) of the Catchup behaviour.longupperTimeThresholdMsThreshold 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(Object obj)inthashCode()StringtoString()voidwriteToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
DEFAULT
public static CatchupConfiguration DEFAULT
-
type
public final CatchupConfiguration.Type type
The type (strategy) of the Catchup behaviour.
-
timeReference
public final CatchupConfiguration.TimeReference timeReference
The time reference to which the thresholds will be relative
-
lowerTimeThresholdMs
public final long lowerTimeThresholdMs
Threshold relative to thetimeReferencewhich indicates the end or destination of the Catchup.
-
upperTimeThresholdMs
public final long upperTimeThresholdMs
Threshold relative to thetimeReferencewhich indicates the start trigger of the Catchup.
-
fallbackTimeThresholdMs
public final long fallbackTimeThresholdMs
Threshold 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 speedCoefficient
Player speed at which to perform Catchup whenupperTimeThresholdMsis reached. Only applicable inspeedmode.
-
CREATOR
public static final Parcelable.Creator<CatchupConfiguration> CREATOR
-
-
Method Detail
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcelin interfaceParcelable
-
-