Closed Bug 1108022 Opened 10 years ago Closed 10 years ago

Web Audio API doesn't work with local files

Categories

(Core :: Web Audio, defect)

33 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: koko.fr.mu, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 Build ID: 20141013200324 Steps to reproduce: Audio won't play when using Web audio API with local html page and AudioContext.createMediaElementSource. I tried with this example : https://github.com/mdn/media-source-buffer. It works online but it doesn't work in local...
Component: Untriaged → Web Apps
Component: Web Apps → Untriaged
Component: Untriaged → Web Audio
Product: Firefox → Core
This is what should happen. We respect cross-origin policy, and so if you're piping an <audio> to an AudioContext and the <audio> has a file:/// URL, it's not the same origin, and silence is output. This is specified at [0]. Chrome has a bug where they don't respect this. [0]: http://webaudio.github.io/web-audio-api/#security-with-mediaelementaudiosourcenode-and-cross-origin-resources
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.