EncodedVideoFrameInfo
- Flutter
更新时间不可用
外部编码视频帧的信息。
class EncodedVideoFrameInfo {
const EncodedVideoFrameInfo(
{this.codecType,
this.width,
this.height,
this.framesPerSecond,
this.frameType,
this.rotation,
this.trackId,
this.captureTimeMs,
this.streamType});
@JsonKey(name: 'codecType')
final VideoCodecType? codecType;
@JsonKey(name: 'width')
final int? width;
@JsonKey(name: 'height')
final int? height;
@JsonKey(name: 'framesPerSecond')
final int? framesPerSecond;
@JsonKey(name: 'frameType')
final VideoFrameType? frameType;
@JsonKey(name: 'rotation')
final VideoOrientation? rotation;
@JsonKey(name: 'trackId')
final int? trackId;
@JsonKey(name: 'captureTimeMs')
final int? captureTimeMs;
@JsonKey(name: 'streamType')
final VideoStreamType? streamType;
factory EncodedVideoFrameInfo.fromJson(Map<String, dynamic> json) =>
_$EncodedVideoFrameInfoFromJson(json);
Map<String, dynamic> toJson() => _$EncodedVideoFrameInfoToJson(this);
}属性
| 参数名 | 描述 |
|---|---|
codecType | 视频编码类型,详见 VideoCodecType。默认值为 |
width | |
height | |
framesPerSecond | |
frameType | 视频帧的类型,详见 VideoFrameType。 |
rotation | 视频帧的旋转信息,详见 VideoOrientation。 |
trackId | |
captureTimeMs | |
streamType | 视频流类型。详见 VideoStreamType。 |