An application with JS and HTML5 audio streaming.
Application can be used to stream any kind of audio file or bunch of them. In order to do so follow these steps -
- Navigate to
js/tracks.js
- Add
name
,url
andimg
of track that needs to be added. Format will be like -
{ "name": "Just Awake - Hunter x Hunter", "url": "https://host.site/audio_file.mp3", "img": "https://host.site/background_image.jpg" }
- Append this in
tracks
array.
var tracks = [ ..., { "name": "Just Awake - Hunter x Hunter", "url": "https://host.site/audio_file.mp3", "img": "https://host.site/background_image.jpg" } ];
- Good to go.
- Tracks are randomly shuffled at the beginning and thats the order in which they play.
- Last track in
tracks.js
is an non-working dummy entry to check for error prompt.