dash

package
v1.44.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adaptation

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

type ContentProtection

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

type Media

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

func (Media) Representations

func (m Media) Representations() Representations

type Representation

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

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

func (r Representation) String() string

type Representations

type Representations []Representation

func (Representations) AVC1 added in v1.44.5

func (Representations) English added in v1.44.5

func (r Representations) English() *Representation

func (Representations) Get_Bandwidth

func (r Representations) Get_Bandwidth(v int64) *Representation

func (Representations) MP4A added in v1.44.5

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