Documentation
¶
Index ¶
- Variables
- type Application
- func (a *Application) Close()
- func (a *Application) Load(filenameOrUrl, contentType string, transcode bool) error
- func (a *Application) Next() error
- func (a *Application) Pause() error
- func (a *Application) PlayableMediaType(filename string) bool
- func (a *Application) PlayedItems() map[string]PlayedItem
- func (a *Application) Previous() error
- func (a *Application) QueueLoad(filenames []string, contentType string, transcode bool) error
- func (a *Application) Seek(value int) error
- func (a *Application) SeekFromStart(value int) error
- func (a *Application) SetDebug(debug bool)
- func (a *Application) SetMuted(value bool) error
- func (a *Application) SetVolume(value float32) error
- func (a *Application) Skip() error
- func (a *Application) Start(entry castdns.CastDNSEntry) error
- func (a *Application) Status() (*cast.Application, *cast.Media, *cast.Volume)
- func (a *Application) Stop() error
- func (a *Application) StopMedia() error
- func (a *Application) Unpause() error
- func (a *Application) Update() error
- type PlayedItem
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 ¶
Click to show internal directories.
Click to hide internal directories.