ZegoMixerInput
ZegoMixerInput
混流输入
详情
配置混流输入的流 ID、输入类型、流的布局
Declared in ZegoExpressDefines.h
属性
streamID
streamID
nonatomic, copy NSString * streamID- 注意事项:不可以包含 URL 关键字,否则推拉流失败。仅支持数字,英文字符 和 '-', '_'。
contentType
layout
layout
nonatomic, assign CGRect layout流的布局。当混入的流为音频流时(即 ContentType 参数设置为音频混流类型),开发者无需对该字段赋值,使用 SDK 默认的即可。
soundLevelID
soundLevelID
nonatomic, assign unsigned int soundLevelID当混流任务开启了声浪回调时,需要为每条输入流指定唯一的 soundLevelID
volume
volume
nonatomic, assign unsigned int volume输入流音量, 有效范围 [0, 200], 默认是 100。
isAudioFocus
isAudioFocus
nonatomic, assign BOOL isAudioFocus当前输入流是否开启焦点语音,开启了会突出此路流的声音。
audioDirection
audioDirection
nonatomic, assign int audioDirection声音的朝向。有效的朝向是 [0, 360]。-1 表示关闭该功能。默认是 -1。在 web 平台,此属性不生效。
label
renderMode
imageInfo
cornerRadius
cornerRadius
nonatomic, assign unsigned int cornerRadius视频画面圆角半径,单位 px。
- 是否必填:否。
- 取值范围:不超过 [layout] 参数设置的视频画面的宽高。
- 默认值:0。
advancedConfig
advancedConfig
nonatomic, strong, nullable NSDictionary<NSString *, NSString *> * advancedConfig设置高级配置。请联系 ZEGO 技术支持。在 web 平台,此属性不生效。
blurInfo
方法
initWithStreamID:contentType:layout
initWithStreamID:contentType:layout
- (instancetype)initWithStreamID:(NSString *)streamID contentType:(ZegoMixerInputContentType)contentType layout:(CGRect)layout;创建混流输入对象
Declared in
ZegoExpressDefines.hZegoMixerInput 实例
initWithStreamID:contentType:layout:soundLevelID
initWithStreamID:contentType:layout:soundLevelID
- (instancetype)initWithStreamID:(NSString *)streamID contentType:(ZegoMixerInputContentType)contentType layout:(CGRect)layout soundLevelID:(unsigned int)soundLevelID;创建混流输入对象
Declared in
ZegoExpressDefines.hZegoMixerInput 实例
