Struct web_audio_api::media_streams::MediaStream
source · pub struct MediaStream { /* private fields */ }
Expand description
Stream of media content.
A stream consists of several tracks, such as video or audio tracks. Each track is specified as
an instance of MediaStreamTrack
.
Implementations§
source§impl MediaStream
impl MediaStream
pub fn from_tracks(tracks: Vec<MediaStreamTrack>) -> Self
pub fn get_tracks(&self) -> &[MediaStreamTrack]
Trait Implementations§
source§impl Clone for MediaStream
impl Clone for MediaStream
source§fn clone(&self) -> MediaStream
fn clone(&self) -> MediaStream
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for MediaStream
impl Send for MediaStream
impl Sync for MediaStream
impl Unpin for MediaStream
impl !UnwindSafe for MediaStream
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