Package com.castlabs.android.player
Interface CatchupListener
-
- All Known Implementing Classes:
AbstractCatchupListener
public interface CatchupListenerListener to get events related to thecatchupfeature.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonCatchupEnded()Catchup has ended.voidonCatchupSeek(CatchupConfiguration.Type type)A seek operation was triggered.voidonCatchupStarted(float speed)Catchup has started.
-
-
-
Method Detail
-
onCatchupStarted
void onCatchupStarted(float speed)
Catchup has started. This is only invoked if the Type isCatchupConfiguration.Type.SPEED.- Parameters:
speed- the catchup speed. Will be the value defined inCatchupConfiguration.speedCoefficient
-
onCatchupEnded
void onCatchupEnded()
Catchup has ended. This is only invoked if the Type isCatchupConfiguration.Type.SPEED.
-
onCatchupSeek
void onCatchupSeek(CatchupConfiguration.Type type)
A seek operation was triggered. There's two possible scenarios for this to happen:- The Type is
CatchupConfiguration.Type.SPEED. In this case, the callback is triggered when the distance frombuffer endormedia endis bigger thanCatchupConfiguration.fallbackTimeThresholdMs. - The Type is {@link com.castlabs.android.player.CatchupConfiguration.Type#SEEK}.
In this case, the callback is rtiggered when the distance from
buffer endormedia endis bigger thanCatchupConfiguration.upperTimeThresholdMs.
- Parameters:
type- thetypeof the CatchupConfiguration that triggered the seek operation.
- The Type is
-
-