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"` ContentProtection []ContentProtection Height uint64 `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 uint64 `xml:"width,attr"` // contains filtered or unexported fields }
func (AdaptationSet) GetPeriod ¶ added in v1.22.6
func (a AdaptationSet) GetPeriod() *Period
type ContentProtection ¶
type Duration ¶ added in v1.23.0
func (*Duration) UnmarshalText ¶ added in v1.23.0
type Mpd ¶ added in v1.23.0
type Period ¶ added in v1.22.6
type Period struct { AdaptationSet []*AdaptationSet Duration *Duration `xml:"duration,attr"` Id string `xml:"id,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 uint64 `xml:"bandwidth,attr"` BaseUrl *Url `xml:"BaseURL"` Codecs string `xml:"codecs,attr"` ContentProtection []ContentProtection Height uint64 `xml:"height,attr"` Id string `xml:"id,attr"` MimeType string `xml:"mimeType,attr"` SegmentBase *SegmentBase SegmentTemplate *SegmentTemplate Width uint64 `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) Initialization ¶
func (r Representation) Initialization() (string, bool)
func (Representation) Media ¶
func (r Representation) Media() []string
func (Representation) String ¶
func (r Representation) String() string
func (Representation) Widevine ¶ added in v1.22.9
func (r Representation) Widevine() (Pssh, bool)
type SegmentBase ¶ added in v1.22.6
type SegmentTemplate ¶
type SegmentTemplate struct { Duration uint64 `xml:"duration,attr"` Initialization string `xml:"initialization,attr"` Media string `xml:"media,attr"` StartNumber uint `xml:"startNumber,attr"` PresentationTimeOffset uint `xml:"presentationTimeOffset,attr"` Timescale uint64 `xml:"timescale,attr"` SegmentTimeline *struct { S []struct { D uint `xml:"d,attr"` // duration R uint `xml:"r,attr"` // repeat } } }
Click to show internal directories.
Click to hide internal directories.