import "41.neocities.org/dash"
type AdaptationSet struct { Codecs *string `xml:"codecs,attr"` ContentProtection []ContentProtection 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 }
type ContentProtection struct { Pssh Pssh `xml:"pssh"` SchemeIdUri SchemeIdUri `xml:"schemeIdUri,attr"` }
func (i *Initialization) UnmarshalText(data []byte) error
func (i Initialization) Url(r *Representation) (*url.URL, error)
type Mpd struct { BaseUrl *Url `xml:"BaseURL"` MediaPresentationDuration *Duration `xml:"mediaPresentationDuration,attr"` Period []Period }
func (m *Mpd) Representation() iter.Seq[Representation]
type Period struct { AdaptationSet []AdaptationSet BaseUrl *Url `xml:"BaseURL"` Duration *Duration `xml:"duration,attr"` Id string `xml:"id,attr"` // contains filtered or unexported fields }
SegmentIndexBox uses: unsigned int(32) subsegment_duration; but range values can exceed 32 bits
type Representation struct { Bandwidth int `xml:"bandwidth,attr"` BaseUrl *Url `xml:"BaseURL"` Codecs *string `xml:"codecs,attr"` ContentProtection []ContentProtection Height *int64 `xml:"height,attr"` Id string `xml:"id,attr"` MimeType *string `xml:"mimeType,attr"` SegmentBase *struct { Initialization struct { Range Range `xml:"range,attr"` } IndexRange Range `xml:"indexRange,attr"` } SegmentList *struct { Initialization struct { SourceUrl ListUrl `xml:"sourceURL,attr"` } SegmentUrl []struct { Media ListUrl `xml:"media,attr"` } `xml:"SegmentURL"` } SegmentTemplate *SegmentTemplate Width *int64 `xml:"width,attr"` // contains filtered or unexported fields }
func (r *Representation) Representation() iter.Seq[Representation]
func (r *Representation) Segment() iter.Seq[int]
func (r *Representation) String() string
func (s SchemeIdUri) Widevine() bool
type SegmentTemplate struct { StartNumber *int `xml:"startNumber,attr"` // This can be any frequency but typically is the media clock frequency of // one of the media streams (or a positive integer multiple thereof). Timescale *uint64 `xml:"timescale,attr"` Media Media `xml:"media,attr"` Initialization *Initialization `xml:"initialization,attr"` Duration float64 `xml:"duration,attr"` PresentationTimeOffset int `xml:"presentationTimeOffset,attr"` SegmentTimeline *struct { S []struct { D int `xml:"d,attr"` // duration R int `xml:"r,attr"` // repeat } } }
Path | Synopsis |
---|---|
internal/trim-mpd |
git clone
https://github.com/3052/dash.git git@github.com:3052/dash.git