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

Index

Functions

func GetName(rawUrl string) (string, error)

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

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

Types

type Dash

type Dash struct {
	Body []byte
	Url  *url.URL
}

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) Stream() (*Stream, error)

type Stream

type Stream struct {
	PlaybackUrl string // MPD
}

Methods

func (s Stream) Dash() (*Dash, error)