var Territory = "US"
type Cookie struct { Name string Value string }
func FetchIdSession(user, password string) (*Cookie, error)
func (*Cookie) CachePath() string
func (c *Cookie) String() string
type Endpoint struct { Cdn string Url string }
type Playout struct { Asset struct { Endpoints []Endpoint } Description string Protection struct { LicenceAcquisitionUrl *Url } }
func (*Playout) CachePath() string
func (p *Playout) FetchWidevine(body []byte) ([]byte, error)
L3 max 1080p
func (p *Playout) GetFastly() (*url.URL, error)
userToken is good for one day
type Token struct { Description string UserToken string }
func FetchToken(idSession *Cookie) (*Token, error)
func (t *Token) FetchPlayout(variantId string) (*Playout, error)
type Url struct { Url url.URL }
func (u *Url) MarshalText() ([]byte, error)
func (u *Url) UnmarshalText(text []byte) error