LiveTranscodingVideoConfig class
转推视频配置。
Constructors
- LiveTranscodingVideoConfig({TranscodingVideoCodec codec = TranscodingVideoCodec.h264, int fps = 30, int gop = 2, bool bFrame = false, int kBitrate = 500, int width = 360, int height = 640})
Properties
- bFrame ↔ bool
-
是否使用B帧。
read / write
- codec ↔ TranscodingVideoCodec
-
视频编码格式,默认值为
h264。本参数不支持过程中更新。read / write - fps ↔ int
-
合流视频帧率。单位为 FPS,取值范围为
[1,60], 默认值为 15 FPS。read / write - gop ↔ int
-
视频 I 帧时间间隔。单位为秒,取值范围为
[1, 5],默认值为 2 秒。read / write - hashCode → int
-
The hash code for this object.
read-onlyinherited
- height ↔ int
-
合流视频高度。单位为 px,范围为
[2, 1920],必须是偶数。默认值为 360 px。设置值为非偶数时,自动向上取偶数。read / write - kBitrate ↔ int
-
合流视频码率。单位为 Kbps,取值范围为
[1,10000],默认值为自适应模式。read / write - runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- width ↔ int
-
合流视频宽度。单位为 px,范围为
[2, 1920],必须是偶数。默认值为 640 px。设置值为非偶数时,自动向上取偶数。read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited