Package com.vdocipher.aegis.player
Class VdoPlayerSetting.Builder
-
- All Implemented Interfaces:
public final class VdoPlayerSetting.Builder
Builder class for constructing a VdoPlayerSetting instance.
Allows for customization of various playback settings before creating an immutable VdoPlayerSetting object.
-
-
Field Summary
Fields Modifier and Type Field Description public VdoPlayerSetting.VdoPlaybackMode
vdoPlaybackMode
public String
downloadLocation
public int
maxBufferMs
-
Constructor Summary
Constructors Constructor Description VdoPlayerSetting.Builder()
Creates a new Builder with default settings. VdoPlayerSetting.Builder(VdoPlayerSetting vdoPlayerSetting)
Creates a new Builder by copying the settings from an existing VdoPlayerSetting.
-
Method Summary
Modifier and Type Method Description VdoPlayerSetting.Builder
setPlaybackBehavior(VdoPlayerSetting.VdoPlaybackMode vdoPlaybackMode)
Sets the playback behavior for the VdoPlayer. VdoPlayerSetting.Builder
setMaxBufferMs(int maxBufferMs)
Sets the maximum buffer size in milliseconds. VdoPlayerSetting.Builder
setDownloadLocation(String downloadLocation)
Sets the location where downloads will be stored. VdoPlayerSetting
build()
Builds and returns a VdoPlayerSetting instance with the current settings. -
-
Constructor Detail
-
VdoPlayerSetting.Builder
VdoPlayerSetting.Builder()
Creates a new Builder with default settings.
-
VdoPlayerSetting.Builder
VdoPlayerSetting.Builder(VdoPlayerSetting vdoPlayerSetting)
Creates a new Builder by copying the settings from an existing VdoPlayerSetting.- Parameters:
vdoPlayerSetting
- The existing VdoPlayerSetting from which to copy settings.
-
-
Method Detail
-
setPlaybackBehavior
VdoPlayerSetting.Builder setPlaybackBehavior(VdoPlayerSetting.VdoPlaybackMode vdoPlaybackMode)
Sets the playback behavior for the VdoPlayer.
- Parameters:
vdoPlaybackMode
- The desired playback mode.- Returns:
This Builder object to allow for chaining of method calls.
-
setMaxBufferMs
VdoPlayerSetting.Builder setMaxBufferMs(int maxBufferMs)
Sets the maximum buffer size in milliseconds.
- Parameters:
maxBufferMs
- The maximum buffer size in milliseconds.- Returns:
This Builder object to allow for chaining of method calls.
-
setDownloadLocation
VdoPlayerSetting.Builder setDownloadLocation(String downloadLocation)
Sets the location where downloads will be stored.
- Parameters:
downloadLocation
- The path to the download location.- Returns:
This Builder object to allow for chaining of method calls.
-
build
VdoPlayerSetting build()
Builds and returns a VdoPlayerSetting instance with the current settings.
- Returns:
A new VdoPlayerSetting object with the settings from this Builder.
-
-
-
-