Home > hls.js > CMCDController
CMCDController class
Controller to deal with Common Media Client Data (CMCD)
Signature:
export default class CMCDController implements ComponentAPI Implements: ComponentAPI
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(hls) | Constructs a new instance of the CMCDController class |
Methods
| Method | Modifiers | Description |
|---|---|---|
| appendQueryToUri(uri, query) | static |
Append query args to a uri. |
| destroy() | ||
| serialize(data) | static |
Serialize a CMCD data object according to the rules defined in the section 3.2 of [CTA-5004](https://cdn.cta.tech/cta/media/media/resources/standards/pdfs/cta-5004-final.pdf). |
| toHeaders(data) | static |
Convert a CMCD data object to request headers according to the rules defined in the section 2.1 and 3.2 of [CTA-5004](https://cdn.cta.tech/cta/media/media/resources/standards/pdfs/cta-5004-final.pdf). |
| toQuery(data) | static |
Convert a CMCD data object to query args according to the rules defined in the section 2.2 and 3.2 of [CTA-5004](https://cdn.cta.tech/cta/media/media/resources/standards/pdfs/cta-5004-final.pdf). |
| uuid() | static |
Generate a random v4 UUI |