public static class ConvivaConfiguration.Builder extends Object
Constructor and Description |
---|
Builder(String customerKey,
ConvivaContentMetadata contentMetadata)
Creates a builder for the Conviva configuration.
|
Modifier and Type | Method and Description |
---|---|
ConvivaConfiguration |
build()
Builds the Conviva configuration.
|
ConvivaConfiguration.Builder |
gatewayUrl(String gatewayUrl)
Sets the URL of your Conviva gateway.
|
ConvivaConfiguration.Builder |
heartbeatInterval(int heartbeatInterval)
Sets the interval at which metrics are reported, in seconds.
|
ConvivaConfiguration.Builder |
manualSessionControl(boolean manualSessionControl)
Sets whether THEOplayer is in control of the Conviva session.
|
public Builder(String customerKey, ConvivaContentMetadata contentMetadata)
customerKey
- The customer key. (NonNull)contentMetadata
- The ConvivaContentMetadata
which will be sent to Conviva. (NonNull)public ConvivaConfiguration.Builder heartbeatInterval(int heartbeatInterval)
heartbeatInterval
- The heartbeat interval, in seconds.public ConvivaConfiguration.Builder gatewayUrl(String gatewayUrl)
gatewayUrl
- The gateway url. (NonNull)public ConvivaConfiguration.Builder manualSessionControl(boolean manualSessionControl)
manualSessionControl
- Whether THEOplayer is in control.- When the property returns 'false', the player will automatically create a Conviva session when playback is started and cleanup the session when playback reaches the end of the content. - When the property returns 'true', the player will not perform automatic session creation and cleanup.
public ConvivaConfiguration build()