public class AgoraMediaPacketSender
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr
Native pointer to the packet sender instance.
|
| Constructor and Description |
|---|
AgoraMediaPacketSender(long cptr)
Constructs a media packet sender.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the packet sender and releases native resources.
|
private void |
ndestroy()
Destroys the native packet sender.
|
int |
send(byte[] packet,
int length,
PacketOptions options)
Sends a media packet.
|
public AgoraMediaPacketSender(long cptr)
cptr - Native pointer to the sender instancepublic int send(byte[] packet,
int length,
PacketOptions options)
packet - Packet data to sendlength - Length of the packet dataoptions - Packet sending optionsprivate void ndestroy()
public void destroy()