Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change the iOS 8 lock screen audio label when playing from web?

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.

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

iPad lockscreen

like image 451
hampusohlsson Avatar asked Feb 03 '15 16:02

hampusohlsson


1 Answers

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>
like image 164
Corey Evans Avatar answered Oct 02 '22 23:10

Corey Evans