Skip to content

ndlopez/web_player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Player main page

live demo

new design

This is a web player to stream music from different stations (currently 26). Among them, LaPaz.fm, 181.fm (Awesome80s,90s Alternative, The Buzz), 113.fm ClassicOne, wdr, and News Radio x3.
It auto updates the id3-tag every 3min50s, due to that some streams might not match current playing song. Also not all the 26 streams have id3-tags, currently 12 are supported.

player 2.

Second player without auto-update function, once the user changes station it updates the id3-tag.

The Strumbellas - Spirits

I Don't Wanna Know If You Are Lonely - Husker Du

FM La Paz click here

Display and store in a playlist on the same page current song and the previously listened songs.
The URL has some security issues (expired SSL certificate) but JavaScript's fetch does not seem to care and gets data without problems. I cannot say the same with C#'s json lib.

About the expired certificate:
The URL I am using is hosted somewhere on the west (where the Sun sets), where I am the Sun is rising, there's a UTC+9 hour difference. The URL's certificate is renewed every day at midnight, so by the time I am fetching data it already expired. Perhaps if the URL's server would be connected to some CloudFlare service, this issue might not matter.

small issue
Update time is set to 3min40s (assumed average length of a song). Because of this sometimes a song might me missed and not included in the Playlist, in such case the user can update the list by clicking the button.

By clicking on the cloud icon, it is possible to download the playlist in JSON format, obviously from the moment the page was opened.

Unrelated?

Resize images using imageMagick (on Debian)

$ mogrify -resize 256x256 rfi_logo.png

$ mogrify -resize 50% rfi_logo.png

$ mogrify -format jpg *.png

more info here

To create some wavy path in CSS3 and SVG