Interface CmcdConfiguration.Factory
-
- Enclosing class:
- CmcdConfiguration
public static interface CmcdConfiguration.Factory
Factory forCmcdConfiguration
instances.Implementations must not make assumptions about which thread called their methods; and must be thread-safe.
-
-
Field Summary
Fields Modifier and Type Field Description static CmcdConfiguration.Factory
DEFAULT
The default factory implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CmcdConfiguration
createCmcdConfiguration(MediaItem mediaItem)
Creates aCmcdConfiguration
based on the providedMediaItem
.
-
-
-
Field Detail
-
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 fromMediaItem.mediaId
(orMediaItem.DEFAULT_MEDIA_ID
if the media item does not have aMediaItem.mediaId
defined).It also utilises a default
CmcdConfiguration.RequestConfig
implementation that enables all available keys, provides empty custom data, and sets the maximum requested bitrate toC.RATE_UNSET_INT
.
-
-
Method Detail
-
createCmcdConfiguration
CmcdConfiguration createCmcdConfiguration(MediaItem mediaItem)
Creates aCmcdConfiguration
based on the providedMediaItem
.- Parameters:
mediaItem
- TheMediaItem
from which to create the CMCD configuration.- Returns:
- A
CmcdConfiguration
instance.
-
-