Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Audio ¶
func Audio(r Representation) 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
func (Representation) Initialization ¶ added in v1.12.4
func (r Representation) Initialization() string
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
Click to show internal directories.
Click to hide internal directories.