Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adaptation ¶
type Adaptation struct {
MimeType string `xml:"mimeType,attr"`
Representation []Representation
Role struct {
Value string `xml:"value,attr"`
}
SegmentTemplate struct {
Initialization string `xml:"initialization,attr"`
Media string `xml:"media,attr"`
SegmentTimeline struct {
S []struct {
D int `xml:"d,attr"`
R int `xml:"r,attr"`
}
}
}
}
func Adaptations ¶
func Adaptations(body io.Reader) ([]Adaptation, error)
func (Adaptation) URLs ¶
func (a Adaptation) URLs(u *url.URL, r Representation) ([]*url.URL, error)
type Representation ¶
type Representation struct {
ID string `xml:"id,attr"`
Width int64 `xml:"width,attr"`
Height int64 `xml:"height,attr"`
Bandwidth int64 `xml:"bandwidth,attr"`
}
func (Representation) String ¶
func (r Representation) String() string
Click to show internal directories.
Click to hide internal directories.