CreateJS / SoundJS

A Javascript library for working with Audio. It provides a consistent API for loading and playing audio on different browsers and devices. Currently supports WebAudio, HTML5 Audio, Cordova / PhoneGap, and a Flash fallback.
http://createjs.com/
MIT License
4.42k stars 838 forks source link

SoundJS not stopping sounds on focus shift in iOS11 #279

Open magtastic opened 6 years ago

magtastic commented 6 years ago

Seems like in iOS11, the document has no webkitHidden variable or something.

This causes games in iPhones with iOS11 to keep playing sounds after the document is hidden and/or focus is shifted.

This was working fine in iOS10.

lannymcnie commented 6 years ago

Where is webkitHidden used? It is not in the SoundJS source. SoundJS does not handle focus events on iOS (or elsewhere) to stop audio.