public class TransformUDPOutputStream extends RTPConnectorUDPOutputStream implements TransformOutputStream
PACKET_QUEUE_CAPACITY, POOL_CAPACITY, targets| Constructor and Description |
|---|
TransformUDPOutputStream(DatagramSocket socket)
Initializes a new TransformOutputStream which is to send packet
data out through a specific UDP socket.
|
| Modifier and Type | Method and Description |
|---|---|
PacketTransformer |
getTransformer()
Gets the
PacketTransformer used by this instance to transform
RawPackets. |
protected RawPacket[] |
packetize(byte[] buf,
int off,
int len,
Object context)
Creates a RawPacket element from a specific byte[]
buffer in order to have this instance send its packet data through its
RTPConnectorOutputStream.write(byte[], int, int) method. |
void |
setTransformer(PacketTransformer transformer)
Sets the
PacketTransformer to be used by this instance to
transform RawPackets. |
doLogPacket, isSocketValid, sendToTargetaddTarget, close, getNumberOfBytesSent, getOutputBitrate, getOutputBitrate, getPacketLoggingService, logDroppedPacket, removeTarget, removeTargets, setEnabled, setMaxPacketsPerMillis, setPriority, syncWrite, write, writepublic TransformUDPOutputStream(DatagramSocket socket)
socket - the UDP socket used to send packet data outpublic PacketTransformer getTransformer()
PacketTransformer used by this instance to transform
RawPackets.getTransformer in interface TransformOutputStreamPacketTransformer used by this instance to transform
RawPacketsprotected RawPacket[] packetize(byte[] buf, int off, int len, Object context)
RTPConnectorOutputStream.write(byte[], int, int) method. Returns an array of one or more
elements, with the created RawPacket as its first element (and
null for all other elements)
Allows extenders to intercept the array and possibly filter and/or
modify it.
Transforms the array of RawPackets returned by the super
packetize(byte[],int,int,Object) implementation using the
associated PacketTransformer.packetize in class RTPConnectorOutputStreambuf - the packet data to be sent to the targets of this instance.
The contents of buf starting at off with the specified
len is copied into the buffer of the returned RawPacket.off - the offset of the packet data in buflen - the length of the packet data in bufcontext - the Object provided to
RTPConnectorOutputStream.write(byte[], int, int, java.lang.Object). The implementation of
RTPConnectorOutputStream ignores the context.public void setTransformer(PacketTransformer transformer)
PacketTransformer to be used by this instance to
transform RawPackets.setTransformer in interface TransformOutputStreamtransformer - the PacketTransformer to be used by this
instance to transform RawPacketsCopyright © 2021 jitsi.org. All rights reserved.