Package com.castlabs.android.player
Class TrickplayConfiguration.Builder
- java.lang.Object
-
- com.castlabs.android.player.TrickplayConfiguration.Builder
-
- Enclosing class:
- TrickplayConfiguration
public static final class TrickplayConfiguration.Builder extends Object
TrickplayConfiguration
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(TrickplayConfiguration cfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrickplayConfiguration.Builder
forceUnreferencedTrickPlayTracks(boolean forceUnreferencedTrickPlayTracks)
Sets theforceUnreferencedTrickPlayTracks
and returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration
get()
Returns aTrickplayConfiguration
built from the parameters previously set.TrickplayConfiguration.Builder
keepAudioEnabled(boolean keepAudioEnabled)
Sets thekeepAudioEnabled
and returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.Builder
keepDashEventCallbackEnabled(boolean keepDashEventCallbackEnabled)
Sets thekeepDashEventCallbackEnabled
and returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.Builder
maxSeekFps(double maxSeekFps)
Sets themaxSeekFps
and returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.Builder
maxTrackBitrate(int maxTrackBitrate)
Sets themaxTrackBitrate
and returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.Builder
preferTrickPlayTracks(boolean preferTrickPlayTracks)
Sets thepreferTrickPlayTracks
and returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.Builder
seekModeFrameRenderedTimeoutMs(long seekModeFrameRenderedTimeoutMs)
Sets theseekModeFrameRenderedTimeoutMs
and returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.Builder
speed(float speed)
Sets thespeed
and returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.Builder
speedupMode(TrickplayConfiguration.SpeedupMode speedupMode)
Sets thespeedupMode
and returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.Builder
trickplayTrack(VideoTrackQuality trickplayTrack)
Sets thetrickplayTrack
and returns a reference to this Builder so that the methods can be chained together.
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(@NonNull TrickplayConfiguration cfg)
-
-
Method Detail
-
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
public TrickplayConfiguration.Builder speed(float 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
public TrickplayConfiguration.Builder preferTrickPlayTracks(boolean 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
public TrickplayConfiguration.Builder trickplayTrack(VideoTrackQuality 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
public TrickplayConfiguration.Builder maxTrackBitrate(int 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
public TrickplayConfiguration.Builder keepAudioEnabled(boolean 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
public TrickplayConfiguration.Builder maxSeekFps(double 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
public TrickplayConfiguration get()
Returns aTrickplayConfiguration
built from the parameters previously set.- Returns:
- a
TrickplayConfiguration
built with parameters of thisTrickplayConfiguration.Builder
-
-