// 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());
}