Type Alias MediaStreamConstraints

Source
pub type MediaStreamConstraints = GenericMediaStreamConstraints<MediaTrackConstraint>;
Expand description

The constraints for a MediaStream object.

§W3C Spec Compliance

Corresponds to MediaStreamConstraints from the W3C “Media Capture and Streams” spec.

Aliased Type§

pub struct MediaStreamConstraints {
    pub audio: GenericBoolOrMediaTrackConstraints<MediaTrackConstraint>,
    pub video: GenericBoolOrMediaTrackConstraints<MediaTrackConstraint>,
}

Fields§

§audio: GenericBoolOrMediaTrackConstraints<MediaTrackConstraint>§video: GenericBoolOrMediaTrackConstraints<MediaTrackConstraint>