Documentation ¶
Index ¶
- Constants
- func FormatPosition(ms int64) string
- func ListPlayers(bus *dbus.Conn) ([]string, error)
- type Player
- func (player *Player) EnsureBookmark() error
- func (player *Player) GetPropertiesRemote() (*Properties, error)
- func (player *Player) HasBookmark() bool
- func (player *Player) LoadBookmark(url *model.XesamUrl) error
- func (player *Player) Manage() error
- func (player *Player) RunCmd() error
- func (player *Player) SaveBookmark() error
- func (player *Player) SetName(name string)
- func (player *Player) SetPlayerProperties(properties *Properties)
- type PlayerCmdError
- type Properties
Constants ¶
View Source
const ( Playing = "Playing" Paused = "Paused" Stopped = "Stopped" )
Variables ¶
This section is empty.
Functions ¶
func FormatPosition ¶
func ListPlayers ¶
Types ¶
type Player ¶
type Player struct { DB *sql.DB Bus *dbus.Conn Cli *cli.PbmCli Cmd *exec.Cmd Bookmark *model.Bookmark BusName string NameOwner string MprisObj dbus.BusObject Position int64 PositionTime time.Time TrackId dbus.ObjectPath Status string Length int64 ProcessFinish chan error Signals chan *dbus.Signal ExitCode int }
func (*Player) EnsureBookmark ¶
func (*Player) GetPropertiesRemote ¶
func (player *Player) GetPropertiesRemote() (*Properties, error)
func (*Player) HasBookmark ¶
func (*Player) SaveBookmark ¶
func (*Player) SetPlayerProperties ¶
func (player *Player) SetPlayerProperties(properties *Properties)
type PlayerCmdError ¶
type PlayerCmdError struct { ExitCode int // contains filtered or unexported fields }
func (*PlayerCmdError) Error ¶
func (e *PlayerCmdError) Error() string
Click to show internal directories.
Click to hide internal directories.