# 安全媒体音频在 Safari 上首次点击时无法播放

**URL:** <https://meta.discourse.org/t/secure-media-audio-does-not-play-on-safari-on-the-first-click/156124>\
**Category:** Product Support\
**Created:** [2020 年6 月 27 日 19:28 UTC](https://meta.discourse.org/t/secure-media-audio-does-not-play-on-safari-on-the-first-click/156124 "2020-06-27T19:28:42Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

作者： ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
发布日期： [2020 年7 月 13 日 17:47 UTC](https://meta.discourse.org/t/secure-media-audio-does-not-play-on-safari-on-the-first-click/156124/14 "2020-07-13T17:47:46Z")

</div>

> [@martin](#):
>
> 我发现，在 iOS Safari 中，将 `preload="metadata"` 设置为该值可以让音频在第一次点击时播放；而如果设置为 `preload="none"`，则需要进行“播放 \> 暂停 \> 播放”的一系列操作才能真正播放音频。

那么，是否只在 Safari（包括 iOS 和桌面版，我在桌面版上也能复现此问题）中使用 `preload="metadata"`，而在其他浏览器中使用 `preload="none"` 呢？

（另外，这在我测试的 Android PWA 上似乎并未发生。）

---

_[View the full topic](https://meta.discourse.org/t/secure-media-audio-does-not-play-on-safari-on-the-first-click/156124)._
