roku

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: OSL-3.0 Imports: 7 Imported by: 0

README

Roku

com.roku.web.trc is The Roku Channel (Android TV):

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

create Android 9 device. install system certificate.

one week trial

  1. therokuchannel.roku.com
  2. create a free account
  3. email
    • mail.tm
  4. first name
  5. last name
  6. password
  7. month
  8. date
  9. year
  10. gender
  11. I agree to the terms
  12. continue
  13. see plans
  14. add a payment method
  15. credit or debit card
  16. card number
  17. month
  18. year
  19. security code
  20. address
  21. city
  22. state
  23. zip
  24. save
  25. start subscription

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	AuthToken string
}

Connection represents the active session with the Roku API.

func NewConnection

func NewConnection(current *User) (*Connection, error)

NewConnection initializes a session. User can be nil

func (*Connection) LinkCode

func (c *Connection) LinkCode() (*LinkCode, error)

RequestLinkCode requests a new activation code from the server

func (*Connection) Playback

func (c *Connection) Playback(rokuId string) (*Playback, error)

Playback fetches the DASH manifest and DRM information.

func (*Connection) User

func (c *Connection) User(link *LinkCode) (*User, error)

GetUser exchanges the LinkCode for a permanent User token.

type Dash

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

type LinkCode

type LinkCode struct {
	Code string
}

LinkCode represents the activation code displayed to the user.

func (*LinkCode) String

func (l *LinkCode) String() string

String generates the user instructions

type Playback

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

Playback represents the media playback metadata.

func (*Playback) Dash

func (p *Playback) Dash() (*Dash, error)

func (*Playback) Widevine

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

Widevine fetches the license key

type User

type User struct {
	Token string
}

User represents the persistent saved account token.

Jump to

Keyboard shortcuts

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