Package com.castlabs.android.player
Interface CmcdConfigurationFactory
public interface CmcdConfigurationFactory
Factory for
CmcdConfiguration instances.
Implementations must not make assumptions about which thread called their methods; and must be thread-safe.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CmcdConfigurationFactoryThe default factory implementation. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.android.exoplayer2.upstream.CmcdConfigurationcreateCmcdConfiguration(PlayerConfig playerConfig) Creates aCmcdConfigurationbased on the provided contentId.
-
Field Details
-
DEFAULT
The default factory implementation.It creates a
CmcdConfigurationby generating a random session ID and using the content ID passed to itIt also utilises a default
CmcdConfiguration.RequestConfigimplementation that enables all available keys, provides empty custom data, and sets the maximum requested bitrate toC.RATE_UNSET_INT.
-
-
Method Details
-
createCmcdConfiguration
com.google.android.exoplayer2.upstream.CmcdConfiguration createCmcdConfiguration(PlayerConfig playerConfig) Creates aCmcdConfigurationbased on the provided contentId.- Parameters:
playerConfig- The Player Config for the playback- Returns:
- A
CmcdConfigurationinstance.
-