OptionalaudioOptionalaudioOptionalaudioOptionalbufferOptionalcurrentOptionaljitterOptionallatencyStart a log
OptionallostOptionalnackOptionalplaybackOptionalplaybackOptionalprotocolOptionalrecvOptionalrttOptionalsendOptionalskippedOptionalskippedOptionalstallOptionalvideoOptionalvideoOptionalvideoOptionalwaitingConverts the current PlayerStats snapshot into a CMCD (Common Media Client Data) payload.
The full URL of the media object.
The track ID for which to generate the CMCD payload.
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.