public class TransformEngineChain extends java.lang.Object implements TransformEngine
Modifier and Type | Class and Description |
---|---|
class |
TransformEngineChain.PacketTransformerChain
A PacketTransformerChain is a meta PacketTransformer
that applies all transformers present in this engine chain.
|
Modifier and Type | Field and Description |
---|---|
protected TransformEngine[] |
engineChain
The sequence of TransformEngines whose
PacketTransformers this engine chain will be applying to RTP and
RTCP packets.
|
Modifier | Constructor and Description |
---|---|
protected |
TransformEngineChain()
Creates a new TransformEngineChain without initializing the
array of transformers to be used.
|
|
TransformEngineChain(TransformEngine[] engineChain)
Creates a new TransformEngineChain using the
engineChain array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEngine(TransformEngine engine)
Appends a
TransformEngine to this chain. |
void |
addEngine(TransformEngine engine,
int position)
Adds a
TransformEngine at a specific position in this chain. |
boolean |
addEngine(TransformEngine engine,
TransformEngine after)
Adds a
TransformEngine to this chain, at the position after the
after instance. |
TransformEngine[] |
getEngineChain()
Gets the sequence of TransformEngines whose
PacketTransformers this engine chain applies to RTP and RTCP
packets.
|
PacketTransformer |
getRTCPTransformer()
Returns the meta PacketTransformer that will be applying
RTCP transformations from all engines registered in this
TransformEngineChain.
|
PacketTransformer |
getRTPTransformer()
Returns the meta PacketTransformer that will be applying
RTCP transformations from all engines registered in this
TransformEngineChain.
|
protected TransformEngine[] engineChain
public TransformEngineChain(TransformEngine[] engineChain)
engineChain
- an array containing TransformEngines in the
order that they are to be applied on outgoing packets.protected TransformEngineChain()
public boolean addEngine(TransformEngine engine)
TransformEngine
to this chain.engine
- the engine to add.true
if the engine was added, and false
if the
engine was not added because it is already a member of the chain.public boolean addEngine(TransformEngine engine, TransformEngine after)
TransformEngine
to this chain, at the position after the
after
instance.engine
- the engine to add.after
- the TransformEngine
instance from this chain, after
which engine
should be inserted.true
if the engine was added, and false
if the
engine was not added because it is already a member of the chain.public void addEngine(TransformEngine engine, int position)
TransformEngine
at a specific position in this chain.engine
- the engine to add.position
- the position at which to add the engine.public TransformEngine[] getEngineChain()
public PacketTransformer getRTCPTransformer()
getRTCPTransformer
in interface TransformEngine
public PacketTransformer getRTPTransformer()
getRTPTransformer
in interface TransformEngine
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.