Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeMetadata = 100 TypeBinary = 101 TypeRGB24 = 102 TypeWebM = 103 TypeYCbCr = 104 TypeJPEG = 105 )
Types for samples
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 Converter ¶ added in v1.0.17
type Converter struct {
// contains filtered or unexported fields
}
Converter instance
func NewConverter ¶ added in v1.0.17
func NewConverter(config ConverterConfig) *Converter
NewConverter instance. Converter converts between media types.
Currently supports:
- YCbCR -> JPEG
type ConverterConfig ¶ added in v1.0.17
ConverterConfig .
type Decoder ¶ added in v1.0.16
type Decoder struct {
// contains filtered or unexported fields
}
Decoder instance
func NewDecoder ¶ added in v1.0.16
func NewDecoder(config DecoderConfig) *Decoder
NewDecoder instance. Decoder takes as input VP8 keyframes and decodes it into a YCbCr image.
type DecoderConfig ¶ added in v1.0.16
type DecoderConfig struct {
ID string `json:"id"`
}
DecoderConfig .
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter instance
func (*FileWriter) Attach ¶
func (w *FileWriter) Attach(e avp.Element)
Attach attach a child element
type Filter ¶ added in v1.0.18
type Filter struct {
// contains filtered or unexported fields
}
Filter instance
func NewFilter ¶ added in v1.0.18
NewFilter instance. Filter contitionally forwards a payload based on the return of the provided function.
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 ¶
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.