roku

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 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 Content

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

we have to embed to prevent clobbering the interface

func New_Content

func New_Content(id string) (*Content, error)

func (Content) DASH

func (c Content) DASH() *Video

func (Content) Date

func (c Content) Date() (time.Time, error)

func (Content) Episode

func (c Content) Episode() (int64, error)

func (Content) Season

func (c Content) Season() (int64, error)

func (Content) Series

func (c Content) Series() (string, bool)

func (Content) Title

func (c Content) Title() string

type Cross_Site

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

func New_Cross_Site

func New_Cross_Site() (*Cross_Site, error)

func (Cross_Site) Playback

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

type Playback

type Playback struct {
	DRM struct {
		Widevine struct {
			License_Server string `json:"licenseServer"`
		}
	}
}

func (Playback) Request_Body

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

func (Playback) Request_Header

func (Playback) Request_Header() http.Header

func (Playback) Request_URL

func (p Playback) Request_URL() string

func (Playback) Response_Body

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

type Video

type Video struct {
	DRM_Authentication *struct{} `json:"drmAuthentication"`
	URL                string
	Video_Type         string `json:"videoType"`
}

Jump to

Keyboard shortcuts

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