pub struct MediaEngine { /* private fields */ }
Expand description

A MediaEngine defines the codecs supported by a PeerConnection, and the configuration of those codecs. A MediaEngine must not be shared between PeerConnections.

Implementations

register_default_codecs registers the default codecs supported by Pion WebRTC. register_default_codecs is not safe for concurrent use.

register_codec adds codec to the MediaEngine These are the list of codecs supported by this PeerConnection. register_codec is not safe for concurrent use.

Adds a header extension to the MediaEngine To determine the negotiated value use [get_header_extension_id] after signaling is complete.

The allowed_direction controls for which transceiver directions the extension matches. If set to None it matches all directions. The SendRecv direction would match all transceiver directions apart from Inactive. Inactive ony matches inactive.

register_feedback adds feedback mechanism to already registered codecs.

Trait Implementations

Returns the “default value” for a type. Read more

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.