LiveTranscoding
- Flutter
更新时间不可用
旁路推流的转码属性。
class LiveTranscoding {
const LiveTranscoding(
{this.width,
this.height,
this.videoBitrate,
this.videoFramerate,
this.lowLatency,
this.videoGop,
this.videoCodecProfile,
this.backgroundColor,
this.videoCodecType,
this.userCount,
this.transcodingUsers,
this.transcodingExtraInfo,
this.metadata,
this.watermark,
this.watermarkCount,
this.backgroundImage,
this.backgroundImageCount,
this.audioSampleRate,
this.audioBitrate,
this.audioChannels,
this.audioCodecProfile,
this.advancedFeatures,
this.advancedFeatureCount});
@JsonKey(name: 'width')
final int? width;
@JsonKey(name: 'height')
final int? height;
@JsonKey(name: 'videoBitrate')
final int? videoBitrate;
@JsonKey(name: 'videoFramerate')
final int? videoFramerate;
@JsonKey(name: 'lowLatency')
final bool? lowLatency;
@JsonKey(name: 'videoGop')
final int? videoGop;
@JsonKey(name: 'videoCodecProfile')
final VideoCodecProfileType? videoCodecProfile;
@JsonKey(name: 'backgroundColor')
final int? backgroundColor;
@JsonKey(name: 'videoCodecType')
final VideoCodecTypeForStream? videoCodecType;
@JsonKey(name: 'userCount')
final int? userCount;
@JsonKey(name: 'transcodingUsers')
final List<TranscodingUser>? transcodingUsers;
@JsonKey(name: 'transcodingExtraInfo')
final String? transcodingExtraInfo;
@JsonKey(name: 'metadata')
final String? metadata;
@JsonKey(name: 'watermark')
final List<RtcImage>? watermark;
@JsonKey(name: 'watermarkCount')
final int? watermarkCount;
@JsonKey(name: 'backgroundImage')
final List<RtcImage>? backgroundImage;
@JsonKey(name: 'backgroundImageCount')
final int? backgroundImageCount;
@JsonKey(name: 'audioSampleRate')
final AudioSampleRateType? audioSampleRate;
@JsonKey(name: 'audioBitrate')
final int? audioBitrate;
@JsonKey(name: 'audioChannels')
final int? audioChannels;
@JsonKey(name: 'audioCodecProfile')
final AudioCodecProfileType? audioCodecProfile;
@JsonKey(name: 'advancedFeatures')
final List<LiveStreamAdvancedFeature>? advancedFeatures;
@JsonKey(name: 'advancedFeatureCount')
final int? advancedFeatureCount;
factory LiveTranscoding.fromJson(Map<String, dynamic> json) =>
_$LiveTranscodingFromJson(json);
Map<String, dynamic> toJson() => _$LiveTranscodingToJson(this);
}属性
| 参数名 | 描述 |
|---|---|
width | |
height | |
videoBitrate | 视频编码码率,单位为 Kbps。该参数无需设置,保留默认值 |
videoFramerate | |
lowLatency | |
videoGop | |
videoCodecProfile | |
videoCodecType | 用于旁路直播的输出视频的编解码类型。详见 VideoCodecTypeForStream。 |
transcodingUsers | 用于管理参与旁路直播的视频转码合图的用户。最多支持 17 人同时参与转码合图。详见 TranscodingUser。 |
transcodingExtraInfo | 预留参数:用户自定义的发送到旁路推流客户端的信息,用于填充 H264/H265 视频中 SEI 帧内容。长度限制:4096 字节。关于 SEI 的详细信息,详见 SEI 帧相关问题。 |
backgroundColor | |
userCount | |
metadata | |
watermark | 直播视频上的水印。图片格式需为 PNG。详见 RtcImage。 你可以添加一个水印,或使用数组的方式添加多个水印。 |
backgroundImage | 直播视频上的背景图。图片格式需为 PNG。详见 RtcImage。
你可以添加一张背景图,或使用数组的方式添加多张背景图。该参数与 |
audioSampleRate | 用于旁路推流的输出媒体流的音频采样率 (Hz),详见 AudioSampleRateType。 |
audioBitrate | |
audioChannels | |
audioCodecProfile | 用于旁路直播输出音频的编码规格。详见 AudioCodecProfileType。 |
watermarkCount | |
backgroundImageCount | |
advancedFeatures | 转码推流的高级功能。详见 LiveStreamAdvancedFeature。 |
advancedFeatureCount |