All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.fmj.media.rtp.RTPTransStats Maven / Gradle / Ivy

There is a newer version: 1.0.2-jitsi
Show newest version
package net.sf.fmj.media.rtp;

import javax.media.rtp.*;

public class RTPTransStats implements TransmissionStats
{
    protected int total_pdu;
    protected int total_bytes;

    /**
     * Updated by the RTPTransmitter or the RTCPTransmitter
     * when an RTCP packet is transmitted.
     */
    public int total_rtcp;

    public RTPTransStats()
    {
        total_pdu = 0;
        total_bytes = 0;
        total_rtcp = 0;
    }

    public int getBytesTransmitted()
    {
        return total_bytes;
    }

    public int getPDUTransmitted()
    {
        return total_pdu;
    }

    public int getRTCPSent()
    {
        return total_rtcp;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy