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 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).
  • Field Details

    • 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 the timeReference which indicates the end or destination of the Catchup.
    • upperTimeThresholdMs

      public final long upperTimeThresholdMs
      Threshold relative to the timeReference which indicates the start trigger of the Catchup.
    • fallbackTimeThresholdMs

      public final long fallbackTimeThresholdMs
      Threshold relative to the timeReference which indicates a fallback safeguard for the speed mode. If reached, a seek operation will be triggered to prevent the playhead from the timeReference.
    • speedCoefficient

      public final float speedCoefficient
      Player speed at which to perform Catchup when upperTimeThresholdMs is reached. Only applicable in speed mode.
    • seekOnDownloadError

      public boolean seekOnDownloadError
      Directs the player seek to Catchup Upper Time Threshold on Video Segment Download Timeout Errors.
    • CREATOR

      public static final Parcelable.Creator<CatchupConfiguration> CREATOR
  • Method Details