func CreateLicense(loginData *Login, manifestData *Manifest, challenge []byte) ([]byte, error)
type Caption struct { Language string `json:"language"` Files []File `json:"files"` Label string `json:"label"` }
type File struct { Type string `json:"type"` Url string }
type Login struct { Jwt string `json:"jwt"` VisitorId string `json:"visitorId"` UserId int `json:"userId"` KanopyKidsEnabled bool `json:"kanopyKidsEnabled"` WebshopId int `json:"webshopId"` WebshopCode string `json:"webshopCode"` UserRole string `json:"userRole"` }
func LoginUser(email string, password string) (*Login, error)
func (*Login) CachePath() string
type Manifest struct { Url *Url ManifestType string `json:"manifestType"` DrmType string `json:"drmType"` StorageService string `json:"storageService"` Cdn string `json:"cdn"` DrmLicenseId string `json:"drmLicenseID"` }
func (*Manifest) CachePath() string
type Membership struct { IdentityId int `json:"identityId"` DomainId int `json:"domainId"` UserId int `json:"userId"` Status string `json:"status"` IsDefault bool `json:"isDefault"` Sitename string `json:"sitename"` Subdomain string `json:"subdomain"` TicketsAvailable int `json:"ticketsAvailable"` MaxTicketsPerMonth int `json:"maxTicketsPerMonth"` }
func GetMemberships(loginData *Login) ([]Membership, error)
type PlayRequest struct { DomainId int `json:"domainId"` UserId int `json:"userId"` VideoId int `json:"videoId"` }
type PlayResponse struct { Captions []Caption Manifests []Manifest PlayId string }
func CreatePlay(loginData *Login, membershipData *Membership, videoData *Video) (*PlayResponse, error)
func (p *PlayResponse) GetDash() (*Manifest, error)
type Url struct { Url url.URL }
func (u *Url) MarshalText() ([]byte, error)
func (u *Url) UnmarshalText(text []byte) error
type Video struct { VideoId int `json:"videoId"` Title string `json:"title"` DescriptionHtml string `json:"descriptionHtml"` DurationSeconds int `json:"durationSeconds"` Alias string `json:"alias"` }
func GetVideo(loginData *Login, alias string) (*Video, error)
func ParseVideo(rawUrl string) (*Video, error)
https://kanopy.com/product/6440418 https://kanopy.com/en/product/6440418 https://kanopy.com/video/6440418 https://kanopy.com/en/irving/product/6440418 https://kanopy.com/en/irving/product/genius-party https://kanopy.com/en/irving/video/6440418 https://kanopy.com/en/irving/video/genius-party https://kanopy.com/en/irving/video/justwatch-6440418 https://kanopy.com/en/product/genius-party https://kanopy.com/en/video/6440418 https://kanopy.com/en/video/genius-party https://kanopy.com/en/video/justwatch-6440418 https://kanopy.com/irving/product/6440418 https://kanopy.com/irving/product/genius-party https://kanopy.com/irving/video/6440418 https://kanopy.com/irving/video/genius-party https://kanopy.com/irving/video/justwatch-6440418 https://kanopy.com/product/genius-party https://kanopy.com/product/justwatch-6440418 https://kanopy.com/video/genius-party https://kanopy.com/video/justwatch-6440418