Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptationSet ¶
type AdaptationSet struct { Codecs *string `xml:"codecs,attr"` Height *int64 `xml:"height,attr"` Lang *string `xml:"lang,attr"` MimeType *string `xml:"mimeType,attr"` Representation []*Representation Role *struct { Value string `xml:"value,attr"` } SegmentTemplate *SegmentTemplate Width *int64 `xml:"width,attr"` // contains filtered or unexported fields }
func (AdaptationSet) GetPeriod ¶ added in v1.22.6
func (a AdaptationSet) GetPeriod() *Period
type MPD ¶ added in v1.22.6
type Period ¶ added in v1.22.6
type Period struct { AdaptationSet []*AdaptationSet Duration *string `xml:"duration,attr"` // contains filtered or unexported fields }
type Range ¶ added in v1.22.6
SegmentIndexBox uses: unsigned int(32) subsegment_duration; but range values can exceed 32 bits
func (Range) MarshalText ¶ added in v1.22.6
func (*Range) UnmarshalText ¶ added in v1.22.6
type Representation ¶
type Representation struct { Bandwidth int64 `xml:"bandwidth,attr"` BaseUrl *string `xml:"BaseURL"` Codecs *string `xml:"codecs,attr"` Height *int64 `xml:"height,attr"` ID string `xml:"id,attr"` MimeType *string `xml:"mimeType,attr"` SegmentBase *SegmentBase SegmentTemplate *SegmentTemplate Width *int64 `xml:"width,attr"` // contains filtered or unexported fields }
func (Representation) Ext ¶
func (r Representation) Ext() (string, bool)
func (Representation) GetAdaptationSet ¶ added in v1.22.6
func (r Representation) GetAdaptationSet() *AdaptationSet
func (Representation) GetSegmentTemplate ¶ added in v1.22.6
func (r Representation) GetSegmentTemplate() (*SegmentTemplate, bool)
func (Representation) String ¶
func (r Representation) String() string
type SegmentBase ¶ added in v1.22.6
type SegmentTemplate ¶
type SegmentTemplate struct { Duration *float64 `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 } } Timescale *float64 `xml:"timescale,attr"` StartNumber *int `xml:"startNumber,attr"` PresentationTimeOffset int `xml:"presentationTimeOffset,attr"` }
func (SegmentTemplate) GetInitialization ¶ added in v1.22.6
func (s SegmentTemplate) GetInitialization(r *Representation) (string, bool)
func (SegmentTemplate) GetMedia ¶ added in v1.22.6
func (s SegmentTemplate) GetMedia(r *Representation) ([]string, error)
Click to show internal directories.
Click to hide internal directories.