dash

package
v1.32.6 Latest Latest
Warning

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

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

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

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(bandwidth int) *Represent

func (Period) Video added in v1.31.4

func (p Period) Video(bandwidth int) *Represent

type Represent added in v1.32.5

type Represent struct {
	ID                string `xml:"id,attr"`
	Width             int    `xml:"width,attr"`
	Height            int    `xml:"height,attr"`
	Bandwidth         int    `xml:"bandwidth,attr"`
	Codecs            string `xml:"codecs,attr"`
	ContentProtection []struct {
		SchemeID string `xml:"schemeIdUri,attr"`
		PSSH     string `xml:"pssh"`
	}
}

func (Represent) Format added in v1.32.5

func (r Represent) Format(f fmt.State, verb rune)

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) Base added in v1.32.5

func (t Template) Base(rep Represent) string

func (Template) URL added in v1.32.5

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

Jump to

Keyboard shortcuts

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