PlayerStreamInfo
- Flutter
更新时间不可用
播放器媒体流的所有信息。
class PlayerStreamInfo {
const PlayerStreamInfo(
{this.streamIndex,
this.streamType,
this.codecName,
this.language,
this.videoFrameRate,
this.videoBitRate,
this.videoWidth,
this.videoHeight,
this.videoRotation,
this.audioSampleRate,
this.audioChannels,
this.audioBitsPerSample,
this.duration});
@JsonKey(name: 'streamIndex')
final int? streamIndex;
@JsonKey(name: 'streamType')
final MediaStreamType? streamType;
@JsonKey(name: 'codecName')
final String? codecName;
@JsonKey(name: 'language')
final String? language;
@JsonKey(name: 'videoFrameRate')
final int? videoFrameRate;
@JsonKey(name: 'videoBitRate')
final int? videoBitRate;
@JsonKey(name: 'videoWidth')
final int? videoWidth;
@JsonKey(name: 'videoHeight')
final int? videoHeight;
@JsonKey(name: 'videoRotation')
final int? videoRotation;
@JsonKey(name: 'audioSampleRate')
final int? audioSampleRate;
@JsonKey(name: 'audioChannels')
final int? audioChannels;
@JsonKey(name: 'audioBitsPerSample')
final int? audioBitsPerSample;
@JsonKey(name: 'duration')
final int? duration;
factory PlayerStreamInfo.fromJson(Map<String, dynamic> json) =>
_$PlayerStreamInfoFromJson(json);
Map<String, dynamic> toJson() => _$PlayerStreamInfoToJson(this);
}属性
| 参数名 | 描述 |
|---|---|
streamIndex | |
streamType | 此条媒体流的类型。详见 MediaStreamType。 |
codecName | |
language | |
videoFrameRate | |
videoBitRate | |
videoWidth | |
videoHeight | |
videoRotation | |
audioSampleRate | |
audioChannels | |
audioBitsPerSample | |
duration |