avihil
avihil

Reputation: 167

HTML5 iOS volumechange event not fired

I'm trying to capture volumechange event on the iPad, but it isn't being fired though other events I bind are; Such as play, pause, webkitbegin and endfullscreen, etc.

The volume value is also fixed at 1. When I'm using Google Chrome on Linux, I can see the volumechange event, with the correct volume updated.

Apple declares that the volumechange event can be used. How can I get it to work?

Upvotes: 7

Views: 843

Answers (1)

patotoma
patotoma

Reputation: 1119

From official Apple Developer documentation:

On iOS devices, the audio level is always under the user’s physical control. The volume property is not settable in JavaScript. Reading the volume property always returns 1.

In other words, we can't control the volume on iOS in any way.

Upvotes: 4

Related Questions