Documentation ¶
Index ¶
- type AdaptationSet
- type BaseUrl
- type ContentProtection
- type Duration
- type Mpd
- type Period
- type Pssh
- type Range
- type Representation
- func (r *Representation) Ext() (string, bool)
- func (r *Representation) GetAdaptationSet() *AdaptationSet
- func (r *Representation) GetBaseUrl() (*BaseUrl, bool)
- func (r *Representation) Initialization() (string, bool)
- func (r *Representation) Media() []string
- func (r *Representation) String() string
- func (r *Representation) Widevine() (Pssh, bool)
- type SegmentBase
- type SegmentTemplate
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"` MaxHeight int `xml:"maxHeight,attr"` MaxWidth int `xml:"maxWidth,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 BaseUrl ¶ added in v1.24.0
func (*BaseUrl) UnmarshalText ¶ added in v1.24.0
type ContentProtection ¶
type Duration ¶ added in v1.23.0
func (*Duration) UnmarshalText ¶ added in v1.23.0
type Period ¶ added in v1.22.6
type Period struct { AdaptationSet []AdaptationSet BaseUrl *BaseUrl `xml:"BaseURL"` 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 *BaseUrl `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 Unmarshal ¶ added in v1.23.6
func Unmarshal(text []byte, base *url.URL) ([]Representation, error)
func (*Representation) Ext ¶
func (r *Representation) Ext() (string, bool)
func (*Representation) GetAdaptationSet ¶ added in v1.22.6
func (r *Representation) GetAdaptationSet() *AdaptationSet
func (*Representation) GetBaseUrl ¶ added in v1.24.0
func (r *Representation) GetBaseUrl() (*BaseUrl, bool)
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"` PresentationTimeOffset uint `xml:"presentationTimeOffset,attr"` SegmentTimeline *struct { S []struct { D uint `xml:"d,attr"` // duration R uint `xml:"r,attr"` // repeat } } Timescale uint64 `xml:"timescale,attr"` StartNumber *uint `xml:"startNumber,attr"` }
Click to show internal directories.
Click to hide internal directories.