Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 779
avihil Avatar asked Sep 23 '12 15:09

avihil


1 Answers

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.

like image 118
patotoma Avatar answered Oct 02 '22 10:10

patotoma