ZegoAudioSourceType enum

Audio capture source type.

Inheritance
  • Object
  • Enum
  • ZegoAudioSourceType

Constructors

ZegoAudioSourceType()
const

Values

Default → const ZegoAudioSourceType

Default audio capture source (the main channel uses custom audio capture by default; the aux channel uses the same sound as main channel by default).

Custom → const ZegoAudioSourceType

Use custom audio capture, refer to enableCustomAudioIO or setAudioSource. The web platform does not currently support.

MediaPlayer → const ZegoAudioSourceType

Use media player as audio source, only support aux channel. The web platform does not currently support.

None → const ZegoAudioSourceType

No audio source. This audio source type can only be used in setAudioSource interface, has no effect when used in enableCustomAudioIO interface.

Microphone → const ZegoAudioSourceType

Using microphone as audio source. This audio source type can only be used in setAudioSource interface, has no effect when used in enableCustomAudioIO interface.

MainPublishChannel → const ZegoAudioSourceType

Using main channel as audio source. Ineffective when used in main channel. This audio source type can only be used in setAudioSource interface, has no effect when used in enableCustomAudioIO interface. The web platform does not currently support.

ScreenCapture → const ZegoAudioSourceType

Using screen capture as audio source. Typically used in mobile screen sharing scenarios. This audio source type can only be used in setAudioSource interface, has no effect when used in enableCustomAudioIO interface.

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]