CmcdConfiguration
@UnstableApi
class CmcdConfiguration
Represents a configuration for the Common Media Client Data (CMCD) logging.
Summary
Nested types |
|---|
@Retention(value = RetentionPolicy.SOURCE)Indicates that the annotated element represents a CMCD key. |
@Retention(value = RetentionPolicy.SOURCE)Indicates the mode used for data transmission. |
interface CmcdConfiguration.FactoryFactory for |
@Retention(value = RetentionPolicy.SOURCE)Header keys SHOULD be allocated to one of the four defined header names based upon their expected level of variability: |
interface CmcdConfiguration.RequestConfigRepresents configuration which can vary on each request. |
Public constructors |
|---|
CmcdConfiguration(Creates an instance with |
CmcdConfiguration(Creates an instance. |
Public functions |
|
|---|---|
Boolean |
Returns whether logging bitrate is allowed based on the |
Boolean |
Returns whether logging buffer length is allowed based on the |
Boolean |
Returns whether logging buffer starvation is allowed based on the |
Boolean |
Returns whether logging content ID is allowed based on the |
Boolean |
Returns whether logging deadline is allowed based on the |
Boolean |
Returns whether logging maximum requested throughput is allowed based on the |
Boolean |
Returns whether logging measured throughput is allowed based on the |
Boolean |
Returns whether logging next object request is allowed based on the |
Boolean |
Returns whether logging next range request is allowed based on the |
Boolean |
Returns whether logging object duration is allowed based on the |
Boolean |
Returns whether logging object type is allowed based on the |
Boolean |
Returns whether logging playback rate is allowed based on the |
Boolean |
Returns whether logging session ID is allowed based on the |
Boolean |
Returns whether logging startup is allowed based on the |
Boolean |
Returns whether logging stream type is allowed based on the |
Boolean |
Returns whether logging streaming format is allowed based on the |
Boolean |
Returns whether logging top bitrate is allowed based on the |
Public properties |
|
|---|---|
String? |
A GUID identifying the current content, or |
Int |
Mode used for data transmission. |
CmcdConfiguration.RequestConfig! |
Dynamic request specific configuration. |
String? |
A GUID identifying the current playback session, or |
Constants
Public constructors
CmcdConfiguration
CmcdConfiguration(
sessionId: String?,
contentId: String?,
requestConfig: CmcdConfiguration.RequestConfig!
)
Creates an instance with dataTransmissionMode set to MODE_REQUEST_HEADER.
CmcdConfiguration
CmcdConfiguration(
sessionId: String?,
contentId: String?,
requestConfig: CmcdConfiguration.RequestConfig!,
@CmcdConfiguration.DataTransmissionMode dataTransmissionMode: Int
)
Creates an instance.
Public functions
isBitrateLoggingAllowed
fun isBitrateLoggingAllowed(): Boolean
Returns whether logging bitrate is allowed based on the request configuration.
isBufferLengthLoggingAllowed
fun isBufferLengthLoggingAllowed(): Boolean
Returns whether logging buffer length is allowed based on the request configuration.
isBufferStarvationLoggingAllowed
fun isBufferStarvationLoggingAllowed(): Boolean
Returns whether logging buffer starvation is allowed based on the request configuration.
isContentIdLoggingAllowed
fun isContentIdLoggingAllowed(): Boolean
Returns whether logging content ID is allowed based on the request configuration.
isDeadlineLoggingAllowed
fun isDeadlineLoggingAllowed(): Boolean
Returns whether logging deadline is allowed based on the request configuration.
isMaximumRequestThroughputLoggingAllowed
fun isMaximumRequestThroughputLoggingAllowed(): Boolean
Returns whether logging maximum requested throughput is allowed based on the request configuration.
isMeasuredThroughputLoggingAllowed
fun isMeasuredThroughputLoggingAllowed(): Boolean
Returns whether logging measured throughput is allowed based on the request configuration.
isNextObjectRequestLoggingAllowed
fun isNextObjectRequestLoggingAllowed(): Boolean
Returns whether logging next object request is allowed based on the request configuration.
isNextRangeRequestLoggingAllowed
fun isNextRangeRequestLoggingAllowed(): Boolean
Returns whether logging next range request is allowed based on the request configuration.
isObjectDurationLoggingAllowed
fun isObjectDurationLoggingAllowed(): Boolean
Returns whether logging object duration is allowed based on the request configuration.
isObjectTypeLoggingAllowed
fun isObjectTypeLoggingAllowed(): Boolean
Returns whether logging object type is allowed based on the request configuration.
isPlaybackRateLoggingAllowed
fun isPlaybackRateLoggingAllowed(): Boolean
Returns whether logging playback rate is allowed based on the request configuration.
isSessionIdLoggingAllowed
fun isSessionIdLoggingAllowed(): Boolean
Returns whether logging session ID is allowed based on the request configuration.
isStartupLoggingAllowed
fun isStartupLoggingAllowed(): Boolean
Returns whether logging startup is allowed based on the request configuration.
isStreamTypeLoggingAllowed
fun isStreamTypeLoggingAllowed(): Boolean
Returns whether logging stream type is allowed based on the request configuration.
isStreamingFormatLoggingAllowed
fun isStreamingFormatLoggingAllowed(): Boolean
Returns whether logging streaming format is allowed based on the request configuration.
isTopBitrateLoggingAllowed
fun isTopBitrateLoggingAllowed(): Boolean
Returns whether logging top bitrate is allowed based on the request configuration.
Public properties
contentId
val contentId: String?
A GUID identifying the current content, or null if unset.
This value is consistent across multiple different sessions and devices and is defined and updated at the discretion of the service provider. Maximum length is 64 characters.
dataTransmissionMode
@CmcdConfiguration.DataTransmissionMode
val dataTransmissionMode: Int
Mode used for data transmission.
requestConfig
val requestConfig: CmcdConfiguration.RequestConfig!
Dynamic request specific configuration.