Server Gateway SDK v3.7.200.21 for Linux Java
|
Public Member Functions | |
AgoraAudioEncodedFrameSender (long cptr) | |
native int | send (byte[] payload_data, int payload_size, EncodedAudioFrameInfo info) |
void | destroy () |
The AgoraAudioEncodedFrameSender
class.
In scenarios involving custom audio source, you can use the AgoraAudioEncodedFrameSender
class to send encoded audio data directly to the audio track. If the track is disabled, the sent audio data will be automatically discarded.
io.agora.rtc.AgoraAudioEncodedFrameSender.AgoraAudioEncodedFrameSender | ( | long | cptr | ) |
Constructor.
void io.agora.rtc.AgoraAudioEncodedFrameSender.destroy | ( | ) |
Destructor.
native int io.agora.rtc.AgoraAudioEncodedFrameSender.send | ( | byte[] | payload_data, |
int | payload_size, | ||
EncodedAudioFrameInfo | info | ||
) |
Sends the encoded audio frame to the local audio track.
payload_data | The pointer to the payload data. |
payload_size | The payload size. |
info | The reference to the information of the audio frame. |
true
: Success.false
: Failure.