pub struct RtpPacket {
pub seq_no: SeqNo,
pub time: MediaTime,
pub header: RtpHeader,
pub payload: Arc<[u8]>,
pub timestamp: Instant,
pub last_sender_info: Option<SenderInfo>,
/* private fields */
}Expand description
Packet of RTP data.
As emitted by Event::RtpPacket when using rtp mode.
Fields§
§seq_no: SeqNoExtended sequence number to avoid having to deal with ROC.
time: MediaTimeExtended RTP time in the clock frequency of the codec. To avoid dealing with ROC.
For a newly scheduled outgoing packet, the clock_rate is not correctly set until we do the poll_output().
header: RtpHeaderParsed RTP header.
payload: Arc<[u8]>RTP payload. This contains no header.
timestamp: Instantstr0m server timestamp.
This timestamp has nothing to do with RTP itself. For outgoing packets, this is when the packet was first handed over to str0m and enqueued in the outgoing send buffers. For incoming packets it’s the time we received the network packet.
last_sender_info: Option<SenderInfo>Sender information from the most recent Sender Report(SR).
If no Sender Report(SR) has been received or this packet is being sent by str0m this is None.