Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MediaStreamAudioSourceNode constructor has weird check for AudioContext #2149

@bzbarsky

Description

@bzbarsky

https://webaudio.github.io/web-audio-api/#dom-mediastreamaudiosourcenode-mediastreamaudiosourcenode step 1 says:

If context is not an AudioContext, throw an NotSupportedError exception and abort these steps.

but the arg is declared as AudioContext in the IDL, so how could it not be an AudioContext? Is it possible this dates back to before BaseAudioContext existed?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions