fromFFI static method

RtcVideoSourceStats fromFFI(
  1. RtcMediaSourceStatsMediaType_RtcVideoSourceStats stats,
  2. String? trackIdentifier
)
override

Creates RtcVideoSourceStats basing on the ffi.RtcMediaSourceStatsMediaType_RtcVideoSourceStats received from the native side.

Implementation

static RtcVideoSourceStats fromFFI(
    ffi.RtcMediaSourceStatsMediaType_RtcVideoSourceStats stats,
    String? trackIdentifier) {
  return RtcVideoSourceStats(stats.width, stats.height, stats.frames,
      stats.framesPerSecond, trackIdentifier);
}