Package nbc (v1.11.7) [up] [repository]

Index

Functions

func FetchWidevine(body []byte) ([]byte, error)
func GetName(urlData string) (string, error)

https://nbc.com/saturday-night-live/video/november-15-glen-powell/9000454161

func PlayReady() string

Types

type Metadata

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

Functions

func FetchMetadata(name string) (*Metadata, error)

Methods

func (m *Metadata) FetchStream() (*Stream, error)

type Stream

type Stream struct {
	PlaybackUrl string // MPD
}

Methods

func (s *Stream) GetManifest() (*url.URL, error)