dash

package
v1.21.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: OSL-3.0 Imports: 6 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"`
	Height         *int64  `xml:"height,attr"`
	Lang           *string `xml:"lang,attr"`
	MimeType       *string `xml:"mimeType,attr"`
	Representation []*Representation
	Role           *struct {
		Value string `xml:"value,attr"`
	}
	SegmentTemplate *SegmentTemplate
	Width           *int64 `xml:"width,attr"`
	// contains filtered or unexported fields
}

func (AdaptationSet) GetPeriod added in v1.20.1

func (a AdaptationSet) GetPeriod() *Period

type MPD added in v1.16.0

type MPD struct {
	BaseURL                   string `xml:"BaseURL"`
	MediaPresentationDuration string `xml:"mediaPresentationDuration,attr"`
	Period                    []*Period
}

func (*MPD) Unmarshal added in v1.20.8

func (m *MPD) Unmarshal(data []byte) error

type Period added in v1.16.5

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

func (Period) GetMpd added in v1.20.8

func (p Period) GetMpd() *MPD

func (Period) Seconds added in v1.20.1

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

type Range added in v1.16.2

type Range string

range values can exceed 32 bits, so make sure to unmarshal to 64 bit

func (Range) Cut added in v1.16.5

func (r Range) Cut() (string, string, bool)

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 (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