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

Public Member Functions

 AgoraMediaPacketSender (long cptr)
native int send (byte[] packet, int length, PacketOptions options)
void destroy ()

Detailed Description

The AgoraMediaPacketSender class.

You can use the AgoraMediaPacketSender class to create a LocalVideoTrack or LocalAudioTrack, and then send media packets directly to the track. The media packets are RTP/UDP packets that contain media payload. If the track is disabled, the packets will be automatically discarded.

Constructor & Destructor Documentation

◆ AgoraMediaPacketSender()

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


Member Function Documentation

◆ destroy()

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


◆ send()

native int io.agora.rtc.AgoraMediaPacketSender.send ( byte[]  packet,
int  length,
PacketOptions  options 

Sends the frame packet to the local track.

packetThe pointer to the packet.
lengthThe packet size.
optionsThe packet information.
  • true: Success.
  • false: Failure.

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