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.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.Builderpip(@NonNull() PipConfiguration pipConfiguration)Sets the configuration for Picture in Picture. THEOplayerConfig.BuilderpipConfiguration(@NonNull() PipConfiguration pipConfiguration)Sets the configuration for Picture in Picture. THEOplayerConfig.Buildernetwork(@NonNull() NetworkConfiguration networkConfiguration)Sets the network and retry configuration for the player. THEOplayerConfig.BuildernetworkConfiguration(@NonNull() NetworkConfiguration networkConfiguration)Sets the network and retry configuration for the player. THEOplayerConfig.BuildertheoLive(@NonNull() THEOLiveConfig theoLiveConfiguration)Sets the THEOlive 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.
-
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.
-
pip
@NonNull() THEOplayerConfig.Builder pip(@NonNull() PipConfiguration pipConfiguration)
Sets the configuration for Picture in Picture.
- Parameters:
pipConfiguration- The configuration for PiP.
-
pipConfiguration
@Deprecated(forRemoval = true)@NonNull() THEOplayerConfig.Builder pipConfiguration(@NonNull() PipConfiguration pipConfiguration)
Sets the configuration for Picture in Picture.
- Parameters:
pipConfiguration- The configuration for PiP.
-
network
@NonNull() THEOplayerConfig.Builder network(@NonNull() NetworkConfiguration networkConfiguration)
Sets the network and retry configuration for the player.
- Parameters:
networkConfiguration- The network and retry configuration for player.
-
networkConfiguration
@Deprecated(forRemoval = true)@NonNull() THEOplayerConfig.Builder networkConfiguration(@NonNull() NetworkConfiguration networkConfiguration)
Sets the network and retry configuration for the player.
- Parameters:
networkConfiguration- The network and retry configuration for player.
-
theoLive
@NonNull() THEOplayerConfig.Builder theoLive(@NonNull() THEOLiveConfig theoLiveConfiguration)
Sets the THEOlive configuration for the player.
- Parameters:
theoLiveConfiguration- The THEOlive configuration for player.
-
theoLiveConfiguration
@Deprecated(forRemoval = true)@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:
true
- 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.
-
-
-
-