Class THEOplayerConfig.Builder
-
- All Implemented Interfaces:
public class THEOplayerConfig.BuilderThe builder for THEOplayerConfig.
-
-
Constructor Summary
Constructors Constructor Description THEOplayerConfig.Builder()
-
Method Summary
Modifier and Type Method Description THEOplayerConfig.BuildermultiSession(boolean multiSession)Sets whether the player supports multi-key content when the license server doesn't respond with all keys at once. THEOplayerConfig.BuilderliveOffset(double liveOffset)Sets the offset duration between the live point and the end of the manifest. THEOplayerConfig.BuilderhlsDateRange(boolean hlsDateRange)Sets whether the logic to expose date ranges parsed from HLS manifests is enabled. THEOplayerConfig.Builderlicense(@NonNull() String license)Sets the license to string loaded before the player is constructed. THEOplayerConfig.BuilderlicenseUrl(@NonNull() String licenseUrl)Sets licenseUrl to string loaded before the player is constructed. THEOplayerConfig.BuilderpipConfiguration(@NonNull() PipConfiguration pipConfiguration)Sets the configuration for Picture in Picture. THEOplayerConfig.BuildernetworkConfiguration(@NonNull() NetworkConfiguration networkConfiguration)Sets the retry configuration for the player. THEOplayerConfig.BuildertheoLiveConfiguration(@NonNull() THEOLiveConfig theoLiveConfiguration)Sets the TheoLive configuration for the player. THEOplayerConfig.BuilderintegrationConfiguration(@NonNull() IntegrationType integrationType, @NonNull() Object configuration)THEOplayerConfig.BuilderautoIntegrations(boolean autoIntegrations)Sets whether all available integrations should be automatically added. THEOplayerConfig.BuildertunnelingEnabled(boolean tunnelingEnabled)Whether multimedia tunneling is enabled for the player or not. THEOplayerConfigbuild()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.
-
liveOffset
@Deprecated()@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
@Deprecated()@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.
-
theoLiveConfiguration
@NonNull() THEOplayerConfig.Builder theoLiveConfiguration(@NonNull() THEOLiveConfig theoLiveConfiguration)
Sets the TheoLive configuration for the player.
- Parameters:
theoLiveConfiguration- The TheoLive configuration for player.
-
integrationConfiguration
@ApiStatus.Internal()@NonNull() THEOplayerConfig.Builder integrationConfiguration(@NonNull() IntegrationType integrationType, @NonNull() Object configuration)
-
autoIntegrations
@NonNull() THEOplayerConfig.Builder autoIntegrations(boolean autoIntegrations)
Sets whether all available integrations should be automatically added.
- Default:
false - Starting with THEOplayer version 9.0, this will default to
true. To opt out of the new behavior, manually set this tofalse.
- Parameters:
autoIntegrations- Whether to automatically added integrations.
- Default:
-
tunnelingEnabled
@NonNull() THEOplayerConfig.Builder tunnelingEnabled(boolean tunnelingEnabled)
Whether multimedia tunneling is enabled for the player or not.
- Default:
false - Only supported with the Media3 integration.
- Only supported if setRenderingTarget is set to SURFACE_VIEW.
- Only supported if the media being played includes both audio and video.
- Only supported on limited number of video codecs and devices.
- Returns:
True if multimedia tunneling is enabled.
- Default:
-
build
@NonNull() THEOplayerConfig build()
Builds the THEOplayer Configuration.
-
-
-
-