Documentation
¶
Index ¶
- Constants
- func CustomData(data interface{}) func(command.Map)
- func PreventAutoplay(c command.Map)
- func Seek(t time.Duration) func(command.Map)
- type App
- func (a *App) CurrentSession() (*Session, error)
- func (a *App) LatestStatus() []Status
- func (a App) Load(item Item, options ...Option) (<-chan []byte, error)
- func (a *App) LoadAndGetSession(item Item, options ...Option) (*Session, error)
- func (a *App) Status() ([]Status, error)
- func (a *App) UpdateStatus()
- type Item
- type ItemStatus
- type Option
- type Seconds
- type Session
- type Status
- type URLLoader
Constants ¶
View Source
const Namespace = "urn:x-cast:com.google.cast.media"
Variables ¶
This section is empty.
Functions ¶
func CustomData ¶
func PreventAutoplay ¶
Types ¶
type App ¶
func ConnectFromStatus ¶
func LaunchAndConnect ¶
func (*App) CurrentSession ¶
func (*App) LatestStatus ¶
func (*App) LoadAndGetSession ¶
func (*App) UpdateStatus ¶
func (a *App) UpdateStatus()
type ItemStatus ¶
type Status ¶
type Status struct { SessionID int `json:"mediaSessionId"` PlaybackRate float64 `json:"playbackRate"` PlayerState string `json:"playerState"` CurrentTime Seconds `json:"currentTime"` SupportedMediaCommands int `json:"supportedMediaCommands"` Volume *chromecast.Volume `json:"volume,omitempty"` Item *ItemStatus `json:"media"` CustomData map[string]interface{} `json:"customData"` RepeatMode string `json:"repeatMode"` IdleReason string `json:"idleReason"` }
Click to show internal directories.
Click to hide internal directories.