OptionalaudioOptionalaudioOptionalaudioOptionalaudioOptionalbufferOptionalbufferingOptionalcurrentOptionaldataOptionaljitterOptionallatencyStart a log
OptionallostOptionalnackOptionalplaybackOptionalplaybackOptionalprotocolOptionalrttOptionalskippedOptionalskippedOptionalstallOptionalvideoOptionalvideoOptionalvideoOptionalvideoConverts the current PlayerStats snapshot into a CMCD (Common Media Client Data) payload.
The full URL of the media object.
Track Id to generate the CMCD payload, keep empty to relate an CMCD OTHER object.
OptionalprevStats: PlayerStatsOptional previous PlayerStats snapshot to calculate deltas for incremental metrics since their last reset.
A CML.Cmcd object representing the CMCD payload.
Collects variable names for player statistics metrics across different projects (e.g., wrts, webrtc). Variables remain undefined if they are not present in the stats for the current project (for example, 'latency' is undefined for webrtc). Includes the toCmcd() method to convert stats into a CMCD payload.