Giter Site home page Giter Site logo

jailsonsb2 / radioplayer-zenoradio Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 954 KB

HTML5 Internet Radio Web Player compatible with Zeno Radio and with PWA Support. Displays currently playing artists and songs, automatically fetches song covers via Deezer API.

Home Page: https://jailson.netlify.app/

CSS 15.97% HTML 14.57% JavaScript 69.47%
html5audio html5player icecast2 internet-radio-player radio radio-player shoutcast shoutcast-streaming zeno-radio pwa

radioplayer-zenoradio's Introduction

HTML5 Icecast/Shoutcast/Zeno Radio Full Page Radio Player with PWA Support

  • Current song
  • Historic of played songs ( added option to show or hide history song )
  • Cover art of the current song (Deezer API)
  • Lyrics of the current song (Vagalume API)
  • Responsive design
  • Now available as a Progressive Web App (PWA) for enhanced user experience!
  • Now available Azuracast support

Demo Screenshots

Demo Screenshot

Documentation.

Open The Script.js file and edit the lines Below.

// RADIO NAME
const RADIO_NAME = 'Your Radio Name';

// Change Stream URL Zeno Radio Here.
const URL_STREAMING = 'https://stream.zeno.fm/yn65fsaurfhvv';

// You can find the mount point in the Broadcast Settings.
// To generate the Zeno Radio API link from the mount point,
// exclude the '/source' part and append the remaining mount point to the base URL of the API.
// For example, if the mount point is 'yn65fsaurfhvv/source',
// the API link will be 'https://api.zeno.fm/mounts/metadata/subscribe/yn65fsaurfhvv'.

const API_URL = 'https://api.zeno.fm/mounts/metadata/subscribe/yn65fsaurfhvv'

// Variable to control history display: true = display / false = hides
let showHistory = true; 

Change Logo.

Open The img folder and add your logo named "cover.png"

Zeno Radio API Now Playing.

To generate the Zeno Radio API link from the mount point, exclude the '/source' part and append the remaining mount point to the base URL of the API. You can find the mount point in the Broadcast Settings. For example, if the mount point is 'yn65fsaurfhvv/source', the API link will be 'https://api.zeno.fm/mounts/metadata/subscribe/yn65fsaurfhvv'.

Demo Screenshot

Installation

Just put the files in your server or use Free Hosting

Free Hosting

Deploy with Vercel Deploy to Netlify

Progressive Web App (PWA) Support

Now you can install the Radio Player as a Progressive Web App (PWA) to your device for an enhanced experience! Simply visit the website on a supported browser and follow the prompts to install it.

Configuring Radio Name and Colors

To configure the name of your radio and the colors used in the Progressive Web App (PWA), you need to edit the manifest.json file:

  1. Open the manifest.json file in your project.
  2. Locate the "name" field and replace 'Your Radio Name' with the name of your radio.
  3. If desired, you can also customize the "background_color" and "theme_color" fields to match your radio's branding colors.

Here's an example:

{
  "name": "Your Radio Name",
  "short_name": "Radio Player",
  "start_url": "/index.html",
  "display": "standalone",
  "background_color": "#ffffff",  // Customize this color to match your branding
  "theme_color": "#ffffff",       // Customize this color to match your branding
  "icons": [
    {
      "src": "img/cover.png",
      "sizes": "192x192",
      "type": "image/png"
    }
  ]
}

Supported Hosting Types

  • Zeno Radio
  • Azuracast

Supported API/Data Sources

  • Deezer
  • Azuracast

Keyboard Controls

  • M - mute/unmute
  • P and space - play/pause
  • arrow up and arrow down - increase/decrease volume
  • 0 to 9 - volume percent

Feedback

If you have any feedback, please reach out to me at [email protected]

License

MIT

Credits

radioplayer-zenoradio's People

Contributors

jailsonsb2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

radioplayer-zenoradio's Issues

Supported API

Supported API/Data Sources

Apple Music / Itunes
Deezer
Spotify
Azuracast Now Playing API

Hello. Mention that it supports and but api.
Can you show me how it works in Azuracast Now Playing API
I tried but it doesn't play on Icecast.

Thank you in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.