Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaFilters ¶
type MediaFilters struct {
Videos NestedFilters `json:",omitempty"`
Audios NestedFilters `json:",omitempty"`
Captions NestedFilters `json:",omitempty"`
ContentTypes []string `json:",omitempty"`
Plugins []string `json:",omitempty"`
Tags *Tags `json:",omitempty"`
Trim *Trim `json:",omitempty"`
Bitrate *Bitrate `json:",omitempty"`
FrameRate []string `json:",omitempty"`
DeWeave bool `json:",omitempty"`
PreventHTTPStatusError bool `json:",omitempty"`
Protocol Protocol `json:"protocol"`
}
MediaFilters is a struct that carry all the information passed via url
func URLParse ¶
func URLParse(urlpath string) (string, *MediaFilters, error)
URLParse will generate a MediaFilters struct with all the filters that needs to be applied to the master manifest. It will also return the master manifest url without the filters.
func (*MediaFilters) SuppressAds ¶
func (mf *MediaFilters) SuppressAds() bool
SuppressAds will evaluate whether the ad tag was set
func (*MediaFilters) SuppressIFrame ¶
func (mf *MediaFilters) SuppressIFrame() bool
SuppressIFrame will evaluate whether the i-frame tag was set
type NestedFilters ¶
type NestedFilters struct {
Bitrate *Bitrate `json:",omitempty"`
Codecs []string `json:",omitempty"`
Language []string `json:",omitempty"`
}
NestedFilters is a struct that holds values of filters that can be nested within certain Media Filters
Click to show internal directories.
Click to hide internal directories.