At the receiver-side, when an whole FEC-unit is received, it is FEC-decoded; and all of the RTP-packets in the FEC-unit are put on a playback-queue.
The playback-queue runs in a separate thread and is sending packets in intervals calculated as:
Code: Select all
( timestamp of next packet - timestamp of current packet) * factor
However, the stream is not playing as smooth as it does when it is sent by VLC to VLC listening at port 5004 (rtp://127.0.0.1:5004).
My guess is that the determinitive factor is in which interval the packets are sent.
Based on the timestamp and other relevant parameters, how do I calculate the interval I should wait between the transmission the packets?