Documentation
¶
Index ¶
- Variables
- type Service
- func (s *Service) Close()
- func (s *Service) Get(iface, prop string) (dbus.Variant, *dbus.Error)
- func (s *Service) GetAll(iface string) (map[string]dbus.Variant, *dbus.Error)
- func (s *Service) Next() *dbus.Error
- func (s *Service) OpenUri(uri string) *dbus.Error
- func (s *Service) Pause() *dbus.Error
- func (s *Service) Play() *dbus.Error
- func (s *Service) PlayPause() *dbus.Error
- func (s *Service) Previous() *dbus.Error
- func (s *Service) Quit() *dbus.Error
- func (s *Service) Raise() *dbus.Error
- func (s *Service) Set(iface, prop string, value dbus.Variant) *dbus.Error
- func (s *Service) SetPosition(trackID dbus.ObjectPath, pos int64) *dbus.Error
- func (s *Service) Stop() *dbus.Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNameOwned = errors.New("mpris name already owned")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service exposes the MPRIS interfaces over DBus.
func Start ¶
Start registers the MPRIS service if possible. Returns (nil, nil) if the name is already owned.
func (*Service) Close ¶
func (s *Service) Close()
Close releases the DBus name and stops event handling.
func (*Service) SetPosition ¶
SetPosition seeks to an absolute position in microseconds.
Click to show internal directories.
Click to hide internal directories.