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

  Fields
  Modifier and Type
  Field
  Description
  `static final CmcdConfigurationFactory`
  `DEFAULT`
  The default factory implementation.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `com.google.android.exoplayer2.upstream.CmcdConfiguration`
  `createCmcdConfiguration(PlayerConfig playerConfig)`
  Creates a `CmcdConfiguration` based on the provided contentId.

- ## Field Details

  - ### DEFAULT

    static final CmcdConfigurationFactory DEFAULT
    The default factory implementation.

    It creates a `CmcdConfiguration` by generating a random session ID and using the content ID passed to it

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

- ## Method Details

  - ### createCmcdConfiguration

    com.google.android.exoplayer2.upstream.CmcdConfiguration createCmcdConfiguration(PlayerConfig playerConfig)
    Creates a `CmcdConfiguration` based on the provided contentId.
    Parameters:
      `playerConfig` - The Player Config for the playback
    Returns:
      A `CmcdConfiguration` instance.