Class CMCDSourceConfiguration
-
- All Implemented Interfaces:
public final class CMCDSourceConfigurationDescribes the per-source CMCD (Common Media Client Data) configuration.
Set this on com.theoplayer.android.api.source.SourceDescription to override the player-level CMCDConfiguration for a single source. When sessionId is
nulla fresh UUID is generated each time the source is applied — i.e., every new source produces a new CMCD session.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringsessionIdprivate final StringexternalSessionIdprivate final StringuserIdprivate final List<CMCDEndpointConfiguration>eventEndpoints
-
Constructor Summary
Constructors Constructor Description CMCDSourceConfiguration(String sessionId, String externalSessionId, String userId, Boolean requestMode, List<CMCDEndpointConfiguration> eventEndpoints)
-
Method Summary
Modifier and Type Method Description final StringgetSessionId()A GUID identifying the current playback session. final StringgetExternalSessionId()An external session ID that can be used to identify the current playback session. final StringgetUserId()A user ID that can be used to identify the user. final List<CMCDEndpointConfiguration>getEventEndpoints()A list of CMCD endpoints to which events should be sent. -
-
Method Detail
-
getSessionId
final String getSessionId()
A GUID identifying the current playback session.
A playback session typically consists of the playback of a single media asset along with accompanying content such as advertisements. The maximum length is 64 characters. It is RECOMMENDED to conform to the UUID specification (https://tools.ietf.org/html/rfc4122).
If
null, a fresh UUID is generated each time this configuration is applied to the player.
-
getExternalSessionId
final String getExternalSessionId()
An external session ID that can be used to identify the current playback session.
Overrides the player-level CMCDConfiguration.externalSessionId when non-null.
-
getUserId
final String getUserId()
A user ID that can be used to identify the user.
Overrides the player-level CMCDConfiguration.userId when non-null.
-
getEventEndpoints
final List<CMCDEndpointConfiguration> getEventEndpoints()
A list of CMCD endpoints to which events should be sent.
Merged with the player-level CMCDConfiguration.eventEndpoints.
-
-
-
-