YospaceSessionInitializationData

data class YospaceSessionInitializationData(val contentURL: String, val playbackMode: YospaceAdsSession.PlaybackMode, val userAgent: String? = null, val isValidationRequired: Boolean = false, val keepProxyAlive: Boolean = true, val connectTimeoutMs: Int? = null, val resourceTimeoutMs: Int? = null, val liveSessionTimeoutMs: Long = DEFAULT_LIVE_SESSION_TIMEOUT_MS)

Represents YospaceAdsSession's initialization data.

Constructors

Link copied to clipboard
constructor(contentURL: String, playbackMode: YospaceAdsSession.PlaybackMode, userAgent: String? = null, isValidationRequired: Boolean = false, keepProxyAlive: Boolean = true, connectTimeoutMs: Int? = null, resourceTimeoutMs: Int? = null, liveSessionTimeoutMs: Long = DEFAULT_LIVE_SESSION_TIMEOUT_MS)

Properties

Link copied to clipboard
val connectTimeoutMs: Int? = null

The timeout used when establishing an HTTP connection for session initialisation and for CSM polling, in milliseconds.

Link copied to clipboard

The url of the content to play.

Link copied to clipboard

The flag indicating if Session state validation is required. NOTE: This flag should be set to Boolean.true only when performing Yospace Validation Tests.

Link copied to clipboard

The property that controls if Yospace proxy session should be kept alive or not. Default value is Boolean.true.

Link copied to clipboard

The duration for which the Yospace live session will be active. If application stays background for more than liveSessionTimeoutMs, player should be stopped and re-initialise the player again.

Link copied to clipboard
val resourceTimeoutMs: Int? = null

The timeout used when firing analytic beacons and pre-fetching VAST resources, in milliseconds.

Link copied to clipboard
val userAgent: String? = null

The user agent to use when firing Yospace analytic tracking Beacons.

Functions

Link copied to clipboard
open override fun toString(): String