Package com.castlabs.android.player
Class TrickplayConfiguration
java.lang.Object
com.castlabs.android.player.TrickplayConfiguration
- All Implemented Interfaces:
Parcelable
Container which groups several Trickplay (speedup) configuration.
- Since:
- 4.2.3
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
TrickplayConfiguration
Builder.static enum
Speedup mode to use during TrickplayNested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Parcelable.Creator
<TrickplayConfiguration> final boolean
If enabled, and the content contains a Trickplay (usually I-frame only) tracks, the first one will be selected even no trick play track can be related to the currently selected main video.final boolean
Whether to keep audio renderer enabled during trickplay.final boolean
Whether to keepPlayerConfig.enableDashEventCallback
enabled during trickplay.final double
Maximum amount of frames per second to show duringseek
mode.final int
Defines the maximum bitrate for Trickplay track selection, ifpreferTrickPlayTracks
is set to true.final boolean
If enabled, and the content contains a Trickplay (usually I-frame only) track, it will be selected during Trickplay playback.final long
Timeout in milliseconds to force a new seek operation after thepause
State is received.final float
The playback speed.TheTrickplayConfiguration.SpeedupMode
to usefinal VideoTrackQuality
If informed, this will be the track that will be loaded for trickplay playback.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorDescriptionTrickplayConfiguration
(TrickplayConfiguration.SpeedupMode speedupMode, float speed, boolean preferTrickPlayTracks, boolean forceUnreferencedTrickPlayTracks, boolean keepAudioEnabled, boolean keepDashEventCallbackEnabled, int maxTrackBitrate, VideoTrackQuality trickplayTrack, double maxSeekFps, long seekModeFrameRenderedTimeoutMs) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
hashCode()
toString()
void
writeToParcel
(Parcel dest, int flags)
-
Field Details
-
CREATOR
-
speedupMode
TheTrickplayConfiguration.SpeedupMode
to use -
speed
public final float speedThe playback speed. 1 corresponds to normal playback and negative values to rewind playback.- See Also:
-
preferTrickPlayTracks
public final boolean preferTrickPlayTracksIf enabled, and the content contains a Trickplay (usually I-frame only) track, it will be selected during Trickplay playback. -
forceUnreferencedTrickPlayTracks
public final boolean forceUnreferencedTrickPlayTracksIf enabled, and the content contains a Trickplay (usually I-frame only) tracks, the first one will be selected even no trick play track can be related to the currently selected main video. If disabled and trick tracks are present but can not be referenced to the main video, then no trick track but main video will be selected -
trickplayTrack
If informed, this will be the track that will be loaded for trickplay playback. Takes preference overmaxTrackBitrate
. -
maxTrackBitrate
public final int maxTrackBitrateDefines the maximum bitrate for Trickplay track selection, ifpreferTrickPlayTracks
is set to true.trickplayTrack
will take preference over this setting if it is informed.If you want to select the lowest rendition for trickplay playback set this value to 0, or to
Integer.MAX_VALUE
to select the highest one. Setting one of these values will disable any ABR algorithm. -
keepAudioEnabled
public final boolean keepAudioEnabledWhether to keep audio renderer enabled during trickplay. -
keepDashEventCallbackEnabled
public final boolean keepDashEventCallbackEnabledWhether to keepPlayerConfig.enableDashEventCallback
enabled during trickplay. -
maxSeekFps
public final double maxSeekFpsMaximum amount of frames per second to show duringseek
mode. Must be > 0 Indicates the maximum number of Seek operations per second allowed. Only applicable in Seek mode. -
seekModeFrameRenderedTimeoutMs
public final long seekModeFrameRenderedTimeoutMs
-
-
Constructor Details
-
TrickplayConfiguration
public TrickplayConfiguration() -
TrickplayConfiguration
public TrickplayConfiguration(@NonNull TrickplayConfiguration.SpeedupMode speedupMode, float speed, boolean preferTrickPlayTracks, boolean forceUnreferencedTrickPlayTracks, boolean keepAudioEnabled, boolean keepDashEventCallbackEnabled, int maxTrackBitrate, @Nullable VideoTrackQuality trickplayTrack, double maxSeekFps, long seekModeFrameRenderedTimeoutMs)
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-
hashCode
public int hashCode() -
equals
-
toString
-