dash

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 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 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 Range added in v1.16.2

type Range string

func (Range) Scan added in v1.16.2

func (r Range) Scan() (int, int, 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 Range `xml:"range,attr"`
		}
		IndexRange Range `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)

media presentation description wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP

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

func (Representation) PSSH added in v1.15.2

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

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