pub struct MediaStream { /* private fields */ }Implementations§
Source§impl MediaStream
impl MediaStream
pub fn id(&self) -> String
pub fn get_audio_tracks(&self) -> Vec<AudioTrackPtr> ⓘ
pub fn get_video_tracks(&self) -> Vec<VideoTrackPtr> ⓘ
pub fn find_audio_track(&self, track_id: String) -> SharedPtr<AudioTrack>
pub fn find_video_track(&self, track_id: String) -> SharedPtr<VideoTrack>
pub fn add_track(&self, audio_track: SharedPtr<MediaStreamTrack>) -> bool
pub fn remove_track(&self, audio_track: SharedPtr<MediaStreamTrack>) -> bool
Trait Implementations§
Source§impl ExternType for MediaStream
impl ExternType for MediaStream
impl Send for MediaStream
impl Sync for MediaStream
Auto Trait Implementations§
impl !Freeze for MediaStream
impl RefUnwindSafe 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