types

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoopStatus

type LoopStatus string
const (
	LoopStatusNone     LoopStatus = "None"
	LoopStatusTrack    LoopStatus = "Track"
	LoopStatusPlaylist LoopStatus = "Playlist"
)

type Metadata

type Metadata struct {
	TrackId        dbus.ObjectPath
	Length         Microseconds
	ArtUrl         string
	Album          string
	AlbumArtist    []string
	Artist         []string
	AsText         string
	AudioBPM       int
	AutoRating     float64
	Comment        []string
	Composer       []string
	ContentCreated string
	DiscNumber     int
	FirstUsed      string
	Genre          []string
	LastUsed       string
	Lyricist       []string
	Title          string
	TrackNumber    int
	Url            string
	UseCount       int
	UserRating     float64
}

func (*Metadata) MakeMap

func (m *Metadata) MakeMap() map[string]dbus.Variant

type Microseconds

type Microseconds int64

type OrgMprisMediaPlayer2Adapter

type OrgMprisMediaPlayer2Adapter interface {
	Raise() error
	Quit() error
	CanQuit() (bool, error)
	CanRaise() (bool, error)
	HasTrackList() (bool, error)
	Identity() (string, error)
	SupportedUriSchemes() ([]string, error)
	SupportedMimeTypes() ([]string, error)
}

type OrgMprisMediaPlayer2AdapterCanSetFullscreen

type OrgMprisMediaPlayer2AdapterCanSetFullscreen interface {
	CanSetFullscreen() (bool, error)
}

type OrgMprisMediaPlayer2AdapterDesktopEntry

type OrgMprisMediaPlayer2AdapterDesktopEntry interface {
	DesktopEntry() (string, error)
}

type OrgMprisMediaPlayer2AdapterFullscreen

type OrgMprisMediaPlayer2AdapterFullscreen interface {
	Fullscreen() (bool, error)
	SetFullscreen(bool) error
}

type OrgMprisMediaPlayer2EventHandler

type OrgMprisMediaPlayer2EventHandler interface {
	OnAll() error
}

type OrgMprisMediaPlayer2PlayerAdapter

type OrgMprisMediaPlayer2PlayerAdapter interface {
	Next() error
	Previous() error
	Pause() error
	PlayPause() error
	Stop() error
	Play() error
	Seek(offset Microseconds) error
	SetPosition(trackId string, position Microseconds) error
	OpenUri(uri string) error
	PlaybackStatus() (PlaybackStatus, error)
	Rate() (float64, error)
	SetRate(float64) error
	Metadata() (Metadata, error)
	Volume() (float64, error)
	SetVolume(float64) error
	Position() (int64, error)
	MinimumRate() (float64, error)
	MaximumRate() (float64, error)
	CanGoNext() (bool, error)
	CanGoPrevious() (bool, error)
	CanPlay() (bool, error)
	CanPause() (bool, error)
	CanSeek() (bool, error)
	CanControl() (bool, error)
}

type OrgMprisMediaPlayer2PlayerAdapterLoopStatus

type OrgMprisMediaPlayer2PlayerAdapterLoopStatus interface {
	LoopStatus() (LoopStatus, error)
	SetLoopStatus(LoopStatus) error
}

type OrgMprisMediaPlayer2PlayerAdapterShuffle

type OrgMprisMediaPlayer2PlayerAdapterShuffle interface {
	Shuffle() (bool, error)
	SetShuffle(bool) error
}

type OrgMprisMediaPlayer2PlayerEventHandler

type OrgMprisMediaPlayer2PlayerEventHandler interface {
	OnEnded() error
	OnVolume() error
	OnPlayback() error
	OnPlayPause() error
	OnTitle() error
	OnSeek(position Microseconds) error
	OnOptions() error
	OnAll() error
}

type PlaybackStatus

type PlaybackStatus string
const (
	PlaybackStatusPlaying PlaybackStatus = "Playing"
	PlaybackStatusPaused  PlaybackStatus = "Paused"
	PlaybackStatusStopped PlaybackStatus = "Stopped"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL