DEV Community

Mohamad Harith
Mohamad Harith

Posted on

Random Youtube Song Player

Random Youtube Song Player

(https://rahmanify.harith.xyz)

Hi,

I am just getting started with web development and have built this fun project. It is a random song generator from a list of albums of a well known Indian composer, A.R. Rahman.

I have used an API from https://musicbrainz.org to get the album database of the composer in JSON format. Then I randomly select a song from the list and pass it to the Youtube search API which will return a list of search results. However, I only return the top result which is always accurate.Then the web app redirects the page to youtube with the returned video ID. Finally, the web app is hosted on Firebase.

Limitations of this app:

  1. Couldn't filter the year of the album due to the limitations of the API.
  2. Doesn't work on Safari and Firefox yet.
  3. Youtube API only accepts around 200 requests per IP, I think.

Any form of suggestions on how I could improve this simple app is highly appreciated,
Thank you.

Top comments (0)