public class TransportCCEngine extends RTCPPacketListenerAdapter implements RemoteBitrateObserver, CallStatsObserver
TransformEngine. The
intention is to have the same instance shared between all media streams of
a transport channel, so we expect it will be accessed by multiple threads.
See https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01| Modifier and Type | Class and Description |
|---|---|
class |
TransportCCEngine.EgressEngine
Handles outgoing RTP packets for this
TransportCCEngine. |
class |
TransportCCEngine.IngressEngine
Handles incoming RTP packets for this
TransportCCEngine. |
| Constructor and Description |
|---|
TransportCCEngine(@NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMediaStream(MediaStream mediaStream)
|
TransformEngine |
getEgressEngine()
Gets the engine which handles outgoing RTP packets for this instance.
|
TransformEngine |
getIngressEngine()
Gets the engine which handles incoming RTP packets for this instance.
|
void |
onReceiveBitrateChanged(Collection<Long> ssrcs,
long bitrate)
Called when a receive channel group has a new bitrate estimate for the
incoming streams.
|
void |
onRttUpdate(long avgRttMs,
long maxRttMs) |
void |
removeMediaStream(MediaStream mediaStream)
|
void |
setExtensionID(int id)
Sets the ID of the transport-cc RTP extension.
|
void |
tccReceived(RTCPTCCPacket tccPacket)
Handles an incoming RTCP transport-cc feedback packet.
|
nackReceived, rembReceived, srReceivedpublic TransportCCEngine(@NotNull
@NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
diagnosticContext - the DiagnosticContext of this instance.public void onRttUpdate(long avgRttMs,
long maxRttMs)
onRttUpdate in interface CallStatsObserverpublic void setExtensionID(int id)
id - the ID to set.public void onReceiveBitrateChanged(Collection<Long> ssrcs, long bitrate)
onReceiveBitrateChanged in interface RemoteBitrateObserverssrcs - bitrate - public void tccReceived(RTCPTCCPacket tccPacket)
tccReceived in interface RTCPPacketListenertccReceived in class RTCPPacketListenerAdaptertccPacket - the received TCC packet.public TransformEngine getEgressEngine()
public TransformEngine getIngressEngine()
public void addMediaStream(MediaStream mediaStream)
mediaStream - the stream to add.public void removeMediaStream(MediaStream mediaStream)
mediaStream - the stream to remove.Copyright © 2021 jitsi.org. All rights reserved.