Common Media Client Data


This property adds Common Media Client Data (CMCD) information to all HLS.js or Shaka requests.

πŸ“˜

You can add "cmcd": {}" to send the default values for each CMCD property. However, we recommend adding meaningful values for each CMCD ID.


jwplayer("myElement").setup({
    "playlist": "https://cdn.jwplayer.com/v2/media/hWF9vG66",
    ...
    "cmcd": {
        "sessionId": "6e2fb550-c457-11e9-bb97-0800200c9a66",
        "contentId": "hWF9vG66",
        "useHeaders": false
    }
});
Property Description
contentId string Identifier for the current media item

Default: Playlist item's media ID
sessionId string Identifier for the session

Default: Randomly-generated UUID
useHeaders boolean Adds CMCD headers to the request

Possible Values:
  • false: (Default) CMCD information is transmitted via a query string.
  • true: CMCD information is transmitted via headers. Be mindful that adding headers will violate CORS unless the server is expecting and allows these additional headers.