This page covers data collection for the Content player name variable. See Content player name for the corresponding reporting dimension.
The content player name variable identifies which player rendered the content (for example, HTML5 Player, Brightcove, or Roku Player). It is required for all streaming media implementations and must be set at session start. The value is used in the Content Player Name dimension to compare engagement and quality across players in the same property.
a.media.playerNamec_contextdata.a.media.playerNameRecommended implementation types
Set playerName inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Set the player name through the tracker configuration when creating the tracker, using MediaConstants.TrackerConfig.PLAYER_NAME. The player name is not part of the media object.
| code language-swift |
|---|
|
Set the player name through the tracker configuration when creating the tracker, using MediaConstants.TrackerConfig.PLAYER_NAME. The player name is not part of the media object.
| code language-kotlin |
|---|
|
Set playerName inside xdm.mediaCollection.sessionDetails when calling createMediaSession:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with playerName inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Set the player name on ADB.MediaConfig before creating the tracker:
| code language-javascript |
|---|
|
Pass the player name as a standard metadata key when calling trackSessionStart:
| code language-javascript |
|---|
|
Include media.playerName in the params object of your sessionStart POST request:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.