OptionalbitrateCurrent bitrate in bits per second.
OptionalframesThe total number of frames successfully decoded.
OptionalframesThe total number of frames dropped.
OptionalframesDecoded frames per second.
OptionalframesTotal number of frames received.
OptionaljitterInter-arrival jitter in seconds.
OptionalpacketsTotal number of packets lost.
OptionalqpVideo encoder quantization parameter (lower = better quality).
OptionalrttCurrent round-trip time in seconds.
Video stream statistics reported by the Metabox player.
What does it unlock?
Real-time video quality metrics from the WebRTC stream — useful for monitoring bitrate, frame rate, latency, and packet loss.
Practical Application
Delivered as the payload of the
videoStatsUpdatedevent. Use it to build quality-of-service dashboards or trigger adaptive behavior (e.g. show a warning whenpacketsLostclimbs orframesDroppedis high).AI Coding Best Practices
Subscribe via
api.addEventListener('videoStatsUpdated', (stats: VideoStats) => {...}).