Class DebugTransformEngine
- java.lang.Object
-
- org.jitsi.impl.neomedia.transform.DebugTransformEngine
-
- All Implemented Interfaces:
TransformEngine
public class DebugTransformEngine extends Object implements TransformEngine
Logs all the packets that go in and out of a MediaStream. In order to use it, you can setup logging like this:net.java.sip.communicator.packetlogging.PACKET_LOGGING_ENABLED=true net.java.sip.communicator.packetlogging.PACKET_LOGGING_ARBITRARY_ENABLED=true net.java.sip.communicator.packetlogging.PACKET_LOGGING_FILE_COUNT=1 net.java.sip.communicator.packetlogging.PACKET_LOGGING_FILE_SIZE=-1
Next, you setup a named pipe like this:mkfifo ~/.sip-communicator/log/jitsi0.pcap
Finally, you can launch Wireshark like this (assuming that you're using Bash):wireshark -k -i <(cat ~/.sip-communicator/log/jitsi0.pcap)
- Author:
- George Politis, Lyubomir Marinov
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DebugTransformEnginecreateDebugTransformEngine(MediaStreamImpl mediaStream)Creates and returns a new DebugTransformEngine if logging is enabled for PacketLoggingService.ProtocolName.ARBITRARY.SinglePacketTransformergetRTCPTransformer()Gets the PacketTransformer for RTCP packets.SinglePacketTransformergetRTPTransformer()Gets the PacketTransformer for RTP packets.
-
-
-
Method Detail
-
createDebugTransformEngine
public static DebugTransformEngine createDebugTransformEngine(MediaStreamImpl mediaStream)
Creates and returns a new DebugTransformEngine if logging is enabled for PacketLoggingService.ProtocolName.ARBITRARY.- Parameters:
mediaStream- the MediaStream that will own the newly created DebugTransformEngine.- Returns:
- a new DebugTransformEngine if logging is enabled for PacketLoggingService.ProtocolName.ARBITRARY, otherwise null.
-
getRTCPTransformer
public SinglePacketTransformer getRTCPTransformer()
Description copied from interface:TransformEngineGets the PacketTransformer for RTCP packets.- Specified by:
getRTCPTransformerin interfaceTransformEngine- Returns:
- the PacketTransformer for RTCP packets
-
getRTPTransformer
public SinglePacketTransformer getRTPTransformer()
Description copied from interface:TransformEngineGets the PacketTransformer for RTP packets.- Specified by:
getRTPTransformerin interfaceTransformEngine- Returns:
- the PacketTransformer for RTP packets
-
-