Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioContextOptions sinkId should only be allowed in a secure context #2598

Open
mjwilson-google opened this issue Aug 21, 2024 · 0 comments

Comments

@mjwilson-google
Copy link
Contributor

AudioContext.setSinkId is only allowed in secure contexts.

However, a sink ID may also be passed into the AudioContext contructor, and the constructor may be called from an insecure context.

We don't specify what happens if this occurs in an insecure context. I think it should probably throw a NotAllowedError.

We can specify this right below the "If sinkId is specified, [...]" section of the AudioContext constructor steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant