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?
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With