createMediaStreamTrackSource abstract method

MediaStreamTrackAudioSourceNode createMediaStreamTrackSource(
  1. MediaStreamTrack mediaStreamTrack
)

The createMediaStreamTrackSource() method of the AudioContext creates and returns a MediaStreamTrackAudioSourceNode which represents an audio source whose data comes from the specified MediaStreamTrack.

This differs from AudioContext.createMediaStreamSource, which creates a MediaStreamAudioSourceNode whose audio comes from the audio track in a specified MediaStream whose MediaStreamTrack.id is first, lexicographically (alphabetically).

Implementation

MediaStreamTrackAudioSourceNode createMediaStreamTrackSource(
    MediaStreamTrack mediaStreamTrack);