dash

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: OSL-3.0 Imports: 6 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Audio added in v1.5.6

func Audio(r Representer) bool

func Not added in v1.6.9

func Not[E any](fn func(E) bool) func(E) bool

func Video added in v1.5.6

func Video(r Representer) bool

Types

type Adapter added in v1.7.4

type Adapter struct {
	Content_Protection []Protecter `xml:"ContentProtection"`
	Lang               string      `xml:"lang,attr"`
	MIME_Type          string      `xml:"mimeType,attr"`
	Segment_Template   *Template   `xml:"SegmentTemplate"`
	Representation     []Representer
	Role               *struct {
		Value string `xml:"value,attr"`
	}
}

amcplus.com

type Protecter added in v1.7.4

type Protecter struct {
	PSSH          string `xml:"pssh"`
	Scheme_ID_URI string `xml:"schemeIdUri,attr"`
}

roku.com

type Representer added in v1.7.4

type Representer struct {
	// roku.com
	Bandwidth int `xml:"bandwidth,attr"`
	// roku.com
	Codecs string `xml:"codecs,attr"`
	// roku.com
	Content_Protection []Protecter `xml:"ContentProtection"`
	// roku.com
	Height int `xml:"height,attr"`
	// roku.com
	ID string `xml:"id,attr"`
	// paramountplus.com
	MIME_Type *string `xml:"mimeType,attr"`
	// roku.com
	Segment_Template *Template `xml:"SegmentTemplate"`
	// roku.com
	Width int `xml:"width,attr"`
	// roku.com
	Adaptation_Set *Adapter
}

func Representers added in v1.7.4

func Representers(r io.Reader) ([]Representer, error)

func (Representer) Ext added in v1.7.4

func (r Representer) Ext() string

func (Representer) String added in v1.7.4

func (r Representer) String() string

func (Representer) Widevine added in v1.7.4

func (r Representer) Widevine() ([]byte, error)

type Template added in v1.7.4

type Template struct {
	Initialization   string `xml:"initialization,attr"`
	Media            string `xml:"media,attr"`
	Representation   *Representer
	Segment_Timeline struct {
		S []struct {
			D int `xml:"d,attr"` // duration
			R int `xml:"r,attr"` // repeat
			T int `xml:"t,attr"` // time
		}
	} `xml:"SegmentTimeline"`
	Start_Number int `xml:"startNumber,attr"`
}

roku.com

func (Template) Get_Initialization added in v1.7.4

func (t Template) Get_Initialization() string

func (Template) Get_Media added in v1.7.4

func (t Template) Get_Media() []string

Jump to

Keyboard shortcuts

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