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

Unable to use Audio Context because it's being blocked. #4681

Open
ghost opened this issue Jun 2, 2019 · 4 comments
Open

Unable to use Audio Context because it's being blocked. #4681

ghost opened this issue Jun 2, 2019 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 2, 2019

Description

Audio Context not working when not being used for fingerprinting.

Steps to Reproduce

Use audio context.

example, per @davidmurdoch (taken from post below)

const ctx = new AudioContext();
const audioSrc = ctx.createMediaElementSource(document.getElementById('a-video-element'));
const analyser = ctx.createAnalyser();
const frequencyData = new Uint8Array(analyser.frequencyBinCount);
audioSrc.connect(analyser);
audioSrc.connect(ctx.destination);
analyser.getByteFrequencyData(frequencyData); // blocked

Actual result:

Visualization doesn't show up as audio context is being blocked.

Expected result:

Visualization shows up.

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

Brave: 0.64.77 Chromium: 74.0.3729.169 (Official Build) (64-bit)
Revision: 78e4f8db3ce38f6c26cf56eed7ae9b331fc67ada-refs/branch-heads/3729@{#1013}
OS: Windows 10 OS Build 17134.765

@ghost ghost changed the title I am unable to use Audio Context but it's being blocked. I am unable to use Audio Context because it's being blocked. Jun 2, 2019
@ghost ghost changed the title I am unable to use Audio Context because it's being blocked. Unable to use Audio Context because it's being blocked. Jun 3, 2019
@rebron
Copy link
Collaborator

rebron commented Jun 21, 2019

@coolmax10 We need more info on this issue and some reproducible steps.

@bsclifton
Copy link
Member

Closing as there are not steps and OP account has been deleted

@davidmurdoch
Copy link

davidmurdoch commented Oct 2, 2019

Here is a reproduction:

const ctx = new AudioContext();
const audioSrc = ctx.createMediaElementSource(document.getElementById('a-video-element'));
const analyser = ctx.createAnalyser();
const frequencyData = new Uint8Array(analyser.frequencyBinCount);
audioSrc.connect(analyser);
audioSrc.connect(ctx.destination);
analyser.getByteFrequencyData(frequencyData); // blocked

@bsclifton
Copy link
Member

Thanks for the steps, @davidmurdoch - I'll re-open here and edit the original comment above with your steps

@bsclifton bsclifton reopened this Nov 4, 2019
@bsclifton bsclifton added the audio label Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants