Package nbc (v1.10.6) [repository]

Index

Variables

var Transport = http.Transport{
	Proxy: func(req *http.Request) (*url.URL, error) {
		if path.Ext(req.URL.Path) != ".mp4" {
			log.Println(req.Method, req.URL)
		}
		return http.ProxyFromEnvironment(req)
	},
}

Functions

func Widevine(data []byte) ([]byte, error)

Types

type Metadata

type Metadata struct {
	MpxAccountId    int64 `json:",string"`
	MpxGuid         int64 `json:",string"`
	ProgrammingType string
}

Methods

func (m *Metadata) New(guid int) error
func (m *Metadata) Vod() (*Vod, error)

type Vod

type Vod struct {
	PlaybackUrl string // MPD
}