roku

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: OSL-3.0 Imports: 8 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 {
	// contains filtered or unexported fields
}

we have to embed to prevent clobbering Namer.Title

func (HomeScreen) DASH added in v1.7.7

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

func (HomeScreen) Episode added in v1.7.7

func (h HomeScreen) Episode() (string, bool)

func (*HomeScreen) New added in v1.7.7

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

this has got to be the stupidest fucking URL construction I have ever seen, but its what the server requires

func (HomeScreen) Owner added in v1.7.7

func (HomeScreen) Owner() (string, bool)

func (HomeScreen) Season added in v1.7.7

func (h HomeScreen) Season() (string, bool)

func (HomeScreen) Show added in v1.7.7

func (h HomeScreen) Show() (string, bool)

func (HomeScreen) Title added in v1.7.7

func (h HomeScreen) Title() (string, bool)

func (HomeScreen) Year added in v1.7.7

func (h HomeScreen) Year() (string, bool)

type MediaVideo added in v1.7.7

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

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