Home > hls.js > CMCDController > toHeaders

CMCDController.toHeaders() method

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).

Signature:

static toHeaders(data: CMCD): Partial<CMCDHeaders>;

Parameters

Parameter Type Description
data CMCD

Returns:

Partial<CMCDHeaders>