roku

package
v1.55.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: OSL-3.0 Imports: 9 Imported by: 2

README

Roku

Android client

just a remote control:

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

Web free

Clear:

https://therokuchannel.roku.com/watch/105c41ea75775968b670fbb26978ed76

Protected:

https://therokuchannel.roku.com/watch/934102524ea6524eb7d1faa29233695a

Web premium

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

We can create free account, but login uses CAPTCHA:

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

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

{
  "error": "captcha"
}

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Content

type Content struct {
	Meta struct {
		ID        string
		MediaType string
	}
	Title  string
	Series struct {
		Title string
	}
	SeasonNumber   string
	EpisodeNumber  string
	ReleaseDate    string
	RunTimeSeconds int64
	ViewOptions    []struct {
		License string
		Media   struct {
			Videos []Video
		}
	}
}

func New_Content added in v1.54.5

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

func (Content) DASH added in v1.52.7

func (c Content) DASH() *Video

func (Content) Duration

func (c Content) Duration() time.Duration

func (Content) HLS added in v1.52.7

func (c Content) HLS() (*Video, error)

func (Content) Name added in v1.55.6

func (c Content) Name() string

func (Content) String added in v1.54.7

func (c Content) String() string

type Cross_Site added in v1.54.5

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

func New_Cross_Site added in v1.54.5

func New_Cross_Site() (*Cross_Site, error)

func (Cross_Site) Playback added in v1.54.5

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

type Playback added in v1.53.0

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

func (Playback) Request_Body added in v1.54.8

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

func (Playback) Request_Header added in v1.54.8

func (Playback) Request_Header() http.Header

func (Playback) Request_URL added in v1.54.8

func (p Playback) Request_URL() string

func (Playback) Response_Body added in v1.54.8

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

type Video

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

Jump to

Keyboard shortcuts

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