Categorygithub.com/dawidd6/go-spotify-dbus
modulepackage
0.2.0
Repository: https://github.com/dawidd6/go-spotify-dbus.git
Documentation: pkg.go.dev

# README

go-spotify-dbus

GoDoc Build Status Go Report Card

Simple library that helps interacting with Spotify dbus interface.

# Packages

No description provided by the author

# Functions

GetMetadata returns the current metadata from the Spotify app.
GetPlaybackStatus returns the current Play/Pause status of the Spotify app Status will be "Playing", "Paused" or "Unknown".
IsServiceStarted checks if the Spotify app is running.
Listen will listen for any changes in PlayPause or metadata from the Spotify app This function is blocking.
NewListeners returns default listeners.
SendNext sends a "Next" message to the Spotify app.
SendPause sends a "Pause" message to the Spotify app.
SendPlay sends a "Play" message to the Spotify app.
SendPlayPause sends a "PlayPause" message to the Spotify app.
SendPrevious sends a "Previous" message to the Spotify app.

# Constants

StatusPaused is the paused state.
StatusPlaying is the playing state.
StatusUnknown is an unknown music player state.

# Structs

Listeners is a struct of the events we are listening for.
Metadata contains Spotify player metadata.

# Type aliases

PlaybackStatus is a PlayPause status of a music player.