使用mp3元数据或HTML在iPhone锁定屏幕上显示图稿和曲目名称 [英] Use mp3 metadata or HTML to display artwork and track name on iPhone lock screen
问题描述
在使用safari/chrome等工具锁定iphone时,当播放mp3文件时,它会显示空白图稿和指向mp3文件位置的硬链接,这看起来很难看.我可以添加一些alt标签/元数据来显示插图和曲目标题吗?
When you lock an iphone after using safari / chrome etc., when an mp3 file is playing, it displays blank artwork and a hard link to the mp3 file location, which looks quite ugly. Is there some alt tag/ meta data I can include to show artwork and the track title on this?
推荐答案
您可以通过在<audio>
元素上设置title
属性来添加将在iOS锁屏上显示的字符串.一切都在歌曲"行上,因此它看起来并不完全是原生的,但可以使您理解.
You can add a string that will be shown on the iOS lockscreen by setting a title
attribute on your <audio>
element. It's all on the "song" line, so it doesn't look totally native, but it gets your point across.
但是,我不知道有什么办法哄骗iOS来显示来自浏览器的媒体专辑艺术.
I don't, however, know of any way to coax iOS into displaying album art of media coming from a browser.
这篇关于使用mp3元数据或HTML在iPhone锁定屏幕上显示图稿和曲目名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!