Class RawPacketScheduler


  • public class RawPacketScheduler
    extends Object
    Suggests a schedule method that puts the current thread to sleep for X milis, where X is such that RTP timestamps and a given clock are respected.
    Author:
    George Politis
    • Constructor Detail

      • RawPacketScheduler

        public RawPacketScheduler​(long clockRate)
        Ctor.
        Parameters:
        clockRate -
    • Method Detail

      • schedule

        public void schedule​(RawPacket rtpPacket)
                      throws InterruptedException
        puts the current thread to sleep for X milis, where X is such that RTP timestamps and a given clock are respected.
        Parameters:
        rtpPacket - the RTPPacket to schedule.
        Throws:
        InterruptedException