Package im.zego.zegoexpress.entity
Class ZegoMixerInput
- java.lang.Object
-
- im.zego.zegoexpress.entity.ZegoMixerInput
-
public class ZegoMixerInput extends java.lang.Object
Mixer input. Configure the mix stream input stream ID, type, and the layout
-
-
Field Summary
Fields Modifier and Type Field Description java.util.HashMap<java.lang.String,java.lang.String>
advancedConfig
Set advanced configuration.int
audioDirection
The direction of the audio.ZegoMixerInputContentType
contentType
Mix stream content typeint
cornerRadius
Description: Video frame corner radius, in px.ZegoMixerImageInfo
imageInfo
User image information.boolean
isAudioFocus
Whether the focus voice is enabled in the current input stream, the sound of this stream will be highlighted if enabled.ZegoLabelInfo
label
Text watermark.android.graphics.Rect
layout
Stream layout.ZegoMixRenderMode
renderMode
Video view render mode.int
soundLevelID
If enable soundLevel in mix stream task, an unique soundLevelID is need for every streamjava.lang.String
streamID
Stream ID, a string of up to 256 characters.int
volume
Input stream volume, valid range [0, 200], default is 100.
-
Constructor Summary
Constructors Constructor Description ZegoMixerInput(java.lang.String streamID, ZegoMixerInputContentType contentType, android.graphics.Rect layout)
ZegoMixerInput(java.lang.String streamID, ZegoMixerInputContentType contentType, android.graphics.Rect layout, int soundLevelID)
ZegoMixerInput(java.lang.String streamID, ZegoMixerInputContentType contentType, android.graphics.Rect layout, int soundLevelID, boolean isAudioFocus, int audioDirection)
-
-
-
Field Detail
-
streamID
public java.lang.String streamID
Stream ID, a string of up to 256 characters. Caution: You cannot include URL keywords, otherwise publishing stream and playing stream will fails. Only support numbers, English characters and '-', '_'.
-
contentType
public ZegoMixerInputContentType contentType
Mix stream content type
-
layout
public android.graphics.Rect layout
Stream layout. When the mixed stream is an audio stream (that is, the ContentType parameter is set to the audio mixed stream type). Developers do not need to assign a value to this field, just use the SDK default.
-
soundLevelID
public int soundLevelID
If enable soundLevel in mix stream task, an unique soundLevelID is need for every stream
-
volume
public int volume
Input stream volume, valid range [0, 200], default is 100. On web platforms, this property does not take effect.
-
isAudioFocus
public boolean isAudioFocus
Whether the focus voice is enabled in the current input stream, the sound of this stream will be highlighted if enabled. On web platforms, this property does not take effect.
-
audioDirection
public int audioDirection
The direction of the audio. Valid direction is between 0 to 360. Set -1 means disable. Default value is -1. On web platforms, this property does not take effect.
-
label
public ZegoLabelInfo label
Text watermark.
-
renderMode
public ZegoMixRenderMode renderMode
Video view render mode.
-
imageInfo
public ZegoMixerImageInfo imageInfo
User image information.
-
cornerRadius
public int cornerRadius
Description: Video frame corner radius, in px. Required: False. Value range: Does not exceed the width and height of the video screen set by the [layout] parameter. Default value: 0.
-
advancedConfig
public java.util.HashMap<java.lang.String,java.lang.String> advancedConfig
Set advanced configuration. Please contact ZEGO technical support. On web platforms, this property does not take effect.
-
-
Constructor Detail
-
ZegoMixerInput
public ZegoMixerInput(java.lang.String streamID, ZegoMixerInputContentType contentType, android.graphics.Rect layout)
-
ZegoMixerInput
public ZegoMixerInput(java.lang.String streamID, ZegoMixerInputContentType contentType, android.graphics.Rect layout, int soundLevelID)
-
ZegoMixerInput
public ZegoMixerInput(java.lang.String streamID, ZegoMixerInputContentType contentType, android.graphics.Rect layout, int soundLevelID, boolean isAudioFocus, int audioDirection)
-
-