从网上播放时是否可以更改iOS 8锁屏音频标签? [英] Is it possible to change the iOS 8 lock screen audio label when playing from web?

查看:95
本文介绍了从网上播放时是否可以更改iOS 8锁屏音频标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个播放音频的HTML5应用。但是,在锁定屏幕模式下在iOS8 iPad / iPhone上播放音频时,会显示音频的URL(参见下图)。如果可以将该文本更改为更具描述性的内容,例如轨道的艺术家/标题,那将是很棒的。逻辑解决方案是从标题属性或某些特定于苹果的元标记中读取,但我尝试的任何内容似乎都无效。

I am building an HTML5 app that plays audio. However, when playing audio on iOS8 iPad/iPhone in lock screen mode, the URL of the audio is showing (see pic below). It would be great if it was possible to change that text to something more describing, such as the Artist/Title of the track. The logical solution would be to read from a title attribute or some apple-specific meta tag, but nothing I have tried seems to work.

有没有人知道文本是否可以用html / javascript更改?

Does anyone know if the text can be altered with html/javascript?

推荐答案

您可以给音频和视频标签<$ c HTML5中的$ c> title 属性。这将显示在正在播放的信息中心中。我还没有找到任何其他使用的属性。由于您正在构建一个Web应用程序,因此您可以做的事情有限。

You can give an audio and video tag a title attribute in HTML5. This is displayed in now-playing info center. I haven't found any other attributes that are used. Since you are building a web app, you are limited in what you can do.

<audio src="" type="" controls title=""></audio>
<video src="" type="" controls webkit-playsinline x-webkit-airplay="" poster="" title=""></video>

这篇关于从网上播放时是否可以更改iOS 8锁屏音频标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆