dash

package
v1.11.6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: OSL-3.0 Imports: 6 Imported by: 6

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Audio

func Audio(r Representer) bool

func Not

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

func Video

func Video(r Representer) bool

Types

type Adapter

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

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

roku.com

type Representer

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

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

func (Representer) Ext

func (r Representer) Ext() string

func (Representer) String

func (r Representer) String() string

func (Representer) Widevine

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

type Template

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

func (t Template) Get_Initialization() string

func (Template) Get_Media

func (t Template) Get_Media() []string

Jump to

Keyboard shortcuts

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