roku

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: OSL-3.0 Imports: 9 Imported by: 0

README

Roku

Android client

just a remote control:

https://play.google.com/store/apps/details?id=com.roku.remote

Web premium

https://therokuchannel.roku.com/watch/32c95b576307502b98f7fe32c4aa0a22

We can create free account:

POST https://my.roku.com/api/auth/1/login HTTP/1.1
csrf-token: sVzM79JV-kKC0kN2Jlz_PlI6vHLZ3NhqOqFk
content-type: application/json
cookie: _csrf=LHBM-wxg8GRExB8JboGxeJCC

{
  "email": "EMAIL",
  "password": "PASSWORD",
  "rememberMe": false
}

but login uses CAPTCHA:

{"error": "captcha"}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrossSite added in v1.7.7

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

func (*CrossSite) New added in v1.7.7

func (c *CrossSite) New() error

func (CrossSite) Playback added in v1.7.7

func (c CrossSite) Playback(id string) (*Playback, error)

type HomeScreen added in v1.7.7

type HomeScreen struct {
	EpisodeNumber int    `json:",string"`
	ReleaseDate   string // 2007-01-01T000000Z
	SeasonNumber  int    `json:",string"`
	Series        *struct {
		Title string
	}
	Title       string
	ViewOptions []struct {
		Media struct {
			Videos []MediaVideo
		}
	}
}

func (HomeScreen) DASH added in v1.7.7

func (h HomeScreen) DASH() (*MediaVideo, bool)

func (*HomeScreen) New added in v1.7.7

func (h *HomeScreen) New(id string) error

type MediaVideo added in v1.7.7

type MediaVideo struct {
	DrmAuthentication *struct{}
	URL               string
	VideoType         string
}

type Namer added in v1.8.3

type Namer struct {
	H HomeScreen
}

func (Namer) Episode added in v1.8.3

func (n Namer) Episode() int

func (Namer) Season added in v1.8.3

func (n Namer) Season() int

func (Namer) Show added in v1.8.3

func (n Namer) Show() string

func (Namer) Title added in v1.8.3

func (n Namer) Title() string

func (Namer) Year added in v1.8.3

func (n Namer) Year() int

type Playback

type Playback struct {
	DRM struct {
		Widevine struct {
			LicenseServer string
		}
	}
}

func (Playback) RequestBody added in v1.7.7

func (Playback) RequestBody(b []byte) ([]byte, error)

func (Playback) RequestHeader added in v1.7.7

func (Playback) RequestHeader() (http.Header, error)

func (Playback) RequestUrl added in v1.7.7

func (p Playback) RequestUrl() (string, bool)

func (Playback) ResponseBody added in v1.7.7

func (Playback) ResponseBody(b []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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