|
Agora Java API Reference for Android
|
The type of the audio track. More...
Static Public Member Functions | |
| static int | getValue (AudioTrackType type) |
Public Attributes | |
| AUDIO_TRACK_MIXABLE =(0) | |
| AUDIO_TRACK_DIRECT =(1) | |
The type of the audio track.
| io.agora.rtc2.Constants.AudioTrackType.AUDIO_TRACK_MIXABLE =(0) |
0: Mixable audio tracks. This type of audio track supports mixing with other audio streams (such as audio streams captured by microphone) and playing locally or publishing to channels after mixing. The latency of mixable audio tracks is higher than that of direct audio tracks.
| io.agora.rtc2.Constants.AudioTrackType.AUDIO_TRACK_DIRECT =(1) |
1: Direct audio tracks. This type of audio track will replace the audio streams captured by the microphone and does not support mixing with other audio streams. The latency of direct audio tracks is lower than that of mixable audio tracks.
AUDIO_TRACK_DIRECT is specified for this parameter, you must set publishMicrophoneTrack to false in ChannelMediaOptions when calling joinChannel(String token, String channelId, int uid, ChannelMediaOptions options) to join the channel; otherwise, joining the channel fails and returns the error code -2.
1.8.18