Mynotic / web-mplayer

Web interface for mpv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

web-mplayer

Web interface for mpv player. This can be used to share a single music player in a room. The web interface can then be used to control the player from any device.

features

  • random playlist
  • request songs
  • vote on next or current song
  • play soundbits for small announcements
  • mpd implementation for other frontends

setup

requirements

NodeJs, MPV and Mongodb

install

npm install

config

You can configure the server using the files in the config folder.

Option Description Type Default
port Port on which the web service runs int 3003
musicDir Directory to scan for music string
blacklist Directories to skip scans (use / and relative paths) string[] []
extensions Extensions of files to include string[] ['.aac','.ac3','.mp3','.wav','.wma','.m4a','.flac']
dbUrl Database connection url string 'mongodb://localhost:27017'
dbName Database name string 'musiclib'
soundBitDir Sound bit directory string ./soundbits
soundBitVolume Volume for playing soundbits int 100
playlistSize Size of the randomly generated playlist int 20
nextDelay Delay for actually skipping song number 10000
playerOptions Options passed to the player library object { audio_only: true }
playerArguments Arguments list passed to the mpv instance array []
mpd Object with mpd config, this object is past to the listen method of mpd-server object { port: 6600 }

usage

  1. start mongodb
  2. start server: npm start

before the first start you should fill the database by running npm run scan

screenshot

About

Web interface for mpv

License:Apache License 2.0


Languages

Language:JavaScript 77.9%Language:CSS 11.9%Language:HTML 10.2%