package widevine
import "154.pages.dev/widevine"
Index
Types
type Cdm
type Cdm struct {
// contains filtered or unexported fields
}
func (*Cdm) Key
func (c *Cdm) Key(post Poster, key_id []byte) ([]byte, error)
func (*Cdm) New
func (c *Cdm) New(private_key, client_id, pssh []byte) error
type Poster
type Poster interface {
RequestUrl() (string, bool)
() (http.Header, error)
WrapRequest([]byte) ([]byte, error)
UnwrapResponse([]byte) ([]byte, error)
}
type Pssh
type Pssh struct {
ContentId []byte
KeyId []byte
}
func (Pssh) Marshal
func (p Pssh) Marshal() []byte