dash

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: OSL-3.0 Imports: 5 Imported by: 6

README

Documentation

Index

Constants

View Source
const Template = `` /* 1130-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type AdaptationSet added in v1.15.2

type AdaptationSet struct {
	// this might be under Representation
	Codecs string `xml:"codecs,attr"`
	// this might be under Representation
	ContentProtection []ContentProtection
	// this might not exist
	Lang string `xml:"lang,attr"`
	// this might be under Representation
	MimeType string `xml:"mimeType,attr"`
	// pointer because we want to edit these
	Representation []Representation
	// this might not exist
	Role *struct {
		Value string `xml:"value,attr"`
	}
	// this might not exist, or might be under Representation
	SegmentTemplate *SegmentTemplate
}

type ContentProtection added in v1.15.2

type ContentProtection struct {
	SchemeIdUri string `xml:"schemeIdUri,attr"`
	// this might not exist
	Default_KID string `xml:"default_KID,attr"`
	// this might not exist
	PSSH string `xml:"pssh"`
}

type IndexRange added in v1.16.1

type IndexRange struct {
	Start int
	End   int
}

func (*IndexRange) UnmarshalText added in v1.16.1

func (i *IndexRange) UnmarshalText(b []byte) error

type MPD added in v1.16.0

type MPD struct {
	Period []struct {
		AdaptationSet []AdaptationSet
		ID            string `xml:"id,attr"`
	}
}

func (MPD) Every added in v1.16.0

func (m MPD) Every(f func(Representation))

func (MPD) Some added in v1.16.0

func (m MPD) Some(f func(Representation) bool)

type Representation added in v1.12.4

type Representation struct {
	Bandwidth int    `xml:"bandwidth,attr"`
	ID        string `xml:"id,attr"`
	// this might not exist
	BaseURL string
	// this might be under AdaptationSet
	Codecs string `xml:"codecs,attr"`
	// this might be under AdaptationSet
	ContentProtection []ContentProtection
	// this might not exist
	Height *int `xml:"height,attr"`
	// this might be under AdaptationSet
	MimeType string `xml:"mimeType,attr"`
	// this might not exist
	SegmentBase *struct {
		IndexRange IndexRange `xml:"indexRange,attr"`
	}
	// this might not exist, or might be under AdaptationSet
	SegmentTemplate *SegmentTemplate
	// this might not exist
	Width *int `xml:"width,attr"`
}

func (Representation) Default_KID added in v1.15.2

func (r Representation) Default_KID() ([]byte, error)

func (Representation) Ext added in v1.12.4

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

func (Representation) Initialization added in v1.12.4

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

func (Representation) Media added in v1.12.4

func (r Representation) Media() ([]string, bool)

func (Representation) PSSH added in v1.15.2

func (r Representation) PSSH() ([]byte, error)

type SegmentTemplate added in v1.15.2

type SegmentTemplate struct {
	Media           string `xml:"media,attr"`
	SegmentTimeline struct {
		S []struct {
			// duration
			D int `xml:"d,attr"`
			// repeat. this may not exist
			R int `xml:"r,attr"`
		}
	}
	StartNumber int `xml:"startNumber,attr"`
	// this may not exist
	Initialization string `xml:"initialization,attr"`
}

Jump to

Keyboard shortcuts

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