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 boolean value for a given codec filter
Types ¶
type CodecFilterID ¶
type CodecFilterID string
CodecFilterID is the formatted codec represented in a given playlist
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(_ context.Context, filters *parsers.MediaFilters) (string, error)
FilterManifest will be responsible for filtering the manifest according to the MediaFilters
func (*DASHFilter) GetMaxAge ¶
func (d *DASHFilter) GetMaxAge() string
GetMaxAge returns max_age to be overwritten via cache control headers currently no support in dash for managing header
type Filter ¶
type Filter interface {
FilterManifest(ctx context.Context, filters *parsers.MediaFilters) (string, error)
GetMaxAge() string
}
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 ¶
NewHLSFilter is the HLS filter constructor
func (*HLSFilter) FilterManifest ¶
func (h *HLSFilter) FilterManifest(ctx context.Context, filters *parsers.MediaFilters) (string, error)
FilterManifest will be responsible for filtering the manifest according to the MediaFilters