remvze / moodist

🌲 Ambient sounds for focus and calm.
https://moodist.mvze.net
MIT License
828 stars 50 forks source link

AirPlay and iOS Playback support #4

Open ksbijvank opened 9 months ago

ksbijvank commented 9 months ago

Is that possible to implement playback on iOS devices and also to play to airplay devices.

crimsdings commented 9 months ago
remvze commented 9 months ago

Could you please share your iOS version? And is it just Safari, or do you have this problem on other browsers as well? I've checked it on three devices with iOS 16 and 17, and it works properly. Moodist uses Web Audio API (using Howler.js) for playing sounds, and its support was added in Safari on iOS 14.5, so that might be the problem. There is also a known issue with Howler.js where it doesn't play sounds when Silent Mode is on (goldfire/howler.js#1436).

optroodt commented 9 months ago

Could you please share your iOS version? And is it just Safari, or do you have this problem on other browsers as well? I've checked it on three devices with iOS 16 and 17, and it works properly. Moodist uses Web Audio API (using Howler.js) for playing sounds, and its support was added in Safari on iOS 14.5, so that might be the problem. There is also a known issue with Howler.js where it doesn't play sounds when Silent Mode is on (goldfire/howler.js#1436).

I'm not the person who opened this issue, but I did respond on Reddit with the same problem. 😄 I'm on iOS 17.2.1 (most recent) and it happens in both Safari and Chrome for me. But... I can confirm turning off silent mode (my phone is always on silent mode) does indeed solve the issue! Thanks for the reply!

ksbijvank commented 9 months ago

Could you please share your iOS version? And is it just Safari, or do you have this problem on other browsers as well? I've checked it on three devices with iOS 16 and 17, and it works properly. Moodist uses Web Audio API (using Howler.js) for playing sounds, and its support was added in Safari on iOS 14.5, so that might be the problem. There is also a known issue with Howler.js where it doesn't play sounds when Silent Mode is on (goldfire/howler.js#1436).

I'm not the person who opened this issue, but I did respond on Reddit with the same problem. 😄 I'm on iOS 17.2.1 (most recent) and it happens in both Safari and Chrome for me. But... I can confirm turning off silent mode (my phone is always on silent mode) does indeed solve the issue! Thanks for the reply!

Is have the same indeed. Allright, tested and working with the ringer on. How about AirPlay?

brentonmallen1 commented 4 months ago

+1 for no sound with the ringer off