Change left/right balance on playing audio in javascript

html, html5-audio, javascript

Solution

As of 2021, this is possible using the Web Audio API. See this answer for more info.

Original answer:

Currently, this is not supported.

You can check the w3c spec for supported properties and methods. Note that browsers often provide more / less or different things. But in this case: no browser supports audio balance changes.

http://dev.w3.org/html5/spec/Overview.html#audio

Problem

I know the html5 audio stuff is all very new, but is there a way to change the left/right balance on a sound? Something like this: ``` var snd = new Audio("test.mp3"); snd.balance = -1; // only left snd.play(); ```

Original source

Related problems