Package paramount (v1.10.6) [repository]

Index

Variables

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)
	},
}

Types

type AppSecret

type AppSecret string

Methods

func (a AppSecret) At() (At, error)

type At

type At string

Methods

func (a At) Item(cid string) (*Item, error)

proxy

func (a At) Session(content_id string) (Byte[Session], error)

type Byte

type Byte[T any] []byte

type Item

type Item struct {
	AssetType    string
	CmsAccountId string
	ContentId    string
}

Methods

func (i *Item) Mpd() (*http.Response, error)

type Session

type Session struct {
	LsSession string `json:"ls_session"`
	Url       string
}

Methods

func (s *Session) Unmarshal(data Byte[Session]) error
func (s *Session) Widevine(data []byte) ([]byte, error)