属性

int capacity
 
NSString *__nullable cdn
 
JCMediaChannelRecordParam *__nullable record
 
NSString *__nonnull password
 
bool smooth
 
JCMediaChannelMaxResolution maxResolution
 
int heartbeatTime
 
int heartbeatTimeout
 
int framerate
 
NSString *__nullable customProperty
 
NSString *__nullable customVideoResolution
 
float videoRatio
 
int defaultBitrate
 

详细描述

加入会议参数类 作为 join 方法最后一个参数的入参

属性说明

◆ capacity

- (int) capacity
readwritenonatomicassign

会议最大人数,默认值为 16

◆ cdn

- (NSString* __nullable) cdn
readwritenonatomicstrong

推流参数,默认为 nil

如果用户在加入会议时没有设置推流参数,就无法进行推流

◆ customProperty

- (NSString* __nullable) customProperty
readwritenonatomicstrong

自定义属性,默认为 ""

◆ customVideoResolution

- (NSString* __nullable) customVideoResolution
readwritenonatomicstrong

自定义媒体每层参数

  • 1、格式 高基数 第一层高倍数 第一层码率 第二层高倍数 第二层码率 第三层高倍数 第三层码率 第四层高倍数 第四层码率
    说明
    1)默认宽高比16:9
    2)编码宽高最后被裁成16整除
    3)码率计算可大致参考文件 《码流甜点区域》
    例如 "120 3 750 4 950 6 1200 9 1600"
    第一层 分辨率 宽640(120*3/9*16)高 360(120*3); 码率750kbps
    第二层 分辨率 宽848(120*4/9*16)高 480(120*4); 码率950kbps
    第三层 分辨率 宽1280(120*6/9*16)高 720(120*6); 码率1200kbps
    第四层 分辨率 宽1920(120*9/9*16)高 1080(120*9); 码率1600kbps
  • 2、作用
    自定义分层参数和码率
  • 3、其他说明
    二层或多层配置参数一致
    1)无意义,会增编码损耗。
    2)不会节约码率,码率取决于设置订阅层的码率;想减少流量,降低分层分配的码率
    如 "120 3 750 3 750 6 1200 9 1600" 第一层和第二层一样
    当第一层和第二层都被订阅,实际第一层和第二层都在编码,没必要;可改成 "120 3 750 6 1200 9 1600",都订阅一层
    以上情况设置成 "120 3 750 6 1200 9 1600" 会比 "120 3 750 3 750 6 1200 9 1600" ,节约上行码率和减少编码损毁。

◆ defaultBitrate

- (int) defaultBitrate
readwritenonatomicassign

会议初始码率

单位 kbps,默认值为 0,如果为 0,内部会根据探测情况计算得出的码率值进行自动设置

◆ framerate

- (int) framerate
readwritenonatomicassign

帧率 1-30, 默认值为 24

◆ heartbeatTime

- (int) heartbeatTime
readwritenonatomicassign

心跳间隔,默认值为 20

◆ heartbeatTimeout

- (int) heartbeatTimeout
readwritenonatomicassign

心跳超时,默认值为 60

◆ maxResolution

- (JCMediaChannelMaxResolution) maxResolution
readwritenonatomicassign

会议最大分辨率,默认为 JCMediaChannelMaxResolution360

◆ password

- (NSString* __nonnull) password
readwritenonatomicstrong

密码,默认为 "123456"

◆ record

- (JCMediaChannelRecordParam* __nullable) record
readwritenonatomicstrong

录制参数,默认为 nil

如果用户在加入会议时没有设置录制参数,就无法进行视频录制

◆ smooth

- (bool) smooth
readwritenonatomicassign

是否开启平滑模式,默认开启

  • true: 开启
  • false: 不开启

◆ videoRatio

- (float) videoRatio
readwritenonatomicassign

会议画面比例,传入值为宽高比浮点数,默认为 16:9


该类的文档由以下文件生成:
最后更新时间: 11/9/2021, 5:34:32 PM