omxstate

package
v0.0.0-...-04ac836 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SPundef = iota
	SPoff
	SPplaying
	SPpause
	SPrestart
)
View Source
const (
	SMnormal = iota
	SMmuted
	SMundef
)

Variables

This section is empty.

Functions

func ListenStateAction

func ListenStateAction(actCh chan *ActionDef, workers []WorkerState)

Types

type ActionDef

type ActionDef struct {
	URI        string
	Action     ActionTD
	ChStateRsp chan *StateOmx
}

type ActionTD

type ActionTD int
const (
	ActTerminate ActionTD = iota
	ActPlaying
	ActPause
	ActMute
	ActUnmute
)

func (ActionTD) String

func (i ActionTD) String() string

type SMstatemute

type SMstatemute int

func (*SMstatemute) String

func (s *SMstatemute) String() string

type SPstateplaying

type SPstateplaying int

func (*SPstateplaying) String

func (s *SPstateplaying) String() string

type StateOmx

type StateOmx struct {
	CurrURI       string
	StatePlayer   SPstateplaying
	StateMute     SMstatemute
	Info          string
	ItemType      string
	NextItem      string
	PrevItem      string
	TrackDuration string
	TrackPosition string
	TrackStatus   string
}

func (*StateOmx) ClearTrackStatus

func (so *StateOmx) ClearTrackStatus()

type WorkerState

type WorkerState struct {
	ChStatus chan *StateOmx
}

Jump to

Keyboard shortcuts

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