Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeMetadata = 100 TypeBinary = 101 TypeRGB24 = 102 TypeWebM = 103 )
Types for samples
View Source
const (
// IDFileWriter .
IDFileWriter = "FileWriter"
)
View Source
const (
// IDWebmSaver .
IDWebmSaver = "WebmSaver"
)
Variables ¶
View Source
var ( // ErrAttachNotSupported returned when attaching elements is not supported ErrAttachNotSupported = errors.New("attach not supported") // ErrElementAlreadyAttached returned when attaching an element that is already attached ErrElementAlreadyAttached = errors.New("element already attached") )
Functions ¶
This section is empty.
Types ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter instance
func (*FileWriter) Attach ¶
func (w *FileWriter) Attach(e avp.Element) error
Attach attach a child element
func (*FileWriter) Read ¶
func (w *FileWriter) Read() <-chan *avp.Sample
type SampleWriter ¶
type SampleWriter struct {
// contains filtered or unexported fields
}
SampleWriter for writing samples
func NewSampleWriter ¶
func NewSampleWriter() *SampleWriter
NewSampleWriter creates a new sample writer
type WebmSaver ¶
type WebmSaver struct {
// contains filtered or unexported fields
}
WebmSaver Module for saving rtp streams to webm
func NewWebmSaver ¶
func NewWebmSaver(config WebmSaverConfig) *WebmSaver
NewWebmSaver Initialize a new webm saver
Click to show internal directories.
Click to hide internal directories.