为什么html5< audio>不在Safari Web浏览器中工作?
我已经在以下网站的背景中实现了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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
某些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.