Crates.io | music-player |
lib.rs | music-player |
version | 0.2.0-alpha.13 |
source | src |
created_at | 2022-09-14 23:42:28.270056 |
updated_at | 2023-05-07 18:24:45.811527 |
description | An extensible music player daemon written in Rust |
homepage | |
repository | https://github.com/tsirysndr/music-player |
max_upload_size | |
id | 666185 |
size | 10,330,786 |
Note: This is a work in progress. 🏗️🚧
This is a simple music player that I made for my own use. It is written in Rust and uses rodio, symphonia, and gRPC libraries.
Music is played through the server's audio device. The daemon stores info about all available music, and this info can be easily searched and retrieved.
Like mpd or Mopidy but written in Rust.
# Install dependencies
brew install protobuf # macOS
sudo apt-get install -y libasound2-dev protobuf-compiler # Ubuntu/Debian
choco install protoc # Windows using Chocolatey Package Manager
# Compile
git clone https://github.com/tsirysndr/music-player.git
cd music-player/webui/musicplayer
nvm install # install node version specified in .nvmrc (optional on windows)
npm install -g yarn
yarn install && yarn build # build webui
cd ../..
cargo install --path .
Note: Don't forget to add ~/.cargo/bin
to your PATH
environment variable.
brew install tsirysndr/tap/musicplayer
Or download the latest release for your platform here.
Latest (Desktop):
Mac
: arm64: music-player-desktop_v0.2.0-alpha.12_aarch64-apple-darwin.tar.gz intel: Music_Player_v0.2.0-alpha.12_x64.dmgLinux
: music-player_v0.2.0-alpha.12_amd64.debWindows
: Music_Player_x64_en-US.msiLatest (CLI):
Mac
: arm64: music-player_v0.2.0-alpha.12_aarch64-apple-darwin.tar.gz intel: music-player_v0.2.0-alpha.12_x86_64-apple-darwin.tar.gzLinux
: music-player_v0.2.0-alpha.12_x86_64-unknown-linux-gnu.tar.gzWindows
: music-player_x86_64-pc-windows-gnu.tar.gzmusic-player
USAGE:
music-player [SUBCOMMAND]
OPTIONS:
-h, --help Print help information
-V, --version Print version information
SUBCOMMANDS:
albums List all albums
artists List all artists
help Print this message or the help of the given subcommand(s)
next Play the next song
pause Pause the current song
open Open audio file
playlist Manage playlists
prev Play the previous song
queue Manage the queue
play Resume the current song
scan Scan music library: $HOME/Music
search Search for a song, album, artist or playlist
stop Stop the current song
tracks List all tracks
# Start the server
music-player
Open http://localhost:5053/graphiql in your browser.