captbaritone / webamp

Winamp 2 reimplemented for the browser
https://webamp.org
MIT License
10.01k stars 662 forks source link

Free service to load mp3 files for webamp #1151

Closed 9z25 closed 2 years ago

9z25 commented 2 years ago

Hi,

I'm looking for a low cost solution to hosting the mp3 files that will be played by my webamp app. It looks like if I set up a server I can play files, but I want my web server to not host any audio files due to bandwidth. It doesn't look like Google Drive links or anonfiles links take, unless I'm doing something wrong?

Is this app supposed to work with google drive links? Because they work fine for me when setting up other audio players. I'm not sure why I'm having difficulty with this one.

Thank you, 9z25

9z25 commented 2 years ago

I get the error MEDIA_ERR_SRC_NOT_SUPPORTED

captbaritone commented 2 years ago

The solution I'm using is to upload the files into a GitHub repository and then accessing them via https://raw.githubusercontent.com/.

I'm not 100% sure if this is 100% allowed by GitHub's terms of service, but has worked for me.

Example: https://github.com/captbaritone/webamp/blob/master/packages/webamp/demo/js/config.ts#L68