Package kanopy (v1.10.9) [up] [repository]

Index

Types

type Dash

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

type Login

good for 10 years

type Login struct {
	Jwt    string
	UserId int
}

Methods

func (l *Login) Fetch(email, password string) error
func (l *Login) Membership() (*Membership, error)
func (l *Login) Plays(member *Membership, videoId int) (*Plays, error)
func (l *Login) Widevine(manifest *PlayManifest, data []byte) ([]byte, error)

type Membership

type Membership struct {
	DomainId int
}

type PlayManifest

type PlayManifest struct {
	DrmLicenseId string
	ManifestType string
	Url          string
}

Methods

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

type Plays

type Plays struct {
	ErrorMsgLong string `json:"error_msg_long"`
	Manifests    []PlayManifest
}

Methods

func (p *Plays) Dash() (*PlayManifest, error)