Documentation
¶
Index ¶
Constants ¶
View Source
const ( Audio = "audio/mp4" Video = "video/mp4" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Period ¶ added in v1.31.4
type Period struct {
AdaptationSet []struct {
ContentProtection *Protection
MimeType string `xml:"mimeType,attr"`
Representation []Represent
Role *struct {
Value string `xml:"value,attr"`
}
SegmentTemplate *Template
}
}
func (Period) MimeType ¶ added in v1.34.8
func (p Period) MimeType(typ string) Represents
func (Period) Protection ¶ added in v1.34.8
func (p Period) Protection() *Protection
type Protection ¶ added in v1.34.3
type Protection struct {
Default_KID string `xml:"default_KID,attr"`
}
func (Protection) KID ¶ added in v1.34.4
func (p Protection) KID() ([]byte, error)
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
MimeType string `xml:"mimeType,attr"`
ContentProtection *Protection
SegmentTemplate *Template
}
func (Represent) Initialization ¶ added in v1.33.4
type Represents ¶ added in v1.34.8
type Represents []Represent
func (Represents) Represent ¶ added in v1.34.8
func (r Represents) Represent(bandwidth int64) *Represent
Click to show internal directories.
Click to hide internal directories.