dash

package
v1.32.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adaptation

type Adaptation struct {
	MimeType        string `xml:"mimeType,attr"`
	Representation  []Represent
	SegmentTemplate *Template
}

type AdaptationSet added in v1.31.4

type AdaptationSet []Adaptation

func NewAdaptationSet added in v1.32.9

func NewAdaptationSet(body io.Reader) (AdaptationSet, error)

func (AdaptationSet) Audio added in v1.32.9

func (a AdaptationSet) Audio() AdaptationSet

func (AdaptationSet) Represent added in v1.32.9

func (a AdaptationSet) Represent(bandwidth int64) *Represent

func (AdaptationSet) Video added in v1.32.9

func (a AdaptationSet) Video() AdaptationSet

type Represent added in v1.32.5

type Represent struct {
	ID              string `xml:"id,attr"`
	Width           int64  `xml:"width,attr"`
	Height          int64  `xml:"height,attr"`
	Bandwidth       int64  `xml:"bandwidth,attr"`
	Codecs          string `xml:"codecs,attr"`
	SegmentTemplate *Template
}

func (Represent) String added in v1.32.8

func (r Represent) String() string

func (Represent) URL added in v1.32.8

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

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