README
Audio player
[[TOC]]
About project
This project provides a drop-in replacement for flash player on Anon.fm site.
The player has to be able to:
- play music stream
- show tags
- change stream quality
- change music volume
My vision of project
I think that player should:
- look like header line
- use modern technologies
- succeed ideas of TWP contest player
- use userscript technology and can be deployed to server
- fit different desktop sizes
Demo
The easiest way is to run gitpod instance.
Install
Before install
Available release versions. Choose one of them.
- All-in-one userscript
- Large size, more than 220 kB
- All resources built-in
- Starts slower
- Cdn userscript
- Smaller, less than 80 kB
- Uses google font cdn
- Starts faster
Install browser addon
Download one of userscript addons for your browser.
- Tampermonkey
- Violentmonkey
- Greasemonkey
- Userscripts
Install application
To install it you should:
- Open link with one of the releases.
- See userscript addon special window with buttons install and cancel.
- Press install.
- Now everything is ready to use.
Open site Anon.fm, and you will see a new player at the top of the screen.
After install
If you do not want to receive updates for script you should disable auto-update feature for userscript in your browser addon.
Development
Build project by yourself
To build project by yourself you have to:
- Install tools
git
node
npm
yarn
- terminal or console
- Get repository form gitlab by calling
git clone
or use your preferred text editor, ide, or git tool.
Choose one of two sources. - Install dependencies.
It will take about 1-5 minutes and about 700mb of free disk space.
yarn install --pure-lockfile --non-interactive
- Build project. It will take about a minute.
yarn build
Now your own build versions is ready.
Directories that contain release files:
- Deploy version:
./@npm/audioplayer-deploy/dist/
- All-in-one userscript version:
./@npm/audioplayer-userscript/dist/userscript/
- Cdn userscript version:
./@npm/audioplayer-userscript/dist/userscript-cdn/
Use gitpod online IDE with gitlab integration
- Open project gitpod page.
- Login with your gitlab account.
- Wait till your workspace is ready.
- Your online IDE is ready to go.
By default, development environment will run.
Project dependencies
Host and delivery
Build and release
Compile
Frontend components
License
HTML5 Audio Player for anon.fm web site
Copyright (C) 2021 Vitoyucepi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.