Azuracast PWA Player
Azuracast PWA Player build with vue.
Install AzuraCast Player
You can play locally with the player. Todo so you can clone the project then install all the dependencies .
git clone https://github.com/oussamatn/radio-player.git
cd radio-player
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Player customization
Stations
To add you stations logo, you need to drop your images inside the folder public/images/stations
and change the file name the corresponded station shortcode
Example
We are going to add this station logo.
First, we check station shortcode
using the API
This station shortcode
is : radio_test_1.
radio-player/
|-public
| `-img
| | `-stations
| | |- radio_test_1.png
| | |- ...
Deployment
You can deploy the player in the same server as AzuraCast Core and serve the player trough Nginx-Reverse proxy.
First you need to create a new domain or sub-domain name and configure it as you did with Azuracast domain. ( same ip address)
Docker Compose
Go to your Azuracast installation folder then clone the project
config.json
Update you API URL and radio name inside the configuration file : config.json ( file inside public/assets
)
.env
docker-compose.override.yml
On your server side go to AzuraCast directory then run :