Module Stream.ConstraintsSource

Media stream constraints.

Sourcetype t

The type for MediaStreamConstraints objects.

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

The type for specifying track constraints.

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

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

Sourceval av : unit -> t

av says `Yes None to audio and video.