Server Gateway SDK v3.7.200.21 for Linux Java
|
Public Member Functions | |
AgoraMediaPacketSender (long cptr) | |
native int | send (byte[] packet, int length, PacketOptions options) |
void | destroy () |
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.
io.agora.rtc.AgoraMediaPacketSender.AgoraMediaPacketSender | ( | long | cptr | ) |
Constructor.
void io.agora.rtc.AgoraMediaPacketSender.destroy | ( | ) |
Destructor.
native int io.agora.rtc.AgoraMediaPacketSender.send | ( | byte[] | packet, |
int | length, | ||
PacketOptions | options | ||
) |
Sends the frame packet to the local track.
packet | The pointer to the packet. |
length | The packet size. |
options | The packet information. |
true
: Success.false
: Failure.