ZegoAudioSourceType enum
音频采集源类型。
- Inheritance
-
- Object
- Enum
- ZegoAudioSourceType
Constructors
- ZegoAudioSourceType()
-
const
Values
- Default → const ZegoAudioSourceType
-
默认音频采集源(主通道默认使用自定义音频采集;辅通道默认使用与主通道同样的声音)。
- Custom → const ZegoAudioSourceType
-
使用自定义音频采集,参考
enableCustomAudioIO
或setAudioSource
。web 平台暂不支持。 - MediaPlayer → const ZegoAudioSourceType
-
使用媒体播放器作为音频采集源,仅支持辅通道。web 平台暂不支持。
- None → const ZegoAudioSourceType
-
不启动任何采集。仅支持在
setAudioSource
接口中使用,在enableCustomAudioIO
接口中使用无效。 - Microphone → const ZegoAudioSourceType
-
使用麦克风作为音频采集源。仅支持在
setAudioSource
接口中使用,在enableCustomAudioIO
接口中使用无效。 - MainPublishChannel → const ZegoAudioSourceType
-
使用主通道作为音频输入源。主通道使用时无效。仅支持在
setAudioSource
接口中使用,在enableCustomAudioIO
接口中使用无效。web 平台暂不支持。 - ScreenCapture → const ZegoAudioSourceType
-
使用屏幕采集声音作为音频输入源。通常用于移动端屏幕共享场景下。同时仅支持在
setAudioSource
接口中使用,在enableCustomAudioIO
接口中使用无效。
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- index → int
-
A numeric identifier for the enumerated value.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ZegoAudioSourceType> -
A constant List of the values in this enum, in order of their declaration.
[Default, Custom, MediaPlayer, None, Microphone, MainPublishChannel, ScreenCapture]