dash

package
v1.31.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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  []Representation
	SegmentTemplate Template
}

func Adaptations

func Adaptations(body io.Reader) ([]Adaptation, error)

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