Spotify_player uses RUST_LOG environment variable to define the application's logging level. For debugging or submitting an issue, user can also refer to the backtrace file in $APP_CACHE_FOLDER/spotify-player-*.backtrace, which includes the application's backtrace in case of panics/unexpected errors. The application stores logs inside the $APP_CACHE_FOLDER/spotify-player-*.log file. This can be changed by either specifying -C or -cache-folder option. Cachesīy default, spotify_player will look into $HOME/.cache/spotify-player for application's cache files, which include log files, Spotify's authorization credentials, audio cache files, etc. Please refer to the configuration documentation for more details on the configuration options. Play a random track in the current context Resume/pause based on the current playback To open a shortcut help popup, press ? or C-h (default shortcuts for OpenCommandHelp command). Under the hood, the application handles a CLI command by sending requests to a spotify_player instance's client socket running on the client_port port, a general application configuration with a default value 8080.įor more details, run spotify_player -h or spotify_player is a CLI command. Spotify_player offers several CLI commands to interact with a running spotify_player instance. For example, to install spotify_player with pulseaudio-backend, runĬargo install spotify_player -no-default-features -features daemon,rodio-backend User can change the audio backend when building/installing the application by specifying the -features option. Spotify_player uses rodio as the default audio backend. ![]() The integrated client will register a Spotify speaker device under the spotify-player name, which is accessible on the Spotify connect device list. The application uses librespot library to create an integrated Spotify client while running. The streaming feature allows to spotify_player to play music directly from terminal. Spotify_player supports streaming, which needs to be built/installed with streaming feature ( enabled by default) and with an audio backend ( rodio-backend by default). When spotify_player runs with your own client_id, press D (default shortcut for SwitchDevice command) to get the list of available devices, then press enter (default shortcut for ChooseSelected command) to connect to the selected device.Īn example of using Spotify connect to interact with the Spotify's official application: ![]() More details about registering a Spotify application can be found in the official Spotify documentation. To enable a full Spotify connect support, user will need to register a Spotify application and specify the application's client_id in the general configuration file as described in the configuration documentation. On Debian based systems, run the below command to install application's dependencies:.openssl, alsa-lib ( streaming feature), libdbus ( media-control feature) system libraries.Rust and cargo as the build dependencies.RequirementsĪ Spotify Premium account is required. ![]()
0 Comments
Leave a Reply. |