Documentation
¶
Index ¶
Constants ¶
View Source
const ( MethodInit = "init" MethodSeeked = "seeked" MethodMetadataUpdated = "mu" MethodPlaybackStatusUpdated = "psu" MethodRList = "rlist" // "NameOwnerChanged" Signals MethodPlayerCreated = "cr" MethodPlayerUpdated = "up" MethodPlayerRemoved = "rm" // TODO: Switch this to "init" soon MethodRSetupMetadata = "rsetup_metadata" )
-- MP:Linux Methods TODO: Move to ganymede.
View Source
const ( DBusMPRISPath = "/org/mpris/MediaPlayer2" SeekedMember = "Seeked" PlayerSeekedMemberName = "org.mpris.MediaPlayer2.Player.Seeked" )
View Source
const (
MediaPlayerSubsystemName = "mp"
)
Variables ¶
This section is empty.
Functions ¶
func MPAutoPlatformMethod ¶
Types ¶
type LinuxMediaPlayerSubsystem ¶
type LinuxMediaPlayerSubsystem struct {
// contains filtered or unexported fields
}
func NewLinuxMediaPlayerSubsystem ¶
func NewLinuxMediaPlayerSubsystem(bidirChan *comm.BiDirMessageChannel) *LinuxMediaPlayerSubsystem
func (*LinuxMediaPlayerSubsystem) Routine ¶
func (lmp *LinuxMediaPlayerSubsystem) Routine()
Main Subsystem Routine + Communication Loop
This loop reads from command channel (from other modules) and communication channel (for communication with client).
func (*LinuxMediaPlayerSubsystem) Setup ¶
func (lmp *LinuxMediaPlayerSubsystem) Setup() error
Main Setup Method
This sets up the media player subsystem for linux, which includes setting up DBus Session Connections for MPRIS and Adding Players for the first launch, and anything else related to the same.
func (*LinuxMediaPlayerSubsystem) Shutdown ¶
func (lmp *LinuxMediaPlayerSubsystem) Shutdown()
type PlayerSelection ¶
type PlayerSelection struct {
PlayerName string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.