logo
当前页

ZegoMixerInput

ZegoMixerInput

混流输入

详情

配置混流输入的流 ID、输入类型、流的布局

Declared in ZegoExpressDefines.h

属性

streamID

streamID
nonatomic, copy NSString * streamID
  • 注意事项:不可以包含 URL 关键字,否则推拉流失败。仅支持数字,英文字符 和 '-', '_'。

contentType

contentType
nonatomic, assign ZegoMixerInputContentType 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

label
nonatomic, strong ZegoLabelInfo * label

文字水印。

renderMode

renderMode
nonatomic, assign ZegoMixRenderMode renderMode

视频画面渲染模式。

imageInfo

imageInfo
nonatomic, strong ZegoMixerImageInfo * imageInfo

用户图片信息。

cornerRadius

cornerRadius
nonatomic, assign unsigned int cornerRadius

视频画面圆角半径,单位 px。

  • 是否必填:否。
  • 取值范围:不超过 [layout] 参数设置的视频画面的宽高。
  • 默认值:0。

advancedConfig

advancedConfig
nonatomic, strong, nullable NSDictionary<NSString *, NSString *> * advancedConfig

设置高级配置。请联系 ZEGO 技术支持。在 web 平台,此属性不生效。

blurInfo

blurInfo
nonatomic, strong ZegoBlurInfo * blurInfo

设置虚化边缘信息。

方法

initWithStreamID:contentType:layout

initWithStreamID:contentType:layout
- (instancetype)initWithStreamID:(NSString *)streamID contentType:(ZegoMixerInputContentType)contentType layout:(CGRect)layout;
创建混流输入对象
Declared in ZegoExpressDefines.h

ZegoMixerInput 实例

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.h

ZegoMixerInput 实例

上一篇

zegomixerimageinfo

下一篇

zegomixeroutput

当前页

返回到顶部