dash

package
v1.19.5 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 ContentProtection added in v1.15.2

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

type Default_KID added in v1.18.6

type Default_KID string

func (Default_KID) Decode added in v1.18.6

func (d Default_KID) Decode() ([]byte, error)

type PSSH added in v1.18.6

type PSSH string

func (PSSH) Decode added in v1.18.6

func (p PSSH) Decode() ([]byte, error)

type Range added in v1.16.2

type Range struct {
	Start uint64
	End   uint64
}

type RawRange added in v1.18.8

type RawRange string

func (RawRange) Scan added in v1.18.8

func (r RawRange) Scan() (*Range, error)

type Representation added in v1.12.4

type Representation struct {
	Bandwidth int64  `xml:"bandwidth,attr"`
	ID        string `xml:"id,attr"`
	// this might not exist
	BaseURL string
	// this might not exist, or might be under AdaptationSet
	Codecs string `xml:"codecs,attr"`
	// this might be under AdaptationSet
	ContentProtection []ContentProtection
	// this might not exist
	Height int64 `xml:"height,attr"`
	// this might be under AdaptationSet
	MimeType string `xml:"mimeType,attr"`
	// this might not exist
	SegmentBase *struct {
		Initialization struct {
			Range RawRange `xml:"range,attr"`
		}
		IndexRange RawRange `xml:"indexRange,attr"`
	}
	// this might not exist, or might be under AdaptationSet
	SegmentTemplate *SegmentTemplate
	// this might not exist
	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) Default_KID added in v1.15.2

func (r Representation) Default_KID() (Default_KID, bool)

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

func (Representation) PSSH added in v1.15.2

func (r Representation) PSSH() (PSSH, bool)

func (Representation) String added in v1.12.4

func (r Representation) String() string

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