admin管理员组文章数量:1122832
I am using the SoundCloud widget in this game:
I haven't been able to make it work properly on Apple products, especially on iPhones. SC.Widget.play() has a delay of a few hundred milliseconds, which in the context of this game is fatal. Strangely, the SC.Widget.Events.PLAY event fires at the expected time, it's just the sound that starts late. This happens with either Safari or Chrome on iPhone.
I'm encountering a similar issue with Safari on Macbook, with a slightly smaller delay. Chrome and Firefox on a Macbook work fine with no noticeable lag. Chrome on Android also works fine.
To recap:
iOS: About a 500ms delay between the PLAY event and the sound, with any browser
Safari on Mac: about 300ms delay
Other browsers on Mac: no delay
Chrome on Android: no delay
I noticed the delay is present in other applications using the widget, like the Heardle family of games, only for them it's not as critical.
Any suggestions for remedies?
I tried to minimize the number of play() calls and the stuff that happens in the PLAY event listener, but it doesn't seem to matter.
本文标签: javascriptSoundcloud API delay in audio playing on iPhoneStack Overflow
版权声明:本文标题:javascript - Soundcloud API: delay in audio playing on iPhone - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736280726a1926091.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论