dash

package
v1.35.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: OSL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeAudio = "audio/mp4"
	TypeVideo = "video/mp4"
)

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(w io.Writer, r io.Reader, key []byte) error

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    []Represent
	Role              *struct {
		Value string `xml:"value,attr"`
	}
	SegmentTemplate *Template
}

type Period added in v1.31.4

type Period struct {
	AdaptationSet []Adaptation
}

func NewPeriod added in v1.31.4

func NewPeriod(body io.Reader) (*Period, error)

func (Period) Protection added in v1.34.8

func (p Period) Protection() *Protection

func (Period) Represents added in v1.35.2

func (p Period) Represents(fn PeriodFunc) Represents

type PeriodFunc added in v1.35.2

type PeriodFunc func(Adaptation, Represent) bool

type Protection added in v1.34.3

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

func (Protection) KID added in v1.34.4

func (p Protection) KID() ([]byte, error)

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