Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Audio ¶
func Audio(r Representer) 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 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 ¶
Click to show internal directories.
Click to hide internal directories.