dash

package
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 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 AdaptationSet added in v1.31.4

type AdaptationSet struct {
	ContentType    string `xml:"contentType,attr"`
	MimeType       string `xml:"mimeType,attr"`
	Representation []Representation
	Role           struct {
		Value string `xml:"value,attr"`
	}
	SegmentTemplate Template
}

func (AdaptationSet) Len added in v1.31.5

func (a AdaptationSet) Len() int

func (AdaptationSet) Swap added in v1.31.5

func (a AdaptationSet) Swap(i, j int)

type Bandwidth added in v1.31.5

type Bandwidth struct {
	*AdaptationSet
	Target int64
}

func (Bandwidth) Less added in v1.31.5

func (b Bandwidth) Less(i, j int) bool

type Period added in v1.31.4

type Period struct {
	AdaptationSet []AdaptationSet
}

func NewPeriod added in v1.31.4

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

func (Period) Audio added in v1.31.4

func (p Period) Audio(video *AdaptationSet) *AdaptationSet

func (Period) Video added in v1.31.4

func (p Period) Video() *AdaptationSet

type Representation

type Representation struct {
	ID        string `xml:"id,attr"`
	Width     int64  `xml:"width,attr"`
	Height    int64  `xml:"height,attr"`
	Bandwidth int64  `xml:"bandwidth,attr"`
}

func (Representation) String

func (r Representation) String() string

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
	}
}

func (Template) Replace added in v1.31.3

func (t Template) Replace(rep Representation) Template

func (Template) URLs added in v1.31.3

func (t Template) URLs(base *url.URL) ([]*url.URL, error)

Jump to

Keyboard shortcuts

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