application

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrApplicationNotSet      = errors.New("application isn't set")
	ErrMediaNotYetInitialised = errors.New("media not yet initialised")
	ErrNoMediaNext            = errors.New("media not yet initialised, there is nothing to go to next")
	ErrNoMediaPause           = errors.New("media not yet initialised, there is nothing to pause")
	ErrNoMediaPrevious        = errors.New("media not yet initialised, there is nothing previous")
	ErrNoMediaSkip            = errors.New("media not yet initialised, there is nothing to skip")
	ErrNoMediaStop            = errors.New("media not yet initialised, there is nothing to stop")
	ErrNoMediaUnpause         = errors.New("media not yet initialised, there is nothing to unpause")
	ErrVolumeOutOfRange       = errors.New("specified volume is out of range (0 - 1)")
)

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication(debug, cacheDisabled bool) *Application

func (*Application) Close

func (a *Application) Close()

func (*Application) Load

func (a *Application) Load(filenameOrUrl, contentType string, transcode bool) error

func (*Application) Next

func (a *Application) Next() error

func (*Application) Pause

func (a *Application) Pause() error

func (*Application) PlayableMediaType

func (a *Application) PlayableMediaType(filename string) bool

func (*Application) PlayedItems

func (a *Application) PlayedItems() map[string]PlayedItem

func (*Application) Previous

func (a *Application) Previous() error

func (*Application) QueueLoad

func (a *Application) QueueLoad(filenames []string, contentType string, transcode bool) error

func (*Application) Seek

func (a *Application) Seek(value int) error

func (*Application) SeekFromStart

func (a *Application) SeekFromStart(value int) error

func (*Application) SetDebug

func (a *Application) SetDebug(debug bool)

func (*Application) SetMuted added in v0.0.5

func (a *Application) SetMuted(value bool) error

func (*Application) SetVolume added in v0.0.5

func (a *Application) SetVolume(value float32) error

func (*Application) Skip

func (a *Application) Skip() error

func (*Application) Start

func (a *Application) Start(entry castdns.CastDNSEntry) error

func (*Application) Status

func (a *Application) Status() (*cast.Application, *cast.Media, *cast.Volume)

func (*Application) Stop

func (a *Application) Stop() error

func (*Application) StopMedia

func (a *Application) StopMedia() error

func (*Application) Unpause

func (a *Application) Unpause() error

func (*Application) Update

func (a *Application) Update() error

type PlayedItem

type PlayedItem struct {
	ContentID string `json:"content_id"`
	Started   int64  `json:"started"`
	Finished  int64  `json:"finished"`
}

Jump to

Keyboard shortcuts

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