Documentation ¶
Overview ¶
Package libnp offers information about the media that is currently being played. The main entrypoint is GetInfo, which returns an Info.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { AlbumArtists []string Artists []string Composers []string // linux only Genres []string // linux only Lyricists []string // linux only Created time.Time // linux only FirstPlayed time.Time // linux only LastPlayed time.Time // linux only Album string AlbumTrackCount int // windows only ArtURL string // linux only BPM int // linux only DiscNumber int // linux only Length time.Duration // linux only PlayCount int // linux only Subtitle string // windows only Title string TrackNumber int URL string // linux only PlaybackType PlaybackType // windows only }
Info stores information about the media being played.
type PlaybackType ¶
type PlaybackType int
PlaybackType represents the kind of media being played. PlaybackTypeUnknown is used on some platforms.
const ( PlaybackTypeUnknown PlaybackType = iota PlaybackTypeMusic PlaybackTypeVideo PlaybackTypeImage )
func (PlaybackType) String ¶
func (p PlaybackType) String() string
Click to show internal directories.
Click to hide internal directories.