Agora Server Gateway SDK Java API Reference
Loading...
Searching...
No Matches
io.agora.rtc.AgoraAudioEncodedFrameSender Class Reference

Public Member Functions

 AgoraAudioEncodedFrameSender (long cptr)
 
int sendEncodedAudioFrame (byte[] payloadData, EncodedAudioFrameInfo info)
 
synchronized 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)

Constructor.

Member Function Documentation

◆ destroy()

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

Destroys the encoded audio frame sender.

◆ sendEncodedAudioFrame()

int io.agora.rtc.AgoraAudioEncodedFrameSender.sendEncodedAudioFrame ( byte[] payloadData,
EncodedAudioFrameInfo info )

Sends an encoded audio frame to the Agora server.

Parameters
payloadDataThe encoded audio data.
infoThe information about the encoded audio frame: EncodedAudioFrameInfo.
Returns
The result of sending the encoded audio frame.

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