Xaudio CLI is a remake version of xaudio, focusing on CLI interface.
Xaudio CLI uses MPV as a backend, so, make sure you have MPV installed:
brew instal mpv
To compile from source, you'll also need the Rust compiler, which is obvious.
To run, you'll need to create a .env file and put in your Youtube API key:
YOUTUBE_API_KEY=<your-key-here>
Then run the application with:
make
The app will start in Playlist mode, in this mode, you can:
- Hit
/to search for songs - Use
jandkto navigate up and down - Use
<and>to switch between pages - Hit
Enterto play a song - Use
nandpto play next/previous song - Hit
Tabto go back to the previous search result
In the Search mode, you can type the song name to search and navigate with the
same keybinding as the Playlist mode. You can also hit ESC to go back to the
Playlist mode.
Please refer to DEVELOPMENT.md for more about the technical details:
- The Elm-like Architecture (src/ui.rs, MusicApp struct)
- mpv JSON IPC client (src/mpv.rs)
- Youtube API v3 (src/youtube.rs)
