Howler.js: The playing title shows raw mp3 URL when the screen is locked in mobile webpage.

Created on 18 Dec 2017  路  1Comment  路  Source: goldfire/howler.js

Currently, the title on the lock screen of my web page on IPhone was the raw URL of the mp3. In html5, if we set the title of

Most helpful comment

@shawnhuang2015 I found myself here today for a project and dig a bit of hacking. Your theory was correct, by simply adding the line self._node.title = "CUSTOM TITLE";` beneath this line:

https://github.com/goldfire/howler.js/blob/master/src/howler.core.js#L2050

I was able to show a custom title on the lock screen. Nice one. I suspect since Howler doesn't support sound titles currently that this wouldn't abstract easily for multiple songs but it works well for my use case!

>All comments

@shawnhuang2015 I found myself here today for a project and dig a bit of hacking. Your theory was correct, by simply adding the line self._node.title = "CUSTOM TITLE";` beneath this line:

https://github.com/goldfire/howler.js/blob/master/src/howler.core.js#L2050

I was able to show a custom title on the lock screen. Nice one. I suspect since Howler doesn't support sound titles currently that this wouldn't abstract easily for multiple songs but it works well for my use case!

Was this page helpful?
0 / 5 - 0 ratings