From HTML5 audio player repo, with AngularJS.. Modified to load and stream songs from IPFS.
To use the site as a music streamer, simply git clone and open index.html.
Alternatively, you can view the site as it's hosted on IPFS here.
File uploading is still a work in progress.
Tracks are currently manually uploaded to IPFS and added as entries in songs.json.
Tracks are streamed from IPFS using their hash as referenced in songs.json which is uploaded to a CDN currently.
The format for a streamable song entry stored on IPFS is as follows:
{
"name":"<Song Name>",
"artist":"<Artist>",
"src":"<Hash of Song>"
},Simply ipfs add your song, and add its entry to songs.json to play it.
- Uploading functionality
- Immediate update of streamable songs after
ipfs add-ing a new upload through website. - Possibly Implementing IPDB - JSON Database is hacky and vulnerable
This repo is under the MPL-2.0 license. However, please noticed that the license does NOT include audio files. You should handle audio files' copyright issue by yourself.