Audio player for the site, no plug-ins are used, compiled in pure JS, CSS and HTML ... Compiled by yourself ... Audio files are loaded from the server. Nodejs server The player is three in one ... AUDIO, VIDEO AND RADIO ... Here in the course of the assembly an idea came up, to make the sound balance, to be honest, I did not see anywhere else besides desktop applications. Maybe there is an opportunity to implement this, if not on the client side, or maybe on a nodejs server? I don’t ask you to write code for me, but if this is really done, just tell me in which direction to move ... And what to read ... Unless of course it is possible to implement it! Thanks in advance.

PS I am considering even an experimental API ...

  • Curiosity is not a vice, but a way of life))) it is extremely interesting, for which question is a minus? what exactly is wrong with the question? not clear, not interesting or not right ... - Air
  • You can do the balance yourself - decode it first in PCM, multiply the samples of the channels by the factor, and reproduce. - Vladimir Gamalyan
  • Vladimir Gamalyan, I was curious, but to be honest, I didn’t understand anything, I can tell more in detail, because JS gives me difficulty, this granite is still gnawing ... - Air

1 answer 1

At the moment there is no such option in the html5 specification. Perhaps there are some experimental APIs in some browsers, but they have not yet been brought to mind, so I think that with standard methods the balance of sound cannot be done.

But it seems that with https://github.com/goldfire/howler.js you can do it all the same