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