import "41.neocities.org/dash"
type AdaptationSet struct {
ContentProtection []ContentProtection
Lang string `xml:"lang,attr"`
MimeType string `xml:"mimeType,attr"`
Representation []Representation
Role *struct {
Value string `xml:"value,attr"`
}
SegmentTemplate *SegmentTemplate
// pointers for Representation.String
Codecs *string `xml:"codecs,attr"`
Height *int `xml:"height,attr"`
Width *int `xml:"width,attr"`
// contains filtered or unexported fields
}
func (a *AdaptationSet) GetRole() string
type ContentProtection struct {
Pssh string `xml:"pssh"`
SchemeIdUri string `xml:"schemeIdUri,attr"`
}
func (i Initialization) Url(represent *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
}
type Representation struct {
Bandwidth int `xml:"bandwidth,attr"`
BaseUrl Url `xml:"BaseURL"`
Codecs *string `xml:"codecs,attr"`
ContentProtection []ContentProtection
Id string `xml:"id,attr"`
MimeType *string `xml:"mimeType,attr"`
Width *int `xml:"width,attr"`
Height *int `xml:"height,attr"`
SegmentTemplate *SegmentTemplate
SegmentList *SegmentList
SegmentBase *struct {
Initialization struct {
Range string `xml:"range,attr"`
}
IndexRange string `xml:"indexRange,attr"`
}
// contains filtered or unexported fields
}
func (r *Representation) GetAdaptationSet() *AdaptationSet
func (r *Representation) Representation() iter.Seq[*Representation]
func (r *Representation) Segment() iter.Seq[int]
SegmentTemplate
func (r *Representation) String() string
type SegmentList struct {
Initialization struct {
SourceUrl Url `xml:"sourceURL,attr"`
}
SegmentUrl []*struct {
Media Url `xml:"media,attr"`
} `xml:"SegmentURL"`
}
type SegmentTemplate struct {
EndNumber int `xml:"endNumber,attr"`
Initialization Initialization `xml:"initialization,attr"`
Media Media `xml:"media,attr"`
PresentationTimeOffset int `xml:"presentationTimeOffset,attr"`
SegmentTimeline *struct {
S []struct {
D int `xml:"d,attr"` // duration
R int `xml:"r,attr"` // repeat
}
}
StartNumber *int `xml:"startNumber,attr"`
Duration int `xml:"duration,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 *int `xml:"timescale,attr"`
}
| Path | Synopsis |
|---|---|
| internal/mpd-trim |
git clone
https://github.com/3052/dash.git git@github.com:3052/dash.git