Module Stream.Constraints

Media stream constraints.

type t

The type for MediaStreamConstraints objects.

type track = [
  1. | `No
  2. | `Yes of Constraints.t option

The type for specifying track constraints.

val v : ?audio:track -> ?video:track -> unit -> t

v ~audio ~video () are stream constraints with given arguments. If unspecified they default to `No.

val av : unit -> t

av says `Yes None to audio and video.