pub trait MediaStreamMethods {
    // Required methods
    fn GetAudioTracks(&self) -> Vec<Root<Dom<MediaStreamTrack>>>;
    fn GetVideoTracks(&self) -> Vec<Root<Dom<MediaStreamTrack>>>;
    fn GetTracks(&self) -> Vec<Root<Dom<MediaStreamTrack>>>;
    fn GetTrackById(
        &self,
        trackId: DOMString,
    ) -> Option<Root<Dom<MediaStreamTrack>>>;
    fn AddTrack(&self, track: &MediaStreamTrack);
    fn RemoveTrack(&self, track: &MediaStreamTrack);
    fn Clone(&self, _can_gc: CanGc) -> Root<Dom<MediaStream>>;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
    ) -> Result<Root<Dom<MediaStream>>, Error>;
    fn Constructor_(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        stream: &MediaStream,
    ) -> Result<Root<Dom<MediaStream>>, Error>;
    fn Constructor__(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        tracks: Vec<Root<Dom<MediaStreamTrack>>>,
    ) -> Result<Root<Dom<MediaStream>>, Error>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§