public class CachingTransformer extends SinglePacketTransformerAdapter implements TransformEngine, org.jitsi.utils.concurrent.RecurringRunnable
| Constructor and Description |
|---|
CachingTransformer(MediaStreamImpl stream)
Initializes a new
CachingTransformer instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this PacketTransformer i.e.
|
RawPacketCache |
getIncomingRawPacketCache()
Gets the incoming
RawPacketCache. |
RawPacketCache |
getOutgoingRawPacketCache()
Gets the outgoing
RawPacketCache. |
PacketTransformer |
getRTCPTransformer()
Gets the PacketTransformer for RTCP packets.
|
PacketTransformer |
getRTPTransformer()
Gets the PacketTransformer for RTP packets.
|
long |
getTimeUntilNextRun() |
RawPacket |
reverseTransform(RawPacket pkt)
Reverse-transforms a specific packet.
|
void |
run() |
void |
setEnabled(boolean enabled)
Enables/disables the caching of packets.
|
RawPacket |
transform(RawPacket pkt)
Transforms a specific packet.
|
reverseTransform, transformpublic CachingTransformer(MediaStreamImpl stream)
CachingTransformer instance.stream - the owning stream.public void close()
SinglePacketTransformer does
nothing.close in interface PacketTransformerclose in class SinglePacketTransformerpublic RawPacket transform(RawPacket pkt)
transform in class SinglePacketTransformerAdapterpkt - the packet to be transformed.public RawPacket reverseTransform(RawPacket pkt)
SinglePacketTransformerreverseTransform in class SinglePacketTransformerAdapterpkt - the transformed packet to be restored.public PacketTransformer getRTPTransformer()
getRTPTransformer in interface TransformEnginepublic PacketTransformer getRTCPTransformer()
getRTCPTransformer in interface TransformEnginepublic long getTimeUntilNextRun()
getTimeUntilNextRun in interface org.jitsi.utils.concurrent.RecurringRunnablepublic void setEnabled(boolean enabled)
enabled - true if the caching of packets is to be enabled or
false if the caching of packets is to be disabledpublic RawPacketCache getOutgoingRawPacketCache()
RawPacketCache.RawPacketCache.public RawPacketCache getIncomingRawPacketCache()
RawPacketCache.RawPacketCache.Copyright © 2021 jitsi.org. All rights reserved.