TRTCTranscodingConfig class
云端混流转码配置,其中包含了最终编码质量和每个通道的图像位置。
Constructors
-
TRTCTranscodingConfig({int? appId, int? bizId, int mode = TRTCCloudDef.TRTC_TranscodingConfigMode_Unknown, int videoWidth = 0, int videoHeight = 0, int videoBitrate = 0, int videoFramerate = 15, int videoGOP = 2, int backgroundColor = 0x000000, String? backgroundImage, int audioSampleRate = 48000, int audioBitrate = 64, int audioChannels = 1, List<
TRTCMixUser> ? mixUsers, String? streamId})
Properties
- appId ↔ int?
-
字段说明:腾讯云 CSS
AppID
getter/setter pair - audioBitrate ↔ int
-
字段说明:转码后的音频比特率。
getter/setter pair
- audioChannels ↔ int
-
字段说明:转码后的声道数。
getter/setter pair
- audioSampleRate ↔ int
-
字段说明:转码后的音频采样率。
getter/setter pair
- backgroundColor ↔ int
-
字段说明:混合视频画面的背景颜色。默认值为黑色,格式为十六进制数字;例如:"0x61B9F1" 表示 RGB 颜色(97,158,241)。
getter/setter pair
- backgroundImage ↔ String?
-
字段说明:混合视频画面的背景图片。
getter/setter pair
- bizId ↔ int?
-
字段说明:腾讯云 CSS
bizid
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
-
mixUsers
↔ List<
TRTCMixUser> ? -
字段说明:每个通道子画面的位置信息
getter/setter pair
- mode ↔ int
-
字段说明:转码配置模式
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- streamId ↔ String?
-
字段说明:输出到 CDN 的直播流 ID
getter/setter pair
- videoBitrate ↔ int
-
字段说明:转码后的视频分辨率的比特率(Kbps)。
getter/setter pair
- videoFramerate ↔ int
-
字段说明:转码后的视频分辨率的帧率(fps)。
getter/setter pair
- videoGOP ↔ int
-
字段说明:转码后的视频分辨率的关键帧间隔(GOP)。
getter/setter pair
- videoHeight ↔ int
-
字段说明:转码后的视频分辨率高度。
getter/setter pair
- videoWidth ↔ int
-
字段说明:转码后的视频分辨率宽度。
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - 将当前对象转换为 JSON 格式。
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited