Can you detect if volume can be set with javascript? Like for example to see if you are on ios browser (but not detecting ios just if volume can be set). I tried something like this but it always returns true.
If I am on ios I want to hide my volume button in the player. I know I can detect ios, but I wanted to go step further and possibly detect if volume can be changed.
var audio = document.createElement("audio");
if(!audio) return false;
audio.volume = 0;
return audio.volume == 0 ? true : false;