Agora Java API Reference for Android

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.Constants.AudioSourceType Enum Reference

The audio source type. More...

## Public Member Functions
int | getValue ()

## Static Public Member Functions
static int | getValue (AudioSourceType type)
static AudioSourceType | fromInt (int v)

## Public Attributes
| AUDIO_SOURCE_MICROPHONE =(0)
| AUDIO_SOURCE_CUSTOM =(1)
| AUDIO_SOURCE_MEDIA_PLAYER =(2)
| AUDIO_SOURCE_LOOPBACK_RECORDING =(3)
| AUDIO_SOURCE_MIXED_STREAM =(4)
| AUDIO_SOURCE_REMOTE_USER =(5)
| AUDIO_SOURCE_REMOTE_CHANNEL =(6)
| AUDIO_SOURCE_UNKNOWN =(100)

## Detailed Description

The audio source type.

## Member Data Documentation

## ◆ AUDIO_SOURCE_MICROPHONE

io.agora.rtc2.Constants.AudioSourceType.AUDIO_SOURCE_MICROPHONE =(0)

0: (Default) Microphone.

## ◆ AUDIO_SOURCE_CUSTOM

io.agora.rtc2.Constants.AudioSourceType.AUDIO_SOURCE_CUSTOM =(1)

1: Custom audio stream.

## ◆ AUDIO_SOURCE_MEDIA_PLAYER

io.agora.rtc2.Constants.AudioSourceType.AUDIO_SOURCE_MEDIA_PLAYER =(2)

2: Media player.

## ◆ AUDIO_SOURCE_LOOPBACK_RECORDING

io.agora.rtc2.Constants.AudioSourceType.AUDIO_SOURCE_LOOPBACK_RECORDING =(3)

3: System audio stream captured during screen sharing.

## ◆ AUDIO_SOURCE_MIXED_STREAM

io.agora.rtc2.Constants.AudioSourceType.AUDIO_SOURCE_MIXED_STREAM =(4)

4: Audio of mixed stream from the local client.

## ◆ AUDIO_SOURCE_REMOTE_USER

io.agora.rtc2.Constants.AudioSourceType.AUDIO_SOURCE_REMOTE_USER =(5)

5: Audio stream from a specified remote user.

## ◆ AUDIO_SOURCE_REMOTE_CHANNEL

io.agora.rtc2.Constants.AudioSourceType.AUDIO_SOURCE_REMOTE_CHANNEL =(6)

6: Mixed audio streams from all users in the current channel.

## ◆ AUDIO_SOURCE_UNKNOWN

io.agora.rtc2.Constants.AudioSourceType.AUDIO_SOURCE_UNKNOWN =(100)

100: An unknown audio source.