pub struct MediaSourceOptions {
pub video: String,
pub audio: String,
pub label: String,
pub video_bitrate: Option<u64>,
pub video_framerate: Option<u32>,
pub on_demand: bool,
}Fields§
§video: StringThe video track, video by default; its media timeline is
<video>_timeline.
audio: StringThe audio track, audio by default.
label: StringThe catalog’s label of the video, and of the audio with audio
after it.
video_bitrate: Option<u64>The encoder’s target in bits per second, for the catalog.
video_framerate: Option<u32>The frames per second the encoder is capped at, for the catalog.
on_demand: boolHas the relay ask for the tracks only while a subscriber takes them
(draft-18 §10.10), reported by MediaSource::demand_change; true
by default.
Implementations§
Trait Implementations§
Source§impl Clone for MediaSourceOptions
impl Clone for MediaSourceOptions
Auto Trait Implementations§
impl Freeze for MediaSourceOptions
impl RefUnwindSafe for MediaSourceOptions
impl Send for MediaSourceOptions
impl Sync for MediaSourceOptions
impl Unpin for MediaSourceOptions
impl UnsafeUnpin for MediaSourceOptions
impl UnwindSafe for MediaSourceOptions
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