dash

package
v1.12.9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 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 Representation) bool

func Not

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

func Video

func Video(r Representation) bool

Types

type Adaptation added in v1.12.4

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

amcplus.com

type Content_Protection added in v1.12.4

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

roku.com

type Representation added in v1.12.4

type Representation struct {
	// roku.com
	Adaptation *Adaptation
	// roku.com
	Bandwidth int `xml:"bandwidth,attr"`
	// roku.com
	Codecs string `xml:"codecs,attr"`
	// roku.com
	Content_Protection []Content_Protection `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 *Segment_Template `xml:"SegmentTemplate"`
	// roku.com
	Width int `xml:"width,attr"`
}

func Representations added in v1.12.5

func Representations(r io.Reader) ([]Representation, 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) String added in v1.12.4

func (r Representation) String() string

func (Representation) Widevine added in v1.12.4

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

type Segment_Template added in v1.12.4

type Segment_Template struct {
	Initialization   string `xml:"initialization,attr"`
	Media            string `xml:"media,attr"`
	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

Jump to

Keyboard shortcuts

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