filters

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidCodecs

func ValidCodecs(codec string, filter CodecFilterID) bool

ValidCodecs returns a map of all formatted values for a given codec filter

Types

type CodecFilterID

type CodecFilterID string

CodecFilterID is the formatted codec represented in a given playlist

type ContentType

type ContentType string

ContentType represents the content in the stream

type DASHFilter

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

DASHFilter implements the Filter interface for DASH manifests

func NewDASHFilter

func NewDASHFilter(manifestURL, manifestContent string, c config.Config) *DASHFilter

NewDASHFilter is the DASH filter constructor

func (*DASHFilter) FilterManifest

func (d *DASHFilter) FilterManifest(filters *parsers.MediaFilters) (string, error)

FilterManifest will be responsible for filtering the manifest according to the MediaFilters

type Filter

type Filter interface {
	FilterManifest(filters *parsers.MediaFilters) (string, error)
}

Filter is an interface for HLS and DASH filters

type HLSFilter

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

HLSFilter implements the Filter interface for HLS manifests

func NewHLSFilter

func NewHLSFilter(manifestURL, manifestContent string, c config.Config) *HLSFilter

NewHLSFilter is the HLS filter constructor

func (*HLSFilter) FilterManifest

func (h *HLSFilter) FilterManifest(filters *parsers.MediaFilters) (string, error)

FilterManifest will be responsible for filtering the manifest according to the MediaFilters

Jump to

Keyboard shortcuts

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