Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to balance audio in html5

is it possible to manage audio channels balance in html5 using Javascript?

<audio id="audio_left" preload="auto">
    <source src="audio/audio_left.ogg" type="audio/ogg"></source>
    <source src="audio/audio_left.mp3" type="audio/mp3"></source>
</audio>
like image 640
Mike Avatar asked May 08 '12 12:05

Mike


1 Answers

At the moment, no, as the Media API only provides high-level access to media files. There are a number of other APIs being developed, such as Mozilla's Audio Data API which provides more low-level stuff, but even that currently doesn't seem to support what you want. The Web Audio API provides a lot more, but again is still being developed.

like image 174
Ian Devlin Avatar answered Sep 30 '22 05:09

Ian Devlin