Package com.castlabs.android.player
Class TrickplayConfiguration.Builder
java.lang.Object
com.castlabs.android.player.TrickplayConfiguration.Builder
- Enclosing class:
- TrickplayConfiguration
TrickplayConfiguration Builder.- 
Constructor SummaryConstructorsConstructorDescriptionBuilder()Default constructor for Builder.Constructor for Builder that initializes with an existing TrickplayConfiguration.
- 
Method SummaryModifier and TypeMethodDescriptionforceUnreferencedTrickPlayTracks(boolean forceUnreferencedTrickPlayTracks) Sets theforceUnreferencedTrickPlayTracksand returns a reference to this Builder so that the methods can be chained together.get()Returns aTrickplayConfigurationbuilt from the parameters previously set.keepAudioEnabled(boolean keepAudioEnabled) Sets thekeepAudioEnabledand returns a reference to this Builder so that the methods can be chained together.keepDashEventCallbackEnabled(boolean keepDashEventCallbackEnabled) Sets thekeepDashEventCallbackEnabledand returns a reference to this Builder so that the methods can be chained together.maxSeekFps(double maxSeekFps) Sets themaxSeekFpsand returns a reference to this Builder so that the methods can be chained together.maxTrackBitrate(int maxTrackBitrate) Sets themaxTrackBitrateand returns a reference to this Builder so that the methods can be chained together.preferTrickPlayTracks(boolean preferTrickPlayTracks) Sets thepreferTrickPlayTracksand returns a reference to this Builder so that the methods can be chained together.seekModeFrameRenderedTimeoutMs(long seekModeFrameRenderedTimeoutMs) Sets theseekModeFrameRenderedTimeoutMsand returns a reference to this Builder so that the methods can be chained together.speed(float speed) Sets thespeedand returns a reference to this Builder so that the methods can be chained together.speedupMode(TrickplayConfiguration.SpeedupMode speedupMode) Sets thespeedupModeand returns a reference to this Builder so that the methods can be chained together.trickplayTrack(VideoTrackQuality trickplayTrack) Sets thetrickplayTrackand returns a reference to this Builder so that the methods can be chained together.
- 
Constructor Details- 
Builderpublic Builder()Default constructor for Builder.
- 
BuilderConstructor for Builder that initializes with an existing TrickplayConfiguration.- Parameters:
- cfg- The TrickplayConfiguration to copy settings from.
 
 
- 
- 
Method Details- 
speedupModepublic TrickplayConfiguration.Builder speedupMode(@NonNull TrickplayConfiguration.SpeedupMode speedupMode) Sets thespeedupModeand returns a reference to this Builder so that the methods can be chained together.- Parameters:
- speedupMode- the- speedupModeto set
- Returns:
- a reference to this Builder
 
- 
speedSets thespeedand returns a reference to this Builder so that the methods can be chained together.- Parameters:
- speed- the- speedto set
- Returns:
- a reference to this Builder
 
- 
preferTrickPlayTracksSets thepreferTrickPlayTracksand returns a reference to this Builder so that the methods can be chained together.- Parameters:
- preferTrickPlayTracks- the- preferTrickPlayTracksto set
- Returns:
- a reference to this Builder
 
- 
forceUnreferencedTrickPlayTrackspublic TrickplayConfiguration.Builder forceUnreferencedTrickPlayTracks(boolean forceUnreferencedTrickPlayTracks) Sets theforceUnreferencedTrickPlayTracksand returns a reference to this Builder so that the methods can be chained together.- Parameters:
- forceUnreferencedTrickPlayTracks- the- forceUnreferencedTrickPlayTracksto set
- Returns:
- a reference to this Builder
 
- 
trickplayTrackSets thetrickplayTrackand returns a reference to this Builder so that the methods can be chained together.- Parameters:
- trickplayTrack- the- trickplayTrackto set
- Returns:
- a reference to this Builder
 
- 
maxTrackBitrateSets themaxTrackBitrateand returns a reference to this Builder so that the methods can be chained together.- Parameters:
- maxTrackBitrate- the- maxTrackBitrateto set
- Returns:
- a reference to this Builder
 
- 
keepAudioEnabledSets thekeepAudioEnabledand returns a reference to this Builder so that the methods can be chained together.- Parameters:
- keepAudioEnabled- the- keepAudioEnabledto set
- Returns:
- a reference to this Builder
 
- 
keepDashEventCallbackEnabledpublic TrickplayConfiguration.Builder keepDashEventCallbackEnabled(boolean keepDashEventCallbackEnabled) Sets thekeepDashEventCallbackEnabledand returns a reference to this Builder so that the methods can be chained together.- Parameters:
- keepDashEventCallbackEnabled- the- keepDashEventCallbackEnabledto set
- Returns:
- a reference to this Builder
 
- 
maxSeekFpsSets themaxSeekFpsand returns a reference to this Builder so that the methods can be chained together. Must be > 0.- Parameters:
- maxSeekFps- the- maxSeekFpsto set
- Returns:
- a reference to this Builder
 
- 
seekModeFrameRenderedTimeoutMspublic TrickplayConfiguration.Builder seekModeFrameRenderedTimeoutMs(long seekModeFrameRenderedTimeoutMs) Sets theseekModeFrameRenderedTimeoutMsand returns a reference to this Builder so that the methods can be chained together. Must be ≥ 0.- Parameters:
- seekModeFrameRenderedTimeoutMs- the- seekModeFrameRenderedTimeoutMsto set
- Returns:
- a reference to this Builder
 
- 
getReturns aTrickplayConfigurationbuilt from the parameters previously set.- Returns:
- a TrickplayConfigurationbuilt with parameters of thisTrickplayConfiguration.Builder
 
 
-