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

RTPTransceiver represents a combination of an RTPSender and an RTPReceiver that share a common mid.

Implementations

set_codec_preferences sets preferred list of supported codecs if codecs is empty or nil we reset to default from MediaEngine

sender returns the RTPTransceiver’s RTPSender if it has one

set_sender_track sets the RTPSender and Track to current transceiver

receiver returns the RTPTransceiver’s RTPReceiver if it has one

mid gets the Transceiver’s mid value. When not already set, this value will be set in CreateOffer or create_answer.

kind returns RTPTransceiver’s kind.

direction returns the RTPTransceiver’s desired direction.

Set the direction of this transceiver. This might trigger a renegotiation.

current_direction returns the RTPTransceiver’s current direction as negotiated.

If this transceiver has never been negotiated or if it’s stopped this returns RTCRtpTransceiverDirection::Unspecified.

stop irreversibly stops the RTPTransceiver

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.