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:
|