dash

package
v1.39.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Audio = "audio/mp4"
	Video = "video/mp4"
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(w io.Writer, r io.Reader, key []byte) error

Types

type Adaptation

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

type AdaptationSet

type AdaptationSet []Adaptation

func NewAdaptationSet

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

func (AdaptationSet) MimeType

func (a AdaptationSet) MimeType(typ string) AdaptationSet

func (AdaptationSet) Represent

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

type Represent

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) Initialization

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

func (Represent) Media

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

func (Represent) String

func (r Represent) String() string

type Segment

type Segment struct {
	D int `xml:"d,attr"`
	R int `xml:"r,attr"`
	T int `xml:"t,attr"`
}

type Template

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