Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bandwidth ¶ added in v1.45.9
func Bandwidth(r []Representation, b int) int
Types ¶
type Adaptation ¶
type Adaptation struct { Codecs string `xml:"codecs,attr"` ContentProtection *ContentProtection Lang string `xml:"lang,attr"` MimeType string `xml:"mimeType,attr"` Role *struct { Value string `xml:"value,attr"` } SegmentTemplate *SegmentTemplate Representation []Representation }
type ContentProtection ¶
type ContentProtection struct {
Default_KID string `xml:"default_KID,attr"`
}
type Filter ¶ added in v1.45.9
type Filter interface { Audio([]Representation) ([]Representation, int) Video([]Representation) ([]Representation, int) }
type Presentation ¶ added in v1.46.6
type Presentation struct { Period struct { AdaptationSet []Adaptation } }
func (Presentation) Representation ¶ added in v1.46.6
func (p Presentation) Representation() []Representation
type Representation ¶
type Representation struct { Adaptation *Adaptation Bandwidth int `xml:"bandwidth,attr"` Codecs string `xml:"codecs,attr"` ContentProtection *ContentProtection Height int `xml:"height,attr"` ID string `xml:"id,attr"` MimeType string `xml:"mimeType,attr"` SegmentTemplate *SegmentTemplate Width int `xml:"width,attr"` }
func Audio ¶ added in v1.45.9
func Audio(r []Representation) []Representation
func Video ¶ added in v1.45.9
func Video(r []Representation) []Representation
func (Representation) Ext ¶
func (r Representation) Ext() string
func (Representation) Initialization ¶
func (r Representation) Initialization() string
func (Representation) Media ¶
func (r Representation) Media() []string
func (Representation) Role ¶
func (r Representation) Role() string
func (Representation) String ¶
func (r Representation) String() string
Click to show internal directories.
Click to hide internal directories.