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
Nested ClassesModifier and TypeClassDescriptionstatic final classTrickplayConfigurationBuilder.static enumSpeedup mode to use during TrickplayNested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Parcelable.Creator<TrickplayConfiguration> Creator for Parcelable implementation.final booleanIf 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 booleanWhether to keep audio renderer enabled during trickplay.final booleanWhether to keepPlayerConfig.enableDashEventCallbackenabled during trickplay.final doubleMaximum amount of frames per second to show duringseekmode.final intDefines the maximum bitrate for Trickplay track selection, ifpreferTrickPlayTracksis set to true.final booleanIf enabled, and the content contains a Trickplay (usually I-frame only) track, it will be selected during Trickplay playback.final longTimeout in milliseconds to force a new seek operation after thepauseState is received.final floatThe playback speed.TheTrickplayConfiguration.SpeedupModeto usefinal VideoTrackQualityIf 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
ConstructorsConstructorDescriptionDefault constructor for TrickplayConfiguration.TrickplayConfiguration(TrickplayConfiguration.SpeedupMode speedupMode, float speed, boolean preferTrickPlayTracks, boolean forceUnreferencedTrickPlayTracks, boolean keepAudioEnabled, boolean keepDashEventCallbackEnabled, int maxTrackBitrate, VideoTrackQuality trickplayTrack, double maxSeekFps, long seekModeFrameRenderedTimeoutMs) Constructor for TrickplayConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()toString()voidwriteToParcel(Parcel dest, int flags)
-
Field Details
-
CREATOR
Creator for Parcelable implementation. -
speedupMode
TheTrickplayConfiguration.SpeedupModeto 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, ifpreferTrickPlayTracksis set to true.trickplayTrackwill 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_VALUEto 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.enableDashEventCallbackenabled during trickplay. -
maxSeekFps
public final double maxSeekFpsMaximum amount of frames per second to show duringseekmode. 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()Default constructor for TrickplayConfiguration. Initializes with default values. -
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) Constructor for TrickplayConfiguration.- Parameters:
speedupMode- TheTrickplayConfiguration.SpeedupModeto use.speed- The playback speed.preferTrickPlayTracks- Whether to prefer trickplay tracks.forceUnreferencedTrickPlayTracks- Whether to force unreferenced trickplay tracks.keepAudioEnabled- Whether to keep audio enabled.keepDashEventCallbackEnabled- Whether to keep DASH event callback enabled.maxTrackBitrate- The maximum track bitrate.trickplayTrack- The trickplay track.maxSeekFps- The maximum seek FPS.seekModeFrameRenderedTimeoutMs- The seek mode frame rendered timeout in milliseconds.
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcelin interfaceParcelable
-
hashCode
public int hashCode() -
equals
-
toString
-