the_moon
the_moon

Reputation: 563

Is there a way to lock volume change using HTML 5 / JS?

We are developing an audio app in HTML 5 and I would like to avoid the user to change the volume using the buttons in their iPhones/iPods/iPads/Android Phone. For example, if the try to increase the volume, the app does not change its volume. Our app is in iOS today, but we are migrating to HTML 5 and we would like to support that feature in our next app.

Upvotes: 0

Views: 379

Answers (1)

cwilso
cwilso

Reputation: 13908

No, there's no way to do this. The pipeline of audio has too many places where gain could be dropped, up to and including an analog resistor in the headphones/speaker themselves.

Upvotes: 2

Related Questions