dash

package
v1.20.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: OSL-3.0 Imports: 7 Imported by: 6

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdaptationSet added in v1.15.2

type AdaptationSet struct {
	Codecs         *string `xml:"codecs,attr"`
	Lang           *string `xml:"lang,attr"`
	MimeType       *string `xml:"mimeType,attr"`
	Representation []Representation
	Role           *struct {
		Value string `xml:"value,attr"`
	}
	SegmentTemplate *SegmentTemplate
	// contains filtered or unexported fields
}

func (AdaptationSet) GetPeriod added in v1.20.1

func (a AdaptationSet) GetPeriod() *Period

type Period added in v1.16.5

type Period struct {
	AdaptationSet []AdaptationSet
	Duration      *string `xml:"duration,attr"`
	// contains filtered or unexported fields
}

func (Period) Seconds added in v1.20.1

func (p Period) Seconds() (float64, error)

type Range added in v1.16.2

type Range string

func (Range) Scan added in v1.16.2

func (r Range) Scan() (uint64, uint64, error)

range-start and range-end can both exceed 32 bits, so we must use 64 bit

type Representation added in v1.12.4

type Representation struct {
	Bandwidth   int64 `xml:"bandwidth,attr"`
	BaseURL     *string
	Codecs      *string `xml:"codecs,attr"`
	Height      *int64  `xml:"height,attr"`
	ID          string  `xml:"id,attr"`
	MimeType    *string `xml:"mimeType,attr"`
	SegmentBase *struct {
		IndexRange     Range `xml:"indexRange,attr"`
		Initialization struct {
			Range Range `xml:"range,attr"`
		}
	}
	SegmentTemplate *SegmentTemplate
	Width           *int64 `xml:"width,attr"`
	// contains filtered or unexported fields
}

func Unmarshal added in v1.18.4

func Unmarshal(b []byte) ([]Representation, error)

func (Representation) Ext added in v1.12.4

func (r Representation) Ext() (string, bool)

func (Representation) GetAdaptationSet added in v1.20.1

func (r Representation) GetAdaptationSet() *AdaptationSet

func (Representation) GetSegmentTemplate added in v1.20.1

func (r Representation) GetSegmentTemplate() (*SegmentTemplate, bool)

func (Representation) String added in v1.12.4

func (r Representation) String() string

type SegmentTemplate added in v1.15.2

type SegmentTemplate struct {
	Duration        *float64 `xml:"duration,attr"`
	Initialization  *string  `xml:"initialization,attr"`
	Media           string   `xml:"media,attr"`
	SegmentTimeline *struct {
		S []struct {
			D int  `xml:"d,attr"` // duration
			R *int `xml:"r,attr"` // repeat
		}
	}
	StartNumber *int     `xml:"startNumber,attr"`
	Timescale   *float64 `xml:"timescale,attr"`
}

func (SegmentTemplate) GetInitialization added in v1.20.1

func (s SegmentTemplate) GetInitialization(r Representation) (string, bool)

func (SegmentTemplate) GetMedia added in v1.20.1

func (s SegmentTemplate) GetMedia(r Representation) ([]string, error)

Jump to

Keyboard shortcuts

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