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
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 network and retry configuration for the player. THEOplayerConfig.Builder
theoLiveConfiguration(@NonNull() THEOLiveConfig theoLiveConfiguration)
Sets the TheoLive configuration for the player. THEOplayerConfig.Builder
integrationConfiguration(@NonNull() IntegrationType integrationType, @NonNull() Object configuration)
THEOplayerConfig.Builder
autoIntegrations(boolean autoIntegrations)
Sets whether all available integrations should be automatically added. THEOplayerConfig.Builder
tunnelingEnabled(boolean tunnelingEnabled)
Whether multimedia tunneling is enabled for the player or not. 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.
-
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 network and retry configuration for the player.
- Parameters:
networkConfiguration
- The network and 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:
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.
-
-
-
-