W3cubDocs

/Haxe JavaScript

MediaStreamConstraints

package js.html

Available on js

The MediaStreamConstraints dictionary is used when calling getUserMedia() to specify what kinds of tracks should be included in the returned MediaStream, and, optionally, to establish constraints for those tracks' settings.

Documentation MediaStreamConstraints by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Fields

optionalvideo:Null<EitherType<Bool, MediaTrackConstraints>>

Either a Boolean (which indicates whether or not a video track is requested) or a MediaTrackConstraints object providing the constraints which must be met by the video track included in the returned MediaStream. If constraints are specified, a video track is inherently requested.

optionalpicture:Null<Bool>

optionalpeerIdentity:Null<String>

A DOMString identifying the peer who has sole access to the stream. If this property is specified, only the indicated peer can receive and use the stream. Streams isolated in this way can only be displayed in a media element (audio or video) where the content is protected just as if CORS cross-origin rules were in effect. When a peer identity is set, MediaStreamTracks from that peer have their MediaStreamTrack.isolated flag set to true.

optionalfake:Null<Bool>

optionalaudio:Null<EitherType<Bool, MediaTrackConstraints>>

Either a Boolean (which indicates whether or not an audio track is requested) or a MediaTrackConstraints object providing the constraints which must be met by the audio track included in the returned MediaStream. If constraints are specified, an audio track is inherently requested.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/MediaStreamConstraints.html