Package com.theoplayer.android.api
Class THEOplayerConfig.Builder
-
- All Implemented Interfaces:
public class THEOplayerConfig.Builder
The builder for THEOplayerConfig.
-
-
Constructor Summary
Constructors Constructor Description THEOplayerConfig.Builder()
-
Method Summary
Modifier and Type Method Description THEOplayerConfig.Builder
multiSession(boolean multiSession)
Sets whether the player supports multi-key content when the license server doesn't respond with all keys at once. THEOplayerConfig.Builder
ui(@NonNull() UIConfiguration uiConfiguration)
Sets the additional UI configuration. THEOplayerConfig.Builder
liveOffset(double liveOffset)
Sets the offset duration between the live point and the end of the manifest. THEOplayerConfig.Builder
hlsDateRange(boolean hlsDateRange)
Sets whether the logic to expose date ranges parsed from HLS manifests is enabled. THEOplayerConfig.Builder
license(@NonNull() String license)
Sets the license to string loaded before the player is constructed. THEOplayerConfig.Builder
licenseUrl(@NonNull() String licenseUrl)
Sets licenseUrl to string loaded before the player is constructed. THEOplayerConfig.Builder
pipConfiguration(@NonNull() PipConfiguration pipConfiguration)
Sets the configuration for Picture in Picture. THEOplayerConfig.Builder
networkConfiguration(@NonNull() NetworkConfiguration networkConfiguration)
Sets the retry configuration for the player. THEOplayerConfig
build()
Builds the THEOplayer Configuration. -
-
Method Detail
-
multiSession
@NonNull() THEOplayerConfig.Builder multiSession(boolean multiSession)
Sets whether the player supports multi-key content when the license server doesn't respond with all keys at once.
Default: false
- Parameters:
multiSession
- Whether the player supports multi-key content when the license server doesn't respond with all keys at once.
-
ui
@Deprecated()@NonNull() THEOplayerConfig.Builder ui(@NonNull() UIConfiguration uiConfiguration)
Sets the additional UI configuration.
- Parameters:
uiConfiguration
- The additional UI configuration.
-
liveOffset
@NonNull() THEOplayerConfig.Builder liveOffset(double liveOffset)
Sets the offset duration between the live point and the end of the manifest.
Default: 3 target durations.
- Parameters:
liveOffset
- The offset duration between the live point and the end of the manifest, in seconds.
-
hlsDateRange
@NonNull() THEOplayerConfig.Builder hlsDateRange(boolean hlsDateRange)
Sets whether the logic to expose date ranges parsed from HLS manifests is enabled.
- Parameters:
hlsDateRange
- Whether the logic to expose date ranges parsed from HLS manifests is enabled.
-
license
@NonNull() THEOplayerConfig.Builder license(@NonNull() String license)
Sets the license to string loaded before the player is constructed.
- Parameters:
license
- string representing license loaded before the player is constructed.
-
licenseUrl
@NonNull() THEOplayerConfig.Builder licenseUrl(@NonNull() String licenseUrl)
Sets licenseUrl to string loaded before the player is constructed.
- Parameters:
licenseUrl
- string representing licenseUrl loaded before the player is constructed.
-
pipConfiguration
@NonNull() THEOplayerConfig.Builder pipConfiguration(@NonNull() PipConfiguration pipConfiguration)
Sets the configuration for Picture in Picture.
- Parameters:
pipConfiguration
- The configuration for PiP.
-
networkConfiguration
@NonNull() THEOplayerConfig.Builder networkConfiguration(@NonNull() NetworkConfiguration networkConfiguration)
Sets the retry configuration for the player.
- Parameters:
networkConfiguration
- The retry configuration for player.
-
build
@NonNull() THEOplayerConfig build()
Builds the THEOplayer Configuration.
-
-
-
-