public class CsrcTransformEngine extends SinglePacketTransformer implements TransformEngine
| Constructor and Description |
|---|
CsrcTransformEngine(MediaStreamImpl mediaStream)
Creates an engine instance that will be adding CSRC lists to the
specified stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this PacketTransformer i.e.
|
PacketTransformer |
getRTCPTransformer()
Always returns null since this engine does not require any
RTCP transformations.
|
PacketTransformer |
getRTPTransformer()
Returns a reference to this class since it is performing RTP
transformations in here.
|
RawPacket |
reverseTransform(RawPacket pkt)
Extracts the list of CSRC identifiers and passes it to the
MediaStream associated with this engine.
|
void |
setCsrcAudioLevelExtensionID(byte extID,
MediaDirection dir)
Sets the ID that this transformer should be using for audio level
extensions or disables audio level extensions if extID is
-1.
|
RawPacket |
transform(RawPacket pkt)
Extracts the list of CSRC identifiers representing participants currently
contributing to the media being sent by the MediaStream
associated with this engine and (unless the list is empty) encodes them
into the RawPacket.
|
reverseTransform, transformpublic CsrcTransformEngine(MediaStreamImpl mediaStream)
mediaStream - that MediaStream whose RTP packets we are
going to be adding CSRC lists. topublic void close()
close in interface PacketTransformerclose in class SinglePacketTransformerpublic PacketTransformer getRTCPTransformer()
getRTCPTransformer in interface TransformEnginepublic PacketTransformer getRTPTransformer()
getRTPTransformer in interface TransformEnginepublic RawPacket reverseTransform(RawPacket pkt)
reverseTransform in class SinglePacketTransformerpkt - the RTP RawPacket that we are to extract a CSRC list
from.public void setCsrcAudioLevelExtensionID(byte extID,
MediaDirection dir)
extID - ID that this transformer should be using for audio level
extensions or -1 if audio level extensions should be disableddir - the direction that we are expected to hand this extension in.public RawPacket transform(RawPacket pkt)
transform in class SinglePacketTransformerpkt - the RTP RawPacket that we need to add a CSRC list to.Copyright © 2022 jitsi.org. All rights reserved.