pub struct DecoderConfig {
pub codec: String,
pub description: Option<Vec<u8>>,
pub coded_width: u32,
pub coded_height: u32,
}Expand description
Browser decoder configuration for the current encoded stream.
Fields§
§codec: StringRFC 6381 codec string, for example hvc1.1.6.L153.B0.
description: Option<Vec<u8>>Optional codec-specific description payload (for example hvcC).
coded_width: u32Encoded frame width.
coded_height: u32Encoded frame height.
Implementations§
Source§impl DecoderConfig
impl DecoderConfig
Sourcepub fn to_control_message(&self) -> ControlMessage
pub fn to_control_message(&self) -> ControlMessage
Build the typed control message expected by the browser client.
Sourcepub fn to_control_message_bytes(&self) -> Vec<u8> ⓘ
pub fn to_control_message_bytes(&self) -> Vec<u8> ⓘ
Build the JSON control message expected by the browser client.
Trait Implementations§
Source§impl Clone for DecoderConfig
impl Clone for DecoderConfig
Source§fn clone(&self) -> DecoderConfig
fn clone(&self) -> DecoderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecoderConfig
impl Debug for DecoderConfig
Source§impl PartialEq for DecoderConfig
impl PartialEq for DecoderConfig
impl Eq for DecoderConfig
impl StructuralPartialEq for DecoderConfig
Auto Trait Implementations§
impl Freeze for DecoderConfig
impl RefUnwindSafe for DecoderConfig
impl Send for DecoderConfig
impl Sync for DecoderConfig
impl Unpin for DecoderConfig
impl UnsafeUnpin for DecoderConfig
impl UnwindSafe for DecoderConfig
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.