undiluted music

a website that gives users access to stream and download songs.

undiluted music landing page screenshot

project purpose

A little backstory before I proceed.

In my country, Nigeria, there are websites that provide both local and international music for users to stream and download. Now these websites have a couple of defaults.

First of all, they are not quite user-friendly, let alone accessible.

Secondly, the webmasters of these sites ensure they tag the audio files' album covers and metadata with images and text advertising the websites.

Finally, more often than not, still on the topic of advertising, these webmasters add voiceovers of their URLs to the audio files. For example, if Google were one of these sites, while listening to a song, you'll hear something like "Get more music at google.com" or "It's another hit jam from google.com".

To me, this method of advertising was a form of copyright infringement. Consequently, I came up with a project idea to build a website for music streaming and download but with the actual album covers and metadata on the audio files as released by the artistes.

Months later, I read an article that explained that even this project was a form of copyright infringement. Therefore, I had to discontinue the project development.

tech stack

undiluted music artistes page screenshot

I started out the development with HTML, CSS, and Vanilla JavaScript.

When I needed to start working with a database, I started working with Node, express, mongodb, and Pug (I replaced all the HTML files with their Pug equivalents).

challenges

Being that this was my first-ever project, the only challenge I had was... everything. From implementing what I had in my wireframes to making a button look the way I pictured it in my head — everything seemed to be difficult.

Eventually, with the help of documentation and technical articles, I started to actually make progess.

However, the major challenge I had was building a cross-browser compatible audio player. I wanted my audio player to have the same look and functionality across browsers. Therefore, using the default audio player wasn't an option.

I solved this challenge by creating an audio player from scratch in a different repository. I used the HTMLAudioElement API for the entire functionality of the player and a Lottie animated icon from Icons8 for the play / pause transition.

undiluted music mi abaga page screenshot

lessons

undiluted music rendezvous page screenshot

Among the numerous things I learned while developing undiluted music, there were two major ones.

I learnt how to utilize the HTMLAudioElement API to build a music player. Play, pause, seek, volume control — I learnt all that while developing this project. Shortly after, I wrote an article on how to go about it.

I also figured out how to implement the Media Session API. The API provides an interface that gives users access to control media playback outside the browser tab where the media is playing. On mobile, this will be in the notification area while on desktop, it can be found on media hubs. I wrote on it here.

check it out

codebase repository

live