logo
当前页

ZegoMixerInput

ZegoMixerInput

混流输入

详情

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

Declared in entity/ZegoMixerInput.java

属性

streamID

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

contentType

contentType
public ZegoMixerInputContentType 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

label
public ZegoLabelInfo label

文字水印。

renderMode

renderMode
public ZegoMixRenderMode renderMode

视频画面渲染模式。

imageInfo

imageInfo
public ZegoMixerImageInfo imageInfo

用户图片信息。

cornerRadius

cornerRadius
public int cornerRadius

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

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

advancedConfig

advancedConfig
public HashMap<String, String> advancedConfig

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

blurInfo

blurInfo
public ZegoBlurInfo blurInfo

设置虚化边缘信息。

方法

ZegoMixerInput

ZegoMixerInput
public ZegoMixerInput(String streamID, ZegoMixerInputContentType contentType, Rect layout)
Declared in entity/ZegoMixerInput.java

ZegoMixerInput

ZegoMixerInput
public ZegoMixerInput(String streamID, ZegoMixerInputContentType contentType, Rect layout, int soundLevelID)
Declared in entity/ZegoMixerInput.java

ZegoMixerInput

ZegoMixerInput
public ZegoMixerInput(String streamID, ZegoMixerInputContentType contentType, Rect layout, int soundLevelID, boolean isAudioFocus, int audioDirection)
Declared in entity/ZegoMixerInput.java

上一篇

zegomixerimageinfo

下一篇

zegomixeroutput

当前页

返回到顶部