logo
On this page

ZegoMixerInput

ZegoMixerInput

Mixer input.

Details

Configure the mix stream input stream ID, type, and the layout

Declared in ZegoExpressDefines.h

Properties

streamID

streamID
nonatomic, copy NSString * streamID
  • Caution: You cannot include URL keywords, otherwise publishing stream and playing stream will fails. Only support numbers, English characters and '-', '_'.

contentType

contentType
nonatomic, assign ZegoMixerInputContentType contentType

Mix stream content type

layout

layout
nonatomic, assign CGRect 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

soundLevelID
nonatomic, assign unsigned int soundLevelID

If enable soundLevel in mix stream task, an unique soundLevelID is need for every stream

volume

volume
nonatomic, assign unsigned int volume

Input stream volume, valid range [0, 200], default is 100.

isAudioFocus

isAudioFocus
nonatomic, assign BOOL isAudioFocus

Whether the focus voice is enabled in the current input stream, the sound of this stream will be highlighted if enabled.

audioDirection

audioDirection
nonatomic, assign 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

label
nonatomic, strong ZegoLabelInfo * label

Text watermark.

renderMode

renderMode
nonatomic, assign ZegoMixRenderMode renderMode

Video view render mode.

imageInfo

imageInfo
nonatomic, strong ZegoMixerImageInfo * imageInfo

User image information.

cornerRadius

cornerRadius
nonatomic, assign unsigned int cornerRadius

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

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

Set advanced configuration. Please contact ZEGO technical support. On web platforms, this property does not take effect.

blurInfo

blurInfo
nonatomic, strong ZegoBlurInfo * blurInfo

Set blur info.

Methods

initWithStreamID:contentType:layout

initWithStreamID:contentType:layout
- (instancetype)initWithStreamID:(NSString *)streamID contentType:(ZegoMixerInputContentType)contentType layout:(CGRect)layout;
Create a mixed input object
Declared in ZegoExpressDefines.h

ZegoMixerInput instance

initWithStreamID:contentType:layout:soundLevelID

initWithStreamID:contentType:layout:soundLevelID
- (instancetype)initWithStreamID:(NSString *)streamID contentType:(ZegoMixerInputContentType)contentType layout:(CGRect)layout soundLevelID:(unsigned int)soundLevelID;
Create a mixed input object
Declared in ZegoExpressDefines.h

ZegoMixerInput instance

Previous

zegomixerimageinfo

Next

zegomixeroutput

On this page

Back to top