Package roku (v1.11.1) [up] [repository]

Index

Types

type Activation

type Activation struct {
	Code string
}

Methods

func (a *Activation) String() string

type Code

type Code struct {
	Token string
}

type Dash

type Dash struct {
	Body []byte
	Url  *url.URL
}

type Playback

type Playback struct {
	Drm struct {
		Widevine struct {
			LicenseServer string
		}
	}
	Url string // MPD
}

Methods

func (p *Playback) Dash() (*Dash, error)
func (p *Playback) Widevine(data []byte) ([]byte, error)

type Token

type Token struct {
	AuthToken string
}

Functions

func FetchToken(codeData *Code) (*Token, error)

input can be nil /api/v1/account/token

Methods

func (t *Token) Activation() (*Activation, error)

/api/v1/account/activation

func (t *Token) Code(activationData *Activation) (*Code, error)

/api/v1/account/activation/code

func (t *Token) Playback(rokuId string) (*Playback, error)

/api/v3/playback