|
Agora Java API Reference for Android
|
Public Member Functions | |
| abstract void | onRecordAudioEncodedFrame (ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType) |
| Gets the encoded audio data of the local user. More... | |
| abstract void | onPlaybackAudioEncodedFrame (ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType) |
| Gets the encoded audio data of all remote users. More... | |
| abstract void | onMixedAudioEncodedFrame (ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType) |
| Gets the mixed and encoded audio data of the local and all remote users. More... | |
|
abstract |
Gets the encoded audio data of the local user.
After calling registerAudioEncodedFrameObserver and setting the encoded audio as AUDIO_ENCODED_FRAME_OBSERVER_POSITION_MIC, you can get the encoded audio data of the local user from this callback.
| buffer | The audio buffer. |
| samplesPerChannel | The number of samples per channel in the audio frame. |
| channels | The number of channels.
|
| samplesPerSec | Recording sample rate (Hz). |
| codecType | Audio encoding type:
|
|
abstract |
Gets the encoded audio data of all remote users.
After calling registerAudioEncodedFrameObserver and setting the encoded audio as AUDIO_ENCODED_FRAME_OBSERVER_POSITION_PLAYBACK, you can get encoded audio data of all remote users through this callback.
| buffer | The audio buffer. |
| samplesPerChannel | The number of samples per channel in the audio frame. |
| channels | The number of channels.
|
| samplesPerSec | Recording sample rate (Hz). |
| codecType | Audio encoding type:
|
|
abstract |
Gets the mixed and encoded audio data of the local and all remote users.
After calling registerAudioEncodedFrameObserver and setting the audio profile as AUDIO_ENCODED_FRAME_OBSERVER_POSITION_MIXED, you can get the mixed and encoded audio data of the local and all remote users through this callback.
| buffer | The audio buffer. |
| samplesPerChannel | The number of samples per channel in the audio frame. |
| channels | The number of channels.
|
| samplesPerSec | Recording sample rate (Hz). |
| codecType | Audio encoding type:
|
1.8.18