var Transport = http.Transport{ Protocols: &http.Protocols{}, Proxy: func(req *http.Request) (*url.URL, error) { switch path.Ext(req.URL.Path) { case ".m4s", ".mp4": default: log.Println(req.Method, req.URL) } switch path.Base(req.URL.Path) { case "anonymous-session-token.json", "getlicense": return nil, nil } return http.ProxyFromEnvironment(req) }, }
type AppSecret string
func (a AppSecret) At() (At, error)
type At string
func (a At) Item(cid string) (*Item, error)
proxy
func (a At) Session(content_id string) (Byte[Session], error)
type Byte[T any] []byte
type Item struct { AssetType string CmsAccountId string ContentId string }
func (i *Item) Mpd() (*http.Response, error)
type Session struct { LsSession string `json:"ls_session"` Url string }
func (s *Session) Unmarshal(data Byte[Session]) error
func (s *Session) Widevine(data []byte) ([]byte, error)