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
TrickplayConfigurationBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(TrickplayConfiguration cfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrickplayConfiguration.BuilderforceUnreferencedTrickPlayTracks(boolean forceUnreferencedTrickPlayTracks)Sets theforceUnreferencedTrickPlayTracksand returns a reference to this Builder so that the methods can be chained together.TrickplayConfigurationget()Returns aTrickplayConfigurationbuilt from the parameters previously set.TrickplayConfiguration.BuilderkeepAudioEnabled(boolean keepAudioEnabled)Sets thekeepAudioEnabledand returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.BuilderkeepDashEventCallbackEnabled(boolean keepDashEventCallbackEnabled)Sets thekeepDashEventCallbackEnabledand returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.BuildermaxSeekFps(double maxSeekFps)Sets themaxSeekFpsand returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.BuildermaxTrackBitrate(int maxTrackBitrate)Sets themaxTrackBitrateand returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.BuilderpreferTrickPlayTracks(boolean preferTrickPlayTracks)Sets thepreferTrickPlayTracksand returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.BuilderseekModeFrameRenderedTimeoutMs(long seekModeFrameRenderedTimeoutMs)Sets theseekModeFrameRenderedTimeoutMsand returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.Builderspeed(float speed)Sets thespeedand returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.BuilderspeedupMode(TrickplayConfiguration.SpeedupMode speedupMode)Sets thespeedupModeand returns a reference to this Builder so that the methods can be chained together.TrickplayConfiguration.BuildertrickplayTrack(VideoTrackQuality trickplayTrack)Sets thetrickplayTrackand 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 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
public TrickplayConfiguration.Builder speed(float 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
public TrickplayConfiguration.Builder preferTrickPlayTracks(boolean 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
public TrickplayConfiguration.Builder trickplayTrack(VideoTrackQuality 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
public TrickplayConfiguration.Builder maxTrackBitrate(int 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
public TrickplayConfiguration.Builder keepAudioEnabled(boolean 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
public TrickplayConfiguration.Builder maxSeekFps(double 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
public TrickplayConfiguration get()
Returns aTrickplayConfigurationbuilt from the parameters previously set.- Returns:
- a
TrickplayConfigurationbuilt with parameters of thisTrickplayConfiguration.Builder
-
-