Remix.run Logo
quag 3 hours ago

iOS seems to mute the web audio apis when the phone is in silent mode (the switch on the side of the phone). If you toggle it on, then this site (and many others) play sound.

I have no idea why it works this way and it’s frequently annoying.

bigstrat2003 3 hours ago | parent | next [-]

Why wouldn't it work that way? Whether it's a hardware toggle like on iPhone or a software one like in Android, I want silent to mean silent. Not "silent but if a web page decides to play sound it can".

tialaramex 3 hours ago | parent | next [-]

There is some amount of the "Focus follows brain" problem here. What we want is for things to do what we meant, all the time, and in this case it's very possible that the visitor wanted to hear the music. It is not practical (without yet to invented technology) for that to work so we have a substitute - there's a switch and you should remember to press it.

"Focus follows brain" is how everybody wants windowed UIs to work. When I type on the keyboard the letters go where my brain thought they should go - duh, but of course that's unimplementable, so the Windows UI provides "Click to focus" - if I click on a Window the typing goes there until I click another window, meanwhile some Unix systems do "Focus follows Mouse" - if I move the mouse over a Window then my typing goes there even without clicking. Neither is what we actually wanted, both are trying to approximate.

dylan604 2 hours ago | parent [-]

Many many times I have music playing in the background from another app while browsing. So no, there’s no way to focus follow brain. There’s just no way for this device to know what I want unless I tell it

probabletrain 2 hours ago | parent | prev | next [-]

media sound is generally unaffected by the silent mode toggle, which apple suggests is only for notifications. but the toggle inconsistently affects media, muting some things but not others. it's incredibly frustrating. android has much better audio controls for notifications, media, alarms, and vibrate.

LordDragonfang 2 hours ago | parent | prev | next [-]

Because silent mode is for the notifications. App volume has its own dedicated buttons.

relaxing 3 hours ago | parent | prev [-]

The phone will still make sound if I launch a music app, why is a web page different?

And I hate web pages making sound! But the UX is confusing, and it’s changed over the years, seemingly without reason.

Iphones now have a software toggle as well, which may have coincided with the shift from “mute ringer” to “mute (almost) everything” that came with the multifunction button.

dylan604 2 hours ago | parent | prev [-]

How old of an iPhone does one need to have that switch? My 6S+ has one, but a 15 doesn’t.