dash

package module
v1.23.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: OSL-3.0 Imports: 8 Imported by: 0

README

DASH

ISO/IEC 23009-1

contact

email
srpen6@gmail.com
Discord
srpen6
https://discord.com/invite/WWq6rFb8Rf

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 ContentProtection struct {
	Pssh        Pssh   `xml:"pssh"`
	SchemeIdUri string `xml:"schemeIdUri,attr"`
}

type Duration added in v1.23.0

type Duration struct {
	D time.Duration
}

func (*Duration) UnmarshalText added in v1.23.0

func (d *Duration) UnmarshalText(text []byte) error

type Mpd added in v1.23.0

type Mpd struct {
	BaseUrl                   *Url      `xml:"BaseURL"`
	MediaPresentationDuration *Duration `xml:"mediaPresentationDuration,attr"`
	Period                    []*Period
}

func (*Mpd) Unmarshal added in v1.23.0

func (m *Mpd) Unmarshal(text []byte) error

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
}

func (Period) GetMpd added in v1.22.6

func (p Period) GetMpd() *Mpd

type Pssh added in v1.23.0

type Pssh []byte

func (*Pssh) UnmarshalText added in v1.23.0

func (p *Pssh) UnmarshalText(src []byte) error

type Range added in v1.22.6

type Range struct {
	Start uint64
	End   uint64
}

SegmentIndexBox uses: unsigned int(32) subsegment_duration; but range values can exceed 32 bits

func (Range) MarshalText added in v1.22.6

func (r Range) MarshalText() ([]byte, error)

func (*Range) UnmarshalText added in v1.22.6

func (r *Range) UnmarshalText(text []byte) error

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 SegmentBase struct {
	Initialization struct {
		Range Range `xml:"range,attr"`
	}
	IndexRange Range `xml:"indexRange,attr"`
}

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
		}
	}
}

type Url added in v1.23.0

type Url struct {
	U *url.URL
}

func (*Url) UnmarshalText added in v1.23.0

func (u *Url) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL