为什么html5< audio>不在Safari Web浏览器中工作?

发布于 2025-02-10 08:40:50 字数 447 浏览 1 评论 0原文

我已经在以下网站的背景中实现了HTML5音频: https://praxishelena.ch

当我打开网站或单击链接时,我可以听到音乐在我的Windows PC上以及使用Chrome的Android设备上,但在iPhone上使用Safari,而不是。 我正在实施音乐,使用以下内容:

<audio src="wp-content/uploads/foldername/filename.mp3" style="display: none;" autoplay loop />

我需要在背景中进行音乐,而无需控制,以停止,暂停和音量更改。 如何使其在野生动物园中工作?

最好的问候,

Darko

I had implemented the HTML5 audio in the background on the following web site:
https://praxishelena.ch

When I open the web site, or when I click on a link, I can hear music on my Windows PC, and on Android device using Chrome, but on IPhone using Safari, not.
I was implementing music, using the following:

<audio src="wp-content/uploads/foldername/filename.mp3" style="display: none;" autoplay loop />

I need music in background without controlls for stopping, pausing, and volume change.
How to enable this to work in Safari?

Best regards,

Darko

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

草莓味的萝莉 2025-02-17 08:40:50

某些HTML功能的工作方式有所不同,或者在某些浏览器的某些版本上不起作用。尝试检查它正在使用的版本。通常,Safari应支持MP3文件。它只不支持.ogg文件。

Certain HTML functions work differently or don't work on certain versions of certain browsers. Try checking what version it is using. Normally, Safari should support MP3 files. It only doesn't support .ogg files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文