Type
PacketStats
Contains aggregate statistics about the encoded packets of a track.
ts
type PacketStats = {
packetCount: number;
averagePacketRate: number;
averageBitrate: number;
};Used by
InputAudioTrack.computePacketStats()InputTrack.computePacketStats()InputVideoTrack.computePacketStats()
Properties
packetCount
ts
packetCount: number;The total number of packets.
averagePacketRate
ts
averagePacketRate: number;The average number of packets per second. For video tracks, this will equal the average frame rate (FPS).
averageBitrate
ts
averageBitrate: number;The average number of bits per second.