Skip to content

Type Alias: CmcdResponse ​

ts
type CmcdResponse = CmcdRequest & object;

Defined in: CmcdResponse.ts:13

Common Media Client Data (CMCD) version 2 - Response Mode.

Extends CmcdRequest with response-specific keys for reporting response data according to the CMCD version 2 specification.

Type Declaration ​

cmsdd? ​

ts
cmsdd?: string;

CMSD Dynamic Header

A Base64 encoded copy of the CMSD data received on the CMSD-Dynamic response header. This key MUST only be reported on events of type rr (response received).

String

See ​

CTA-5004-B CMSD Dynamic Header

cmsds? ​

ts
cmsds?: string;

CMSD Static Header

A Base64 encoded copy of the CMSD data received on the CMSD-Static response header. This key MUST only be reported on events of type rr (response received).

String

See ​

CTA-5004-B CMSD Static Header

rc? ​

ts
rc?: number;

Response code

The response code received when requesting a media object. In a redirect scenario, the value is the final response code received. A value of 0 SHOULD be used to indicate that a response was not received.

This key MUST only be reported on events of type rr (response received).

Integer

See ​

CTA-5004-B Response Code

smrt? ​

ts
smrt?: string;

SMRT-Data Header

A Base64 encoded copy of the streaming media response tracing data received on the Request Tracing header. This key MUST only be reported on events of type rr (response received).

String

See ​

CTA-5004-B SMRT-Data Header

ttfb? ​

ts
ttfb?: number;

Time to first byte

The elapsed time between when the request was first initiated (captured in ts) and the time when the first byte of the response was received. This key MUST only be reported on events of type rr (response received).

Integer milliseconds

See ​

CTA-5004-B Time to First Byte

ttfbb? ​

ts
ttfbb?: number;

Time to first body byte

The elapsed time between when the request was first initiated (captured in ts) and the time the first bytes of the response body are received. This key MUST only be reported on events of type rr (response received).

Integer milliseconds

See ​

CTA-5004-B Time to First Body Byte

ttlb? ​

ts
ttlb?: number;

Time to last byte

The elapsed time between when the request was first initiated (captured in ts) and the time the response body is fully received. This key MUST only be reported on events of type rr (response received).

Integer milliseconds

See ​

CTA-5004-B Time to Last Byte

url? ​

ts
url?: string;

Request URL

The URL used to request the media object. If the request is redirected, this key MUST report the initial requested URL. This key MUST be reported on events of type rr (response received).

String

See ​

CTA-5004-B Request URL

See ​

CTA-5004-B Response Mode

A Streaming Video Technology Alliance project.