Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. RTCVideoSourceStats
  4. frames

RTCVideoSourceStats: frames property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Theframes property of theRTCVideoSourceStats dictionary indicates the total number of frames originating from this video source over its lifetime.

Value

A number indicating the total number of frames originating from this source.

Examples

This example shows how you might iterate the stats object returned fromRTCRtpSender.getStats() to get the video source stats, and then extract theframes.

js
// where sender is an RTCRtpSenderconst stats = await sender.getStats();let videoSourceStats = null;stats.forEach((report) => {  if (report.type === "media-source" && report.kind==="video") {    videoSourceStats = report;    break;  }});const frames = videoSourceStats?.frames;

Specifications

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcvideosourcestats-frames

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp