sknob’s fediblog

coding

#blogpost #music #coding in #english

One of the most annoying things about my music website, going back to the previous major incarnation and which carried over into this one, is that if you want to see the lyrics to a song (or the liner notes, or the links to share and download), well, you first have to start listening to a song. Only then are the lyrics displayed.

Read more...

#blogpost #music #coding in #english

In the first post in this series, I explained why I used PHP to generate the playlist of my new hand-crafted music site from a large-ish XML file, instead of doing it locally like I used to (damn you Chrome and Firefox for dropping XSLT support!)

Thing is, depending on the speed of your device and your internet connection, it takes a few short seconds for PHP to do it’s thing on the server, before sending the result in one go to your browser.

And this slight delay has been nagging at me since day one.

Read more...

#blogpost #music #coding in #english

So, thanks to @limebar@mastodon.social and @scy@chaos.social who implemented this feature for TIBR and TIBtv, I discovered how to send metadata to the system media player when you play my music on my site (using the Media Session API).

What this means is that you can now see the title, artist and artwork in your system player when you play a song on sknob.fr/music.

It could have ended there, but that’s when things got out of hand...

Read more...

#blogpost #music #coding in #english

When you can’t choose between two options, choose both?

Read more...

#blogpost #music #coding in #english

I didn’t see that one coming...

Read more...

#blogpost #music #coding in #english

Introducing... Radio sknob!

Read more...

#blogpost #music #coding in #english

Note: These #coding posts are really notes to my future self. Do feel free to ignore them.

So, it seems I like to do the opposite of what you’re supposed to do...

Read more...

#blogpost #music #coding in #english

Before anything else, I moved the project to Git, and created a (private) repo on Codeberg. I think I’m finally getting the hang of it.

Read more...

#blogpost #music #coding

WARNING: Long geeky post. Proceed with caution.

Long story short, the code underlying my music site was nearly 15 years old, and woefully obsolete.

I'd only been meaning to update it for about a decade...

Read more...