-
- All Implemented Interfaces:
public class THEOplayerConfig.Builder
The builder for THEOplayerConfig.
-
-
Method Summary
Modifier and Type Method Description THEOplayerConfig.Builder
defaultCss(boolean defaultCss)
Sets whether the default css is enabled. 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
cssPaths(@NonNull() Array<String> cssPaths)
Sets the paths of the css files in the order of usage. THEOplayerConfig.Builder
jsPaths(@NonNull() Array<String> jsPaths)
Sets the paths of the javascript files in the order of usage. THEOplayerConfig.Builder
jsPathsPre(@NonNull() Array<String> jsPaths)
Sets the paths to javascript files which are loaded before the player is constructed. THEOplayerConfig.Builder
chromeless(boolean chromeless)
Sets whether the chromeless player, without UI, is used. THEOplayerConfig.Builder
analytics(@NonNull() Array<AnalyticsDescription> analytics)
Sets the configurations for pre-integrated analytics services. THEOplayerConfig.Builder
ads(@NonNull() AdsConfiguration adsConfig)
Sets the additional advertisement configuration. THEOplayerConfig.Builder
castStrategy(@NonNull() CastStrategy castStrategy)
Sets the cast behaviour. 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
verizonMediaConfiguration(@NonNull() VerizonMediaConfiguration verizonMediaConfiguration)
Sets the configuration for the Verizon Media services. 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
build()
Builds the THEOplayer Configuration. -
-
Method Detail
-
defaultCss
@NonNull() THEOplayerConfig.Builder defaultCss(boolean defaultCss)
Sets whether the default css is enabled.
Default: true
- Parameters:
defaultCss
- Whether the default css is enabled.
-
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.
-
cssPaths
@NonNull() THEOplayerConfig.Builder cssPaths(@NonNull() Array<String> cssPaths)
Sets the paths of the css files in the order of usage.
- These can also be URLs for remote files.
- Parameters:
cssPaths
- The paths of the css files in the order of usage.
-
jsPaths
@NonNull() THEOplayerConfig.Builder jsPaths(@NonNull() Array<String> jsPaths)
Sets the paths of the javascript files in the order of usage.
- These can also be URLs for remote files.
- Parameters:
jsPaths
- The paths of the javascript files in the order of usage.
-
jsPathsPre
@NonNull() THEOplayerConfig.Builder jsPathsPre(@NonNull() Array<String> jsPaths)
Sets the paths to javascript files which are loaded before the player is constructed.
- Parameters:
jsPaths
- One or more strings representing paths to javascript files which are loaded before the player is constructed.
-
chromeless
@NonNull() THEOplayerConfig.Builder chromeless(boolean chromeless)
Sets whether the chromeless player, without UI, is used.
Default: false
- Parameters:
chromeless
- Whether the chromeless player is used.
-
analytics
@NonNull() THEOplayerConfig.Builder analytics(@NonNull() Array<AnalyticsDescription> analytics)
Sets the configurations for pre-integrated analytics services.
- Parameters:
analytics
- The configurations for pre-integrated analytics services.
-
ads
@NonNull() THEOplayerConfig.Builder ads(@NonNull() AdsConfiguration adsConfig)
Sets the additional advertisement configuration.
- Parameters:
adsConfig
- The additional advertisement configuration.
-
castStrategy
@NonNull() THEOplayerConfig.Builder castStrategy(@NonNull() CastStrategy castStrategy)
- Parameters:
castStrategy
- The cast behaviour.
-
ui
@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.
-
verizonMediaConfiguration
@NonNull() THEOplayerConfig.Builder verizonMediaConfiguration(@NonNull() VerizonMediaConfiguration verizonMediaConfiguration)
Sets the configuration for the Verizon Media services.
- Parameters:
verizonMediaConfiguration
- The configuration for the pre-integrated Verizon Media services.
-
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.
-
build
@NonNull() THEOplayerConfig build()
Builds the THEOplayer Configuration.
-
-
-
-