Skip to content

Commit

Permalink
Add SetShuffle()
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloo27 committed Nov 22, 2020
1 parent 00ef36f commit 125634c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mpris.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ func (i *Player) GetShuffle() (bool, error) {
return variant.Value().(bool), nil
}

// SetShuffle sets the shuffle playlist mode.
func (i *Player) SetShuffle(value bool) error {
return setProperty(i.obj, PlayerInterface, "Shuffle", value)
}

// GetMetadata returns the metadata.
func (i *Player) GetMetadata() (map[string]dbus.Variant, error) {
variant, err := getProperty(i.obj, PlayerInterface, "Metadata")
Expand Down

0 comments on commit 125634c

Please sign in to comment.