CmcdConfiguration.Factory


public 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

default static final CmcdConfiguration.Factory

The default factory implementation.

Public methods

abstract CmcdConfiguration

Creates a CmcdConfiguration based on the provided MediaItem.

Constants

DEFAULT

default static final CmcdConfiguration.Factory DEFAULT

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 methods

createCmcdConfiguration

abstract CmcdConfiguration createCmcdConfiguration(MediaItem mediaItem)

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.