Package com.castlabs.android.player
Class TrickplayConfiguration.Builder
java.lang.Object
com.castlabs.android.player.TrickplayConfiguration.Builder
- Enclosing class:
TrickplayConfiguration
TrickplayConfiguration
Builder.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionforceUnreferencedTrickPlayTracks
(boolean forceUnreferencedTrickPlayTracks) Sets theforceUnreferencedTrickPlayTracks
and returns a reference to this Builder so that the methods can be chained together.get()
Returns aTrickplayConfiguration
built from the parameters previously set.keepAudioEnabled
(boolean keepAudioEnabled) Sets thekeepAudioEnabled
and returns a reference to this Builder so that the methods can be chained together.keepDashEventCallbackEnabled
(boolean keepDashEventCallbackEnabled) Sets thekeepDashEventCallbackEnabled
and returns a reference to this Builder so that the methods can be chained together.maxSeekFps
(double maxSeekFps) Sets themaxSeekFps
and returns a reference to this Builder so that the methods can be chained together.maxTrackBitrate
(int maxTrackBitrate) Sets themaxTrackBitrate
and returns a reference to this Builder so that the methods can be chained together.preferTrickPlayTracks
(boolean preferTrickPlayTracks) Sets thepreferTrickPlayTracks
and returns a reference to this Builder so that the methods can be chained together.seekModeFrameRenderedTimeoutMs
(long seekModeFrameRenderedTimeoutMs) Sets theseekModeFrameRenderedTimeoutMs
and returns a reference to this Builder so that the methods can be chained together.speed
(float speed) Sets thespeed
and returns a reference to this Builder so that the methods can be chained together.speedupMode
(TrickplayConfiguration.SpeedupMode speedupMode) Sets thespeedupMode
and returns a reference to this Builder so that the methods can be chained together.trickplayTrack
(VideoTrackQuality trickplayTrack) Sets thetrickplayTrack
and returns a reference to this Builder so that the methods can be chained together.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
speedupMode
public TrickplayConfiguration.Builder speedupMode(@NonNull TrickplayConfiguration.SpeedupMode speedupMode) Sets thespeedupMode
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
speedupMode
- thespeedupMode
to set- Returns:
- a reference to this Builder
-
speed
Sets thespeed
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
speed
- thespeed
to set- Returns:
- a reference to this Builder
-
preferTrickPlayTracks
Sets thepreferTrickPlayTracks
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
preferTrickPlayTracks
- thepreferTrickPlayTracks
to set- Returns:
- a reference to this Builder
-
forceUnreferencedTrickPlayTracks
public TrickplayConfiguration.Builder forceUnreferencedTrickPlayTracks(boolean forceUnreferencedTrickPlayTracks) Sets theforceUnreferencedTrickPlayTracks
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
forceUnreferencedTrickPlayTracks
- theforceUnreferencedTrickPlayTracks
to set- Returns:
- a reference to this Builder
-
trickplayTrack
Sets thetrickplayTrack
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
trickplayTrack
- thetrickplayTrack
to set- Returns:
- a reference to this Builder
-
maxTrackBitrate
Sets themaxTrackBitrate
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
maxTrackBitrate
- themaxTrackBitrate
to set- Returns:
- a reference to this Builder
-
keepAudioEnabled
Sets thekeepAudioEnabled
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
keepAudioEnabled
- thekeepAudioEnabled
to set- Returns:
- a reference to this Builder
-
keepDashEventCallbackEnabled
public TrickplayConfiguration.Builder keepDashEventCallbackEnabled(boolean keepDashEventCallbackEnabled) Sets thekeepDashEventCallbackEnabled
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
keepDashEventCallbackEnabled
- thekeepDashEventCallbackEnabled
to set- Returns:
- a reference to this Builder
-
maxSeekFps
Sets themaxSeekFps
and returns a reference to this Builder so that the methods can be chained together. Must be > 0.- Parameters:
maxSeekFps
- themaxSeekFps
to set- Returns:
- a reference to this Builder
-
seekModeFrameRenderedTimeoutMs
public TrickplayConfiguration.Builder seekModeFrameRenderedTimeoutMs(long seekModeFrameRenderedTimeoutMs) Sets theseekModeFrameRenderedTimeoutMs
and returns a reference to this Builder so that the methods can be chained together. Must be ≥ 0.- Parameters:
seekModeFrameRenderedTimeoutMs
- theseekModeFrameRenderedTimeoutMs
to set- Returns:
- a reference to this Builder
-
get
Returns aTrickplayConfiguration
built from the parameters previously set.- Returns:
- a
TrickplayConfiguration
built with parameters of thisTrickplayConfiguration.Builder
-