dash

package
v1.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2022 License: OSL-3.0 Imports: 5 Imported by: 0

README

DASH

AMC

go run . -b 1011152 -f 9999999 -g 0

key:

a66a5603545ad206c1a78e160a6710b1

https://amcplus.com/shows/orphan-black/episodes/season-1-instinct--1011152

Paramount

go run . -d -b eyT_RYkqNuH_6ZYrepLtxkiPO1HA7dIU -f 9999999 -g 0

key:

44f12639c9c4a5a432338aca92e38920

https://paramountplus.com/shows/video/eyT_RYkqNuH_6ZYrepLtxkiPO1HA7dIU

Roku

go run . -d -b 597a64a4a25c5bf6af4a8c7053049a6f -f 9999999 -g 0

key:

13d7c7cf295444944b627ef0ad2c1b3c

https://therokuchannel.roku.com/watch/597a64a4a25c5bf6af4a8c7053049a6f

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Audio added in v1.33.0

func Audio(a Adaptation, r Represent) bool

func Decrypt added in v1.33.4

func Decrypt(dst io.Writer, src io.Reader, key []byte) error

func DecryptInit added in v1.37.2

func DecryptInit(dst io.Writer, src io.Reader) error

Need for Mozilla Firefox and VLC media player

func Video added in v1.33.0

func Video(a Adaptation, r Represent) bool

Types

type Adaptation

type Adaptation struct {
	ContentProtection *Protection
	Lang              string `xml:"lang,attr"`
	MimeType          string `xml:"mimeType,attr"`
	Representation    Represents
	Role              *struct {
		Value string `xml:"value,attr"`
	}
	SegmentTemplate *Template
}

type AdaptationFunc added in v1.37.5

type AdaptationFunc func(Adaptation, Represent) bool

type Media added in v1.37.5

type Media struct {
	Period struct {
		AdaptationSet []Adaptation
	}
}

func (Media) Protection added in v1.37.5

func (m Media) Protection() *Protection

func (Media) Represents added in v1.37.5

func (m Media) Represents(fn AdaptationFunc) Represents

type Protection added in v1.34.3

type Protection struct {
	Default_KID string `xml:"default_KID,attr"`
}

type Represent added in v1.32.5

type Represent struct {
	ID                string `xml:"id,attr"` // RepresentationID
	Width             int64  `xml:"width,attr"`
	Height            int64  `xml:"height,attr"`
	Bandwidth         int64  `xml:"bandwidth,attr"` // handle duplicate height
	Codecs            string `xml:"codecs,attr"`    // handle missing height
	MimeType          string `xml:"mimeType,attr"`
	ContentProtection *Protection
	SegmentTemplate   *Template
}

func (Represent) Initialization added in v1.33.4

func (r Represent) Initialization(base *url.URL) (*url.URL, error)

func (Represent) Media added in v1.33.4

func (r Represent) Media(base *url.URL) ([]*url.URL, error)

func (Represent) String added in v1.32.8

func (r Represent) String() string

type Represents added in v1.34.8

type Represents []Represent

func (Represents) Represent added in v1.34.8

func (r Represents) Represent(bandwidth int64) *Represent

type Segment added in v1.31.2

type Segment struct {
	D int `xml:"d,attr"`
	R int `xml:"r,attr"`
	T int `xml:"t,attr"`
}

type Template added in v1.31.3

type Template struct {
	Initialization  string `xml:"initialization,attr"`
	Media           string `xml:"media,attr"`
	SegmentTimeline struct {
		S []Segment
	}
	StartNumber *int `xml:"startNumber,attr"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL