dash

package
v1.47.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: OSL-3.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bandwidth added in v1.45.9

func Bandwidth(r []Representation, b int) int

Types

type Adaptation

type Adaptation struct {
	Codecs            string `xml:"codecs,attr"`
	ContentProtection *ContentProtection
	Lang              string `xml:"lang,attr"`
	MimeType          string `xml:"mimeType,attr"`
	Role              *struct {
		Value string `xml:"value,attr"`
	}
	SegmentTemplate *SegmentTemplate
	Representation  []Representation
}

type ContentProtection

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

type Filter added in v1.45.9

type Filter interface {
	Audio([]Representation) ([]Representation, int)
	Video([]Representation) ([]Representation, int)
}

type Presentation added in v1.46.6

type Presentation struct {
	Period struct {
		AdaptationSet []Adaptation
	}
}

func (Presentation) Representation added in v1.46.6

func (p Presentation) Representation() []Representation

type Representation

type Representation struct {
	Adaptation        *Adaptation
	Bandwidth         int    `xml:"bandwidth,attr"`
	Codecs            string `xml:"codecs,attr"`
	ContentProtection *ContentProtection
	Height            int    `xml:"height,attr"`
	ID                string `xml:"id,attr"`
	MimeType          string `xml:"mimeType,attr"`
	SegmentTemplate   *SegmentTemplate
	Width             int `xml:"width,attr"`
}

func Audio added in v1.45.9

func Audio(r []Representation) []Representation

func Video added in v1.45.9

func Video(r []Representation) []Representation

func (Representation) Ext

func (r Representation) Ext() string

func (Representation) Initialization

func (r Representation) Initialization() string

func (Representation) Media

func (r Representation) Media() []string

func (Representation) Role

func (r Representation) Role() string

func (Representation) String

func (r Representation) String() string

type SegmentTemplate

type SegmentTemplate struct {
	Initialization  string `xml:"initialization,attr"`
	Media           string `xml:"media,attr"`
	SegmentTimeline struct {
		S []struct {
			Duration int `xml:"d,attr"`
			Repeat   int `xml:"r,attr"`
			Time     int `xml:"t,attr"`
		}
	}
	StartNumber *int `xml:"startNumber,attr"`
}

Jump to

Keyboard shortcuts

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