Versions in this module Expand all Collapse all v1 v1.8.5 May 10, 2021 Changes in this version + const TypeBinary + const TypeJPEG + const TypeMetadata + const TypeRGB24 + const TypeRGBA + const TypeWebM + const TypeYCbCr + var ErrAttachNotSupported = errors.New("attach not supported") + var ErrElementAlreadyAttached = errors.New("element already attached") + func NewMultiplexer(el avp.Element) avp.Element + type Converter struct + func NewConverter(typ int) *Converter + func (c *Converter) Write(sample *avp.Sample) error + type FileWriter struct + func NewFileWriter(path string, bufSize int) *FileWriter + func (w *FileWriter) Close() + func (w *FileWriter) Write(sample *avp.Sample) error + type Filter struct + func NewFilter(condition func(*avp.Sample) bool) *Filter + func (f *Filter) Write(sample *avp.Sample) error + type Leaf struct + func (e *Leaf) Attach(el avp.Element) + func (e *Leaf) Close() + func (e *Leaf) Write(sample *avp.Sample) error + type Map struct + func NewMap(fn func(*avp.Sample) *avp.Sample) *Map + func (m *Map) Write(sample *avp.Sample) error + type Multiplexer struct + func (m *Multiplexer) Attach(el avp.Element) + func (m *Multiplexer) Close() + func (m *Multiplexer) Write(sample *avp.Sample) error + type Node struct + func (e *Node) Attach(el avp.Element) + func (e *Node) Close() + func (e *Node) Write(sample *avp.Sample) error + type Pipeline struct + func NewPipeline(elements []avp.Element) *Pipeline + func (p *Pipeline) Attach(el avp.Element) + func (p *Pipeline) Close() + func (p *Pipeline) Write(sample *avp.Sample) error + type SampleWriter struct + func NewSampleWriter() *SampleWriter + func (w *SampleWriter) Close() error + func (w *SampleWriter) Write(p []byte) (n int, err error) + type WebmSaver struct + func NewWebmSaver() *WebmSaver + func (s *WebmSaver) Attach(e avp.Element) + func (s *WebmSaver) Close() + func (s *WebmSaver) Write(sample *avp.Sample) error