dash

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdaptationSetInspector

func NewAdaptationSetInspector(config *AdaptationSetInspectorConfig) core.DASHInspector

NewAdaptationSetInspector returns AdaptationSetInspector. It inspects number of AdaptationSets and those attributes.

func NewMPDTypeInspector

func NewMPDTypeInspector(mpdType string) core.DASHInspector

NewMPDTypeInspector returns MPDTypeInspector. It inspects whether MPD@type equals to mpdType.

func NewPresentationDelayInspector added in v1.2.0

func NewPresentationDelayInspector() core.DASHInspector

func NewPresentationDelayInspectorWithConfig added in v1.2.0

func NewPresentationDelayInspectorWithConfig(config *PresentationDelayInspectorConfig) core.DASHInspector

func NewRepresentationInspector

func NewRepresentationInspector(config *RepresentationInspectorConfig) core.DASHInspector

func NewSpeedInspector

func NewSpeedInspector() core.DASHInspector

NewSpeedInspector returns SpeedInspector. It inspects gap between video time and real time.

func NewSpeedInspectorWithConfig

func NewSpeedInspectorWithConfig(config *SpeedInspectorConfig) core.DASHInspector

Types

type AdaptationSetInspectorConfig

type AdaptationSetInspectorConfig struct {
	MandatoryMimeTypes []string
	ValidMimeTypes     []string
}

type AspectRatio

type AspectRatio struct {
	X int64
	Y int64
}

func ParseAspectRatio

func ParseAspectRatio(ar string) (AspectRatio, error)

type PresentationDelayInspector added in v1.2.0

type PresentationDelayInspector struct {
	// contains filtered or unexported fields
}

func (*PresentationDelayInspector) Inspect added in v1.2.0

func (ins *PresentationDelayInspector) Inspect(manifest *core.Manifest, segments core.SegmentStore) *core.Report

type PresentationDelayInspectorConfig added in v1.2.0

type PresentationDelayInspectorConfig struct {
	Warn                  time.Duration
	Error                 time.Duration
	IgnoreEarliestSegment bool
	IgnoreLatestSegment   bool
}

func DefaultPresentationDelayInspectorConfig added in v1.2.0

func DefaultPresentationDelayInspectorConfig() *PresentationDelayInspectorConfig

type RepresentationInspectorConfig

type RepresentationInspectorConfig struct {
	WarnMaxHeight          int64
	ErrorMaxHeight         int64
	WarnMinHeight          int64
	ErrorMinHeight         int64
	ValidPARs              []AspectRatio
	AllowHeightOmittion    bool
	AllowWidthOmittion     bool
	WarnMaxVideoBandwidth  int64
	ErrorMaxVideoBandwidth int64
	WarnMinVideoBandwidth  int64
	ErrorMinVideoBandwidth int64
	WarnMaxAudioBandwidth  int64
	ErrorMaxAudioBandwidth int64
	WarnMinAudioBandwidth  int64
	ErrorMinAudioBandwidth int64
}

type SpeedInspectorConfig

type SpeedInspectorConfig struct {
	Interval time.Duration
	Warn     time.Duration
	Error    time.Duration
}

func DefaultSpeedInspectorConfig

func DefaultSpeedInspectorConfig() *SpeedInspectorConfig

Jump to

Keyboard shortcuts

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