Skip to main content

OfferAnswerParameters

Enum OfferAnswerParameters 

Source
#[repr(i32)]
pub enum OfferAnswerParameters {
Show 20 variants Done = 0, Audio = 1, Video = 2, Data = 3, AudioDirection = 4, VideoDirection = 5, AudioCodec = 6, VideoCodec = 7, Vp9Profile = 8, H264Profile = 9, AudioPayloadType = 10, VideoPayloadType = 11, AudioDtmf = 12, AudioFmtp = 13, VideoFmtp = 14, VideoRtcpfbDefaults = 15, DataLegacy = 16, AudioExtension = 17, VideoExtension = 18, AcceptExtmap = 19,
}
Expand description

Parameters controlling SDP offer answering behavior. Used as keys in the parameter list for janus_sdp_generate_answer. See sdp-utils.h in the Janus source for more details.

Variants§

§

Done = 0

Used to signal the end of the offer-answer parameter list.

§

Audio = 1

Whether to accept or reject audio.

§

Video = 2

Whether to accept or reject video.

§

Data = 3

Whether to accept or reject data.

§

AudioDirection = 4

The MediaDirection for the audio stream.

§

VideoDirection = 5

The MediaDirection for the video stream.

§

AudioCodec = 6

The AudioCodec for the audio stream.

§

VideoCodec = 7

The VideoCodec for the video stream.

§

Vp9Profile = 8

Use this profile for VP9

§

H264Profile = 9

Use this profile for H.264

§

AudioPayloadType = 10

The payload type for the audio stream.

§

VideoPayloadType = 11

The payload type for the video stream.

§

AudioDtmf = 12

Whether to negotiate telephone events.

§

AudioFmtp = 13

Add a custom fmtp string for audio

§

VideoFmtp = 14

Add a custom fmtp string for video @note This property is ignored if Vp9Profile or H264Profile is used on a compliant codec.

§

VideoRtcpfbDefaults = 15

Whether to add RTCP-FB attributes.

§

DataLegacy = 16

§

AudioExtension = 17

§

VideoExtension = 18

§

AcceptExtmap = 19

Trait Implementations§

Source§

impl Clone for OfferAnswerParameters

Source§

fn clone(&self) -> OfferAnswerParameters

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for OfferAnswerParameters

Source§

impl Debug for OfferAnswerParameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for OfferAnswerParameters

Source§

impl Hash for OfferAnswerParameters

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for OfferAnswerParameters

Source§

fn eq(&self, other: &OfferAnswerParameters) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for OfferAnswerParameters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.