PlayerPlaybackStats
当前播放的媒体资源的相关信息。
Dart
(explicitToJson: true, includeIfNull: false)
class PlayerPlaybackStats {
const PlayerPlaybackStats(
{this.videoFps,
this.videoBitrateInKbps,
this.audioBitrateInKbps,
this.totalBitrateInKbps});
(name: 'videoFps')
final int? videoFps;
(name: 'videoBitrateInKbps')
final int? videoBitrateInKbps;
(name: 'audioBitrateInKbps')
final int? audioBitrateInKbps;
(name: 'totalBitrateInKbps')
final int? totalBitrateInKbps;
factory PlayerPlaybackStats.fromJson(Map<String, dynamic> json) =>
_$PlayerPlaybackStatsFromJson(json);
Map<String, dynamic> toJson() => _$PlayerPlaybackStatsToJson(this);
}
videoFps
视频帧率,单位为 fps。
videoBitrateInKbps
视频码率,单位为 kbps。
audioBitrateInKbps
音频码率,单位为 kbps。
totalBitrateInKbps
媒体流的总码率,单位为 kbps。