forked from gsavio/player-shoutcast-html5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
42 lines (34 loc) · 1.37 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
|--------------------------------------------------------------------------
| Configuration
|--------------------------------------------------------------------------
|
| To configure your streaming, define the name of your radio, url and
| type of your streaming below.
|
*/
var settings = {
'radio_name': 'Brasil Hits',
// URL of streaming without / on the final, eg: http://streaming.com:8080
'url_streaming': 'https://streaming.brasilhits.com/acc',
// When choosing icecast, make sure the file 'player.log' in the document root is writeable.
// Choose between 'shoutcast' or 'icecast'
'streaming_type': 'icecast',
// Visit https://api.vagalume.com.br/docs/ to get your API key
'api_key': '18fe07917957c289983464588aabddfb',
// Set to true to get the last songs played
'historic': true,
// Only for SHOUTCast!
// Set to true to show the next song to be played.
// Make sure your streaming show this information!
'next_song': false,
// Path to default cover art when none are found
'default_cover_art': 'img/bg-capa.jpg',
};
const RADIO_NAME = settings.radio_name;
const URL_STREAMING = settings.url_streaming;
const STREAMING_TYPE = settings.streaming_type;
const API_KEY = settings.api_key;
const HISTORIC = settings.historic;
const NEXT_SONG = settings.next_song;
const DEFAULT_COVER_ART = settings.default_cover_art;