CmcdConfiguration.Factory


interface CmcdConfiguration.Factory


Factory for CmcdConfiguration instances.

Implementations must not make assumptions about which thread called their methods; and must be thread-safe.

Summary

Constants

const CmcdConfiguration.Factory!

The default factory implementation.

Public functions

CmcdConfiguration!

Creates a CmcdConfiguration based on the provided MediaItem.

Constants

DEFAULT

const val DEFAULTCmcdConfiguration.Factory!

The default factory implementation.

It creates a CmcdConfiguration by generating a random session ID and using the content ID from mediaId (or DEFAULT_MEDIA_ID if the media item does not have a mediaId defined).

It also utilises a default RequestConfig implementation that enables all available keys, provides empty custom data, and sets the maximum requested bitrate to RATE_UNSET_INT.

Public functions

createCmcdConfiguration

fun createCmcdConfiguration(mediaItem: MediaItem!): CmcdConfiguration!

Creates a CmcdConfiguration based on the provided MediaItem.

Parameters
mediaItem: MediaItem!

The MediaItem from which to create the CMCD configuration.

Returns
CmcdConfiguration!

A CmcdConfiguration instance.