Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptationSet ¶ added in v1.15.2
type AdaptationSet struct { Codecs *string `xml:"codecs,attr"` Lang *string `xml:"lang,attr"` MimeType *string `xml:"mimeType,attr"` Representation []Representation Role *struct { Value string `xml:"value,attr"` } SegmentTemplate *SegmentTemplate // contains filtered or unexported fields }
func (AdaptationSet) GetPeriod ¶ added in v1.20.1
func (a AdaptationSet) GetPeriod() *Period
type Period ¶ added in v1.16.5
type Period struct { AdaptationSet []AdaptationSet Duration *string `xml:"duration,attr"` // contains filtered or unexported fields }
type Representation ¶ added in v1.12.4
type Representation struct { Bandwidth int64 `xml:"bandwidth,attr"` BaseURL *string Codecs *string `xml:"codecs,attr"` Height *int64 `xml:"height,attr"` ID string `xml:"id,attr"` MimeType *string `xml:"mimeType,attr"` SegmentBase *struct { IndexRange Range `xml:"indexRange,attr"` Initialization struct { Range Range `xml:"range,attr"` } } SegmentTemplate *SegmentTemplate Width *int64 `xml:"width,attr"` // contains filtered or unexported fields }
func Unmarshal ¶ added in v1.18.4
func Unmarshal(b []byte) ([]Representation, error)
func (Representation) Ext ¶ added in v1.12.4
func (r Representation) Ext() (string, bool)
func (Representation) GetAdaptationSet ¶ added in v1.20.1
func (r Representation) GetAdaptationSet() *AdaptationSet
func (Representation) GetSegmentTemplate ¶ added in v1.20.1
func (r Representation) GetSegmentTemplate() (*SegmentTemplate, bool)
func (Representation) String ¶ added in v1.12.4
func (r Representation) String() string
type SegmentTemplate ¶ added in v1.15.2
type SegmentTemplate struct { Duration *int `xml:"duration,attr"` Initialization *string `xml:"initialization,attr"` Media string `xml:"media,attr"` SegmentTimeline *struct { S []struct { D int `xml:"d,attr"` // duration R *int `xml:"r,attr"` // repeat } } StartNumber *int `xml:"startNumber,attr"` Timescale *int `xml:"timescale,attr"` }
func (SegmentTemplate) GetInitialization ¶ added in v1.20.1
func (s SegmentTemplate) GetInitialization(r Representation) (string, bool)
func (SegmentTemplate) GetMedia ¶ added in v1.20.1
func (s SegmentTemplate) GetMedia(r Representation) ([]string, error)
Click to show internal directories.
Click to hide internal directories.