|
Agora Server Gateway SDK Java API Reference
|
Public Member Functions | |
| EncodedAudioFrameInfo () | |
| EncodedAudioFrameInfo (int codec, int sampleRateHz, int samplesPerChannel, int numberOfChannels, EncodedAudioFrameAdvancedSettings advancedSettings, long captureTimeMs) | |
| int | getCodec () |
| void | setCodec (int codec) |
| int | getSampleRateHz () |
| void | setSampleRateHz (int sampleRateHz) |
| int | getSamplesPerChannel () |
| void | setSamplesPerChannel (int samplesPerChannel) |
| int | getNumberOfChannels () |
| void | setNumberOfChannels (int numberOfChannels) |
| EncodedAudioFrameAdvancedSettings | getAdvancedSettings () |
| void | setAdvancedSettings (EncodedAudioFrameAdvancedSettings advancedSettings) |
| long | getCaptureTimeMs () |
| void | setCaptureTimeMs (long captureTimeMs) |
Private Attributes | |
| int | codec |
| int | sampleRateHz |
| int | samplesPerChannel |
| int | numberOfChannels |
| EncodedAudioFrameAdvancedSettings | advancedSettings |
| long | captureTimeMs |
The EncodedAudioFrameInfo class.
| io.agora.rtc.EncodedAudioFrameInfo.EncodedAudioFrameInfo | ( | ) |
| io.agora.rtc.EncodedAudioFrameInfo.EncodedAudioFrameInfo | ( | int | codec, |
| int | sampleRateHz, | ||
| int | samplesPerChannel, | ||
| int | numberOfChannels, | ||
| EncodedAudioFrameAdvancedSettings | advancedSettings, | ||
| long | captureTimeMs ) |
Constructor.
| codec | The audio codec.
|
| sampleRateHz | The sample rate (Hz) of the audio frame. |
| samplesPerChannel | The number of samples per audio channel. If this value is not set, it is 1024 for AAC, or 960 for Opus by default. |
| numberOfChannels | Downlink network info of the user who owns the remote video stream. |
| advancedSettings | The advanced settings of the audio frame. |
| captureTimeMs | The timestamp (ms) when the audio is captured. |
| EncodedAudioFrameAdvancedSettings io.agora.rtc.EncodedAudioFrameInfo.getAdvancedSettings | ( | ) |
| long io.agora.rtc.EncodedAudioFrameInfo.getCaptureTimeMs | ( | ) |
| int io.agora.rtc.EncodedAudioFrameInfo.getCodec | ( | ) |
| int io.agora.rtc.EncodedAudioFrameInfo.getNumberOfChannels | ( | ) |
| int io.agora.rtc.EncodedAudioFrameInfo.getSampleRateHz | ( | ) |
| int io.agora.rtc.EncodedAudioFrameInfo.getSamplesPerChannel | ( | ) |
| void io.agora.rtc.EncodedAudioFrameInfo.setAdvancedSettings | ( | EncodedAudioFrameAdvancedSettings | advancedSettings | ) |
| void io.agora.rtc.EncodedAudioFrameInfo.setCaptureTimeMs | ( | long | captureTimeMs | ) |
| void io.agora.rtc.EncodedAudioFrameInfo.setCodec | ( | int | codec | ) |
| void io.agora.rtc.EncodedAudioFrameInfo.setNumberOfChannels | ( | int | numberOfChannels | ) |
| void io.agora.rtc.EncodedAudioFrameInfo.setSampleRateHz | ( | int | sampleRateHz | ) |
| void io.agora.rtc.EncodedAudioFrameInfo.setSamplesPerChannel | ( | int | samplesPerChannel | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |