Represents the base of the statistics object.

interface StatsBase {
    bitrate?: number;
    id: string;
    mid?: string;
    packetRate?: number;
    timestamp: number;
}

Hierarchy (view full)

Properties

bitrate?: number

Current bitrate in bytes per second.

id: string

A unique id that is associated with the object that was inspected to produce this StatsBase object.

mid?: string

Media stream "identification-tag" negotiated and present in the local and remote descriptions.

packetRate?: number

Current packet rate in packets per second.

timestamp: number

The timestamp, associated with this object. The time is relative to the UNIX epoch (Jan 1, 1970, UTC).