Media.Stream
Media streams.
module Constraints : sig ... end
Media stream constraints.
The type for MediaStream
objects.
val create : unit -> t
create ()
is a stream without tracks.
val as_target : t -> Brr.Ev.target
as_target s
is s
as an event target.
id s
is a unique identifier for s
.
get_audio_tracks s
is the list of audio tracks of s
.
get_video_tracks s
is the list of video tracks of s
.
get_track_by_id s id
finds the track identified by id
(if any).
add_track s t
adds track t
so s
. If t
was already in s
nothing happens.
remove_track s t
removes track t
from s
. If t
was not in s
nothing happens.
clone s
clones the tracks of s
and s
itself. It has the same parameters except for id
.
module Ev : sig ... end
Stream events