跳转到主要内容

RTCOptions

RTC 配置参数
属性名称数据类型说明
deviceIdString设备 id
deviceTypeInt设备类型
deviceDescString设备描述
logPathString日志存储路径
enableLocalLogBoolean是否存储本地日志
versionString上层版本信息

RTCMediaOptions

流媒体全局配置参数
属性名称数据类型默认值说明
audioChannelsInt1音频采样通道
audioSamplerateInt48000音频采样率
audioBitrateInt32 * 1024音频码率
audioCodecCodecType 枚举类型CodecType.OPUS音频编码格式
videoWidthMainInt640视频分辨率宽度
videoHeightMainInt480视频分辨率高度
videoBitrateMainInt512 * 1024视频码率
fpsMainInt25视频帧率
sftBooleantrue是否使用移频
agcInt10000音频 agc
aecInt12音频 aec
xdelayBooleantrue是否开启延时自适应
xbitrateInt5码率自适应
defFrontCameraBooleanfalse默认打开的摄像头位置:前置 / 后置
defMcuTrackInt0mcu默认轨道
plcInt2延迟抖动
hwDecoderBooleantrue是否优先硬解码
hwEncoderBooleantrue是否优先硬编码
isDaulStreamBooleantrue是否双流
statIntervalInt1000网络统计间隔 ms
statAudioIntervalInt500音频统计间隔 ms

PublishCustomOptions

自定义参数配置
  • PS:只有摄像头流可以设置辅流的自定义发布参数,但只能设置一路且不允许嵌套设置。
属性名称数据类型说明
descString轨道描述
默认描述:camera_big、camera_small、screen、mic、custom
propsAny扩展信息
simulcastsMutableList<PublishCustomOptions>辅流的自定义发布参数

ChannelInfo

频道信息
属性名称数据类型说明
appIdStringAPP ID
channelString频道号
created_atLong创建时间
updated_atLong更新时间
link_idInt流媒体连接ID
max_userInt频道最大用户数
max_audioInt频道音频最大转发数
max_peerInt频道用户最大可转发数
max_videoInt频道用户视频最大可转发数
propsJsonElement扩展属性

UserInfo

用户信息
属性名称数据类型说明
app_idStringapp ID
uidString三方平台用户ID
sidString会话ID
nameString用户名
device_typeInt设备类型:
android:2
device_idString终端唯一编号
sdk_versionStringsdk版本号
versionString版本号
propsJsonElement自定义属性
netidString网络号
sgidString分组号
channelString频道号
is_audienceBoolean是否观众
join_atLong加入时间
updated_atLong更新时间
leave_atLong离开时间
stream_tracksArrayList<TrackInfo>正在推流的码流信息集合
link_idInt流媒体连接ID
session_keyString流媒体连接key
upload_idString当前所属流媒体服务ID

TrackInfo

轨道信息
属性名称数据类型说明
idString轨道 id
descString轨道描述
kindString轨道类型:video / audio
codecInt编码类型:
unknow:0
H264:0x1b
H265:0x24
AAC:0x0f
OPUS:0x5355504f
widthInt视频宽度
heightInt视频高度
fpsInt视频帧率
angleIntangle
bitrateIntbitrate
sample_rateInt音频采样率
trackInt轨道号 (0-6)
propsJsonElement自定义属性

UserTrackDesc

用户、轨道封装类
uidString 类型,用户 id
trackDescString 类型,轨道描述

VolumeInfo

音量信息
属性名称数据类型说明
uidString用于 id
dbInt音频能量,分贝数