Documentation
¶
Index ¶
Constants ¶
View Source
const ( Audio = "audio/mp4" Video = "video/mp4" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adaptation ¶
type Adaptation struct {
MimeType string `xml:"mimeType,attr"`
Representation []Represent
ContentProtection *Protection
SegmentTemplate *Template
}
type AdaptationSet ¶ added in v1.31.4
type AdaptationSet []Adaptation
func NewAdaptationSet ¶ added in v1.32.9
func NewAdaptationSet(body io.Reader) (AdaptationSet, error)
func (AdaptationSet) MimeType ¶ added in v1.31.4
func (a AdaptationSet) MimeType(typ string) AdaptationSet
func (AdaptationSet) Represent ¶ added in v1.32.9
func (a AdaptationSet) Represent(bandwidth int64) *Represent
type Protection ¶ added in v1.34.3
type Protection struct {
Default_KID string `xml:"default_KID,attr"`
}
type Represent ¶ added in v1.32.5
type Represent struct {
ID string `xml:"id,attr"` // RepresentationID
Width int64 `xml:"width,attr"`
Height int64 `xml:"height,attr"`
Bandwidth int64 `xml:"bandwidth,attr"` // handle duplicate height
Codecs string `xml:"codecs,attr"` // handle missing height
ContentProtection *Protection
SegmentTemplate *Template
}
func (Represent) Initialization ¶ added in v1.33.4
Click to show internal directories.
Click to hide internal directories.