Enum PlaybackStateTransitionReason
java.lang.Object
java.lang.Enum<PlaybackStateTransitionReason>
com.castlabs.android.player.state.PlaybackStateTransitionReason
- All Implemented Interfaces:
Serializable,Comparable<PlaybackStateTransitionReason>
Reason for a
PlaybackStateChange in the model shared across castLabs player SDKs.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEntering an ad caused the state change.Leaving an ad caused the state change.Startup autoplay could not begin.Enough data became available, but playback should remain paused.Enough data became available to start or resume playback.Playback is waiting because no usable data is available yet.An explicit request to pause caused the state change.An explicit request to play caused the state change.Normal playback reached the end of the content.A seek completed using data that was already buffered.A seek required more data to be loaded.A seek reached or passed the known content duration.Playback used all currently available buffered data. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the text value used by the shared playback state model.Returns the enum constant of this type with the specified name.static PlaybackStateTransitionReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Underrun
Playback used all currently available buffered data. -
NoData
Playback is waiting because no usable data is available yet. -
EnoughDataToPlay
Enough data became available to start or resume playback. -
EnoughDataToPause
Enough data became available, but playback should remain paused. -
PlaybackRequested
An explicit request to play caused the state change. -
AdStarted
Entering an ad caused the state change. -
AdStopped
Leaving an ad caused the state change. -
PauseRequested
An explicit request to pause caused the state change. -
AutoplayNotPermitted
Startup autoplay could not begin.This reason is part of the shared playback state model. Some platforms may restrict autoplay.
-
SeekedInBuffer
A seek completed using data that was already buffered. -
SeekedOutOfBuffer
A seek required more data to be loaded. -
PlayedToEnd
Normal playback reached the end of the content. -
SeekedToEnd
A seek reached or passed the known content duration.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Returns the text value used by the shared playback state model.- Returns:
- the state change reason
-