Package javax.media.rtp

Examples of javax.media.rtp.TransmissionStats


                if ( null != frameRateControl )
                {
                    fps = (int)frameRateControl.getFrameRate();
                }
               
                TransmissionStats stats = sendStream.getSourceTransmissionStats();
                System.out.println("rtp video send: bitrate=" + bitrateControl.getBitRate() + ", captureFPS=" + fps + " (pdu=" + stats.getPDUTransmitted() + " sent=" + stats.getBytesTransmitted() + " bytes)");
               
                /*if ( stats.getPDUTransmitted() > 100 )
                {
                    processor.close();
                    sendStream.close();
View Full Code Here


        // the same units and with the same random offset as the RTP timestamps in data packets)
        // is calculated base on the ntp timestamp using the relationship between rtp timestamp and real time
        double timestamp = (double)(sendStream.getLastSendTime() - sendStream.getInitialSendTime()) * ((double)sendStream.getClockRate() / 1000.0d);
        long rtpTimestamp = sendStream.getInitialTimestamp() + Math.round(timestamp);

        TransmissionStats stats = sendStream.getSourceTransmissionStats();

        output.writeInt((int) (sendStream.getSSRC() & 0xFFFFFFFF));
        output.writeInt((int) (sendTimeSeconds & 0xFFFFFFFF));
        output.writeInt((int) (sendTimeFractional & 0xFFFFFFFF));
        output.writeInt((int) (rtpTimestamp & 0xFFFFFFFF));
        output.writeInt(stats.getPDUTransmitted());
        output.writeInt(stats.getBytesTransmitted());
    }
View Full Code Here

TOP

Related Classes of javax.media.rtp.TransmissionStats

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.