Is there any possibility to control HTML5 audio volume on IOS?

后端 未结 3 1506
滥情空心
滥情空心 2020-12-18 07:10

I use the html5 audio library Buzz to add sounds to a browser game. There is a toggle button to mute and unmute sound, which works good on desktop and Android devices. Unfor

3条回答
  •  借酒劲吻你
    2020-12-18 07:35

    I always thought dynamic volume control and certainly crossfading, as we all know, is impossible. Apple has dictated that it be so. Except.... apparently the folk at Kodo Games (specifically Nicola Hibbert?) have pulled it off and made the code available to anyone. I just checked it on iOS 8. Fading and crossfading seem to work!

    Check it out (new site that works): Getting Started with Web Audio API

提交回复
热议问题