|
Agora Server Gateway SDK Java API Reference
|
Public Member Functions | |
| AgoraMediaPacketSender (long cptr) | |
| native int | send (byte[] packet, int length, PacketOptions options) |
| void | destroy () |
Private Member Functions | |
| native void | ndestroy () |
Private Attributes | |
| long | cptr |
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.
|
private |
| 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.
|
private |