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.
source
share