HTMLAudioElement won't turn off normally in Safari on iPod Touch (5.0.1)

Problem: I am having problems switching a muted property to an html5 tag.

Platform: Only on iPod Touch ( Safari ) [ iOS 5.0.1]. Works great in Chrome.

// This code resides in my click binding.
var audios = document.getElementsByTagName('audio')[0];
console.log(audios.muted); // returns false by default
if(audios.muted == true){
  audios.muted = false;
}
else{
  audios.muted = true;
}

In chrome, the .log console will switch true / false, however on iPod it will always remain false.

+5
source share
1 answer

According to docs :

On iOS devices, the sound level is always under the physical control of users. The volume property is not configurable in JavaScript. Reading the volume property always returns 1.

, . , iPhone Safaris ( , , Safaris), iPod .

, - .

0

All Articles