createMediaStreamDestination abstract method
The createMediaStreamDestination()
method of the AudioContext
is used to create a new MediaStreamAudioDestinationNode object
associated with a
WebRTC
MediaStream representing an audio stream, which may be stored in a local
file or sent to another computer.
The MediaStream is created when the node is created and is accessible
via the MediaStreamAudioDestinationNode's stream
attribute. This
stream can be used in a similar way as a MediaStream
obtained via
navigator.getUserMedia
— it can, for example, be sent to a remote peer
using the addStream()
method of RTCPeerConnection
.
For more details about media stream destination nodes, check out the MediaStreamAudioDestinationNode reference page.
Implementation
MediaStreamAudioDestinationNode createMediaStreamDestination();