pub struct MediaFrame {
pub stream_id: StreamId,
pub kind: StreamKind,
pub payload: Bytes,
pub timestamp_rtp: u32,
pub captured_at: DateTime<Utc>,
pub payload_type: Option<u8>,
}Fields§
§stream_id: StreamId§kind: StreamKind§payload: BytesEncoded codec payload only.
This field never contains a serialized RTP packet. Adapters remove the
RTP header before constructing a MediaFrame and reconstruct it only
at their wire boundary. RTP metadata that must survive a bridge lives
in timestamp_rtp and payload_type; consumers must not inspect these
bytes to guess whether an RTP header is present.
timestamp_rtp: u32§captured_at: DateTime<Utc>§payload_type: Option<u8>RTP payload type for this frame, when known. Set by adapter
inbound pumps that read the wire RTP header (SIP, WebRTC, QUIC,
WT). Used by the cross-transport crate::bridge::frame_pump
to route RFC 4733 telephone-events (typically PT 101) to the
DTMF event sink instead of through the codec transcoder. None
for construction sites that don’t have a wire RTP header
(synthetic test frames, transcoder outputs).
Gap plan §4.3 / CONVERSATION_PROTOCOL.md §7.5.
Trait Implementations§
Source§impl Clone for MediaFrame
impl Clone for MediaFrame
Source§fn clone(&self) -> MediaFrame
fn clone(&self) -> MediaFrame
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more