Skip to content

MediaStreamAudioSourceNode #669

@brettdavidbowles

Description

@brettdavidbowles

Feature Request

Like with the Web Audio API, would like to be able to connect to the mic using createMediaStreamSource, thus allowing the source to take an analyser from the audioContext as a parameter. The current Web Audio Api usage that I'm hoping you can replicate is roughly like this:

const analyser = audioContext.createAnalyser()
navigator.mediaDevices.getUserMedia(constraints)
        .then(
          function (stream) {
            source = audioContext.createMediaStreamSource(stream);
            source.connect(analyser);
          })

Obviously the mediaDevices bit here is web specific and the native implementation would use the current microphone functionality.

This would be continuing to replicate the Web Audio API, so apologies if it's already on the roadmap. Thanks for everything, incredible work so far!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions