Server Gateway SDK v3.7.200.21 for Linux Java
Public Member Functions | List of all members
io.agora.rtc.AgoraAudioEncodedFrameSender Class Reference

Public Member Functions

 AgoraAudioEncodedFrameSender (long cptr)
native int send (byte[] payload_data, int payload_size, EncodedAudioFrameInfo info)
void destroy ()

Detailed Description

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.

Constructor & Destructor Documentation

◆ AgoraAudioEncodedFrameSender()

io.agora.rtc.AgoraAudioEncodedFrameSender.AgoraAudioEncodedFrameSender ( long  cptr)


Member Function Documentation

◆ destroy()

void io.agora.rtc.AgoraAudioEncodedFrameSender.destroy ( )


◆ send()

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_dataThe pointer to the payload data.
payload_sizeThe payload size.
infoThe reference to the information of the audio frame.
  • true: Success.
  • false: Failure.

The documentation for this class was generated from the following file: