pub struct SampleWriter<'track> { /* private fields */ }
Expand description

Helper for writing Samples via TrackLocalStaticSample that carry extra RTP data.

Created via TrackLocalStaticSample::sample_writer.

Implementations

Add a RTP audio level extension to all packets written for the sample.

This overwrites any previously configured audio level extension.

Add a RTP video orientation extension to all packets written for the sample.

This overwrites any previously configured video orientation extension.

Add any RTP extension to all packets written for the sample.

Write the sample to the track.

Creates one or more RTP packets with any extensions specified for each packet and sends them.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.