No sound on iOS 6 Web Audio API

后端 未结 12 1380
灰色年华
灰色年华 2020-12-02 09:41

I was really excited to see iOS 6 supports the Web Audio API, since we make HTML5 games. However, I cannot get iOS 6 to play any sound at all using the Web Audio API with e

12条回答
  •  旧时难觅i
    2020-12-02 10:46

    Update: iOS still requires a user input to play sound (No sound on iOS 6 Web Audio API)

    I was previously stuck with web audio on iOS web. And to make things worse, it needs to work on android and other desktop platform. This post is one of those posts that I read and found no immediate answers.

    Until I found howler.js.

    This is the solution for cross-platform web audio solution:

    
    
    
    

提交回复
热议问题