LiveInjectStreamConfig class

外部导入音视频流定义。

Annotations

Constructors

LiveInjectStreamConfig({int width, int height, int videoGop, VideoFrameRate videoFramerate, int videoBitrate, AudioSampleRateType audioSampleRate, int audioBitrate, AudioChannel audioChannels})
Constructs a LiveInjectStreamConfig
LiveInjectStreamConfig.fromJson(Map<String, dynamic> json)
factory

Properties

audioBitrate int
添加进入直播的外部音频码率。单位为 Kbps,默认值为 48。 [...]
@JsonKey(includeIfNull: false), read / write
audioChannels AudioChannel
添加进入直播的外部音频频道数。取值范围为 1 或 2,默认值为 1。 [...]
@JsonKey(includeIfNull: false), read / write
audioSampleRate AudioSampleRateType
添加进入直播的外部音频采样率。默认值为 44100,详见 AudioSampleRateType[...]
@JsonKey(includeIfNull: false), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
height int
添加进入直播的外部视频源高度,单位为像素。默认值为 0,即保留视频源原始高度。
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
videoBitrate int
添加进入直播的外部视频源码率。默认设置为 400 Kbps。
@JsonKey(includeIfNull: false), read / write
videoFramerate VideoFrameRate
添加进入直播的外部视频源帧率。默认值为 15 fps。
@JsonKey(includeIfNull: false), read / write
videoGop int
添加进入直播的外部视频源 GOP。默认值为 30 帧。
@JsonKey(includeIfNull: false), read / write
width int
添加进入直播的外部视频源宽度,单位为像素。默认值为 0,即保留视频源原始宽度。
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited