Creates a new CMCD reporter.
The configuration for the CMCD reporter.
The function to use to send the request.
The default is a simple wrapper around the
native fetch API.
Applies the CMCD request report data to the request. Called by the player before sending the request.
The request to apply the CMCD request report to.
The request with the CMCD request report applied.
Use CmcdReporter.createRequestReport instead.
Creates a new request with the CMCD request report data applied. Called by the player before sending the request.
The request with the CMCD request report applied.
Forces the sending of all event reports, regardless of the batch size or interval. Useful for sending outstanding reports when the player is destroyed or a playback session ends.
Checks if the request reporting is enabled.
true if the request reporting is enabled, false otherwise.
Records an event. Called by the player when an event occurs.
The type of event to record.
Additional data to record with the event. This data
only applies to this event report. Persistent data should
be updated using update().
Records a response-received event. Called by the player when a media request response has been fully received.
This method automatically derives the rr event keys from the
url - the original requested URL (before any redirects)rc - the HTTP response status codets - the request initiation time (from resourceTiming.startTime)ttfb - time to first byte (from resourceTiming.responseStart)ttlb - time to last byte (from resourceTiming.duration)Additional keys like ttfbb, cmsdd, cmsds, and smrt can be
supplied via the data parameter if the player has access to them.
The HTTP response received.
Additional CMCD data to include with the event. Values provided here override any auto-derived values.
Starts the CMCD reporter. Called by the player when the reporter is enabled.
Note: This fires an initial time-interval event immediately (synchronously) before the first interval elapses. Ensure CMCD data (sid, cid, etc.) is populated before calling start().
Stops the CMCD reporter. Called by the player when the reporter is disabled.
Whether to flush the event targets.
The CMCD reporter.