Module Node.Media_stream_destination

Media stream destination nodes.

type opts
val opts : ?channel_count:int -> ?channel_count_mode:Channel_count_mode.t -> ?channel_interpretation:Channel_interpretation.t -> unit -> opts

opts () are media stream destination options with given parameters.

type t

The type for MediaStreamDestinationNode objects.

val create : ?opts:opts -> context -> t

create ~opts c creates a media stream destination node.

val as_node : t -> node

as_node n is n as an audio node.

val stream : t -> Brr_io.Media.Stream.t

stream n is the stream of n.