RemoteVideoStats
- Flutter
更新时间不可用
远端视频流的统计信息。
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class RemoteVideoStats {
const RemoteVideoStats(
{this.uid,
this.delay,
this.e2eDelay,
this.width,
this.height,
this.receivedBitrate,
this.decoderOutputFrameRate,
this.rendererOutputFrameRate,
this.frameLossRate,
this.packetLossRate,
this.rxStreamType,
this.totalFrozenTime,
this.frozenRate,
this.avSyncTimeMs,
this.totalActiveTime,
this.publishDuration,
this.mosValue,
this.rxVideoBytes});
@JsonKey(name: 'uid')
final int? uid;
@JsonKey(name: 'delay')
final int? delay;
@JsonKey(name: 'e2eDelay')
final int? e2eDelay;
@JsonKey(name: 'width')
final int? width;
@JsonKey(name: 'height')
final int? height;
@JsonKey(name: 'receivedBitrate')
final int? receivedBitrate;
@JsonKey(name: 'decoderOutputFrameRate')
final int? decoderOutputFrameRate;
@JsonKey(name: 'rendererOutputFrameRate')
final int? rendererOutputFrameRate;
@JsonKey(name: 'frameLossRate')
final int? frameLossRate;
@JsonKey(name: 'packetLossRate')
final int? packetLossRate;
@JsonKey(name: 'rxStreamType')
final VideoStreamType? rxStreamType;
@JsonKey(name: 'totalFrozenTime')
final int? totalFrozenTime;
@JsonKey(name: 'frozenRate')
final int? frozenRate;
@JsonKey(name: 'avSyncTimeMs')
final int? avSyncTimeMs;
@JsonKey(name: 'totalActiveTime')
final int? totalActiveTime;
@JsonKey(name: 'publishDuration')
final int? publishDuration;
@JsonKey(name: 'mosValue')
final int? mosValue;
@JsonKey(name: 'rxVideoBytes')
final int? rxVideoBytes;
factory RemoteVideoStats.fromJson(Map<String, dynamic> json) =>
_$RemoteVideoStatsFromJson(json);
Map<String, dynamic> toJson() => _$RemoteVideoStatsToJson(this);
}属性
| 参数名 | 描述 |
|---|---|
uid | |
delay | 延时(毫秒)。 注: 弃用:在有音画同步机制的音视频场景中,你可以参考 RemoteAudioStats 里的 |
e2eDelay | |
width | |
height | |
receivedBitrate | |
decoderOutputFrameRate | |
rendererOutputFrameRate | |
frameLossRate | |
packetLossRate | |
rxStreamType | 视频流类型,大流或小流。详见 VideoStreamType。 |
totalFrozenTime | |
frozenRate | |
totalActiveTime | |
publishDuration | |
avSyncTimeMs | |
mosValue | 在统计周期内远端音频流的质量。该质量由声网实时音频 MOS(主观意见评分)测量方法确定。返回值范围为 [0, 500],除以 100 后为 MOS 分数,范围为 0 到 5,分数越高表示音频质量越好。声网实时音频 MOS 评分对应的主观音质感受如下:
|