For general information about ROSI see https://rosipay.net
-
Install Dependencies
- nodejs (https://nodejs.org/en/)
- ffmpeg (for Debian-Like Systems with apt:
sudo apt-get install ffmpeg
)
-
Initial Setup
- Clone repository
git clone -b master --single-branch https://github.com/brunnerm4x/rosi-audiostream.git
cd rosi-audiostream
npm i
- Clone repository
-
Setup Database for Streaming Server
npm run manage-streamserver
- Open
http://localhost:10011
(default settings, server also prints URLs on startup) - Upload the files you want - they will be automatically converted. All files with the same AlbumID will be later displayed in the same album - if you do not specify an albumID the script will generate one and thus the uploaded file will get in a new album.
- Other functions of management server should be used analogous.
-
Start streaming service
npm start
-
Start webserver for player page
npm run start-webserver
-
Build Player for offline use or to be used with other webserver The simple server script provided uses special URLs, to strip the client files from these, run the following command:
npm run build-website
This will create a folder namedplayer.localbuild
with the website able to run locally (just openindex.htm
with firefox).
-
Configuration Of Servers
npm config set rosi-audiostream:port 10010
to set the port of the streaming-server to 10010npm config set rosi-audiostream:provider rosipoc01
to set the provider name of the streaming-server to rosipoc01- ... see options in package.json file
config
object.