HTML5 Audio tag on Safari has a delay

后端 未结 9 626
無奈伤痛
無奈伤痛 2020-11-27 18:50

I\'m trying to accomplish a simple doodle-like behaviour, where a mp3/ogg sound rings on click, using the html tag. It is supposed to work under Firefox, Safari and Safari

9条回答
  •  独厮守ぢ
    2020-11-27 19:24

    I just answered another iOS/ question a few minutes ago. Seems to apply here as well:

    Preloading and on iOS devices is disabled to save bandwidth.

    In Safari on iOS (for all devices, including iPad), where the user may be on a cellular network and be charged per data unit, preload and autoplay are disabled. No data is loaded until the user initiates it.

    Source: Safari Developer Library

提交回复
热议问题