Struct MediaCodecFlags
pub struct MediaCodecFlags {
enabled: MediaCodecSet,
}Expand description
Codec enablement for RTP profile compilation.
Default enables Opus and VP8. CodecPreferences determines their
compilation order.
Fields§
§enabled: MediaCodecSetImplementations§
§impl MediaCodecFlags
impl MediaCodecFlags
pub const fn empty() -> MediaCodecFlags
pub fn opus_enabled(self) -> bool
pub fn opus_enabled(self) -> bool
returns whether OPUS may enter the compiled RTP profile
pub fn with_opus(self, enabled: bool) -> MediaCodecFlags
pub fn with_opus(self, enabled: bool) -> MediaCodecFlags
returns a copy with OPUS enabled or disabled for profile compilation
pub fn pcmu_enabled(self) -> bool
pub fn pcmu_enabled(self) -> bool
returns whether PCMU may enter the compiled RTP profile
pub fn with_pcmu(self, enabled: bool) -> MediaCodecFlags
pub fn with_pcmu(self, enabled: bool) -> MediaCodecFlags
returns a copy with PCMU enabled or disabled for profile compilation
pub fn pcma_enabled(self) -> bool
pub fn pcma_enabled(self) -> bool
returns whether PCMA may enter the compiled RTP profile
pub fn with_pcma(self, enabled: bool) -> MediaCodecFlags
pub fn with_pcma(self, enabled: bool) -> MediaCodecFlags
returns a copy with PCMA enabled or disabled for profile compilation
pub fn vp8_enabled(self) -> bool
pub fn vp8_enabled(self) -> bool
returns whether VP8 may enter the compiled RTP profile
pub fn with_vp8(self, enabled: bool) -> MediaCodecFlags
pub fn with_vp8(self, enabled: bool) -> MediaCodecFlags
returns a copy with VP8 enabled or disabled for profile compilation
pub fn h264_enabled(self) -> bool
pub fn h264_enabled(self) -> bool
returns whether H264 may enter the compiled RTP profile
pub fn with_h264(self, enabled: bool) -> MediaCodecFlags
pub fn with_h264(self, enabled: bool) -> MediaCodecFlags
returns a copy with H264 enabled or disabled for profile compilation
pub fn h265_enabled(self) -> bool
pub fn h265_enabled(self) -> bool
returns whether H265 may enter the compiled RTP profile
pub fn with_h265(self, enabled: bool) -> MediaCodecFlags
pub fn with_h265(self, enabled: bool) -> MediaCodecFlags
returns a copy with H265 enabled or disabled for profile compilation
pub fn vp9_enabled(self) -> bool
pub fn vp9_enabled(self) -> bool
returns whether VP9 may enter the compiled RTP profile
pub fn with_vp9(self, enabled: bool) -> MediaCodecFlags
pub fn with_vp9(self, enabled: bool) -> MediaCodecFlags
returns a copy with VP9 enabled or disabled for profile compilation
pub fn av1_enabled(self) -> bool
pub fn av1_enabled(self) -> bool
returns whether AV1 may enter the compiled RTP profile
pub fn with_av1(self, enabled: bool) -> MediaCodecFlags
pub fn with_av1(self, enabled: bool) -> MediaCodecFlags
returns a copy with AV1 enabled or disabled for profile compilation
Trait Implementations§
§impl Clone for MediaCodecFlags
impl Clone for MediaCodecFlags
§fn clone(&self) -> MediaCodecFlags
fn clone(&self) -> MediaCodecFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for MediaCodecFlags
impl Debug for MediaCodecFlags
§impl Default for MediaCodecFlags
impl Default for MediaCodecFlags
§fn default() -> MediaCodecFlags
fn default() -> MediaCodecFlags
§impl PartialEq for MediaCodecFlags
impl PartialEq for MediaCodecFlags
impl Copy for MediaCodecFlags
impl Eq for MediaCodecFlags
impl StructuralPartialEq for MediaCodecFlags
Auto Trait Implementations§
impl Freeze for MediaCodecFlags
impl RefUnwindSafe for MediaCodecFlags
impl Send for MediaCodecFlags
impl Sync for MediaCodecFlags
impl Unpin for MediaCodecFlags
impl UnsafeUnpin for MediaCodecFlags
impl UnwindSafe for MediaCodecFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more