Package com.castlabs.android.player
Class TrickplayConfiguration.Builder
java.lang.Object
com.castlabs.android.player.TrickplayConfiguration.Builder
- Enclosing class:
TrickplayConfiguration
TrickplayConfiguration Builder.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Default constructor for Builder.Constructor for Builder that initializes with an existing TrickplayConfiguration. -
Method Summary
Modifier 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
-
Builder
public Builder()Default constructor for Builder. -
Builder
Constructor for Builder that initializes with an existing TrickplayConfiguration.- Parameters:
cfg- The TrickplayConfiguration to copy settings from.
-
-
Method Details
-
speedupMode
public 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- thespeedupModeto set- Returns:
- a reference to this Builder
-
speed
Sets thespeedand returns a reference to this Builder so that the methods can be chained together.- Parameters:
speed- thespeedto set- Returns:
- a reference to this Builder
-
preferTrickPlayTracks
Sets thepreferTrickPlayTracksand returns a reference to this Builder so that the methods can be chained together.- Parameters:
preferTrickPlayTracks- thepreferTrickPlayTracksto set- Returns:
- a reference to this Builder
-
forceUnreferencedTrickPlayTracks
public TrickplayConfiguration.Builder forceUnreferencedTrickPlayTracks(boolean forceUnreferencedTrickPlayTracks) Sets theforceUnreferencedTrickPlayTracksand returns a reference to this Builder so that the methods can be chained together.- Parameters:
forceUnreferencedTrickPlayTracks- theforceUnreferencedTrickPlayTracksto set- Returns:
- a reference to this Builder
-
trickplayTrack
Sets thetrickplayTrackand returns a reference to this Builder so that the methods can be chained together.- Parameters:
trickplayTrack- thetrickplayTrackto set- Returns:
- a reference to this Builder
-
maxTrackBitrate
Sets themaxTrackBitrateand returns a reference to this Builder so that the methods can be chained together.- Parameters:
maxTrackBitrate- themaxTrackBitrateto set- Returns:
- a reference to this Builder
-
keepAudioEnabled
Sets thekeepAudioEnabledand returns a reference to this Builder so that the methods can be chained together.- Parameters:
keepAudioEnabled- thekeepAudioEnabledto set- Returns:
- a reference to this Builder
-
keepDashEventCallbackEnabled
public TrickplayConfiguration.Builder keepDashEventCallbackEnabled(boolean keepDashEventCallbackEnabled) Sets thekeepDashEventCallbackEnabledand returns a reference to this Builder so that the methods can be chained together.- Parameters:
keepDashEventCallbackEnabled- thekeepDashEventCallbackEnabledto set- Returns:
- a reference to this Builder
-
maxSeekFps
Sets themaxSeekFpsand returns a reference to this Builder so that the methods can be chained together. Must be > 0.- Parameters:
maxSeekFps- themaxSeekFpsto set- Returns:
- a reference to this Builder
-
seekModeFrameRenderedTimeoutMs
public 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- theseekModeFrameRenderedTimeoutMsto set- Returns:
- a reference to this Builder
-
get
Returns aTrickplayConfigurationbuilt from the parameters previously set.- Returns:
- a
TrickplayConfigurationbuilt with parameters of thisTrickplayConfiguration.Builder
-