Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeMetadata = 100 TypeBinary = 101 TypeRGB24 = 102 TypeWebM = 103 )
Types for samples
View Source
const (
// TypeFileWriter .
TypeFileWriter = "FileWriter"
)
View Source
const (
// TypeProtooBroadcast .
TypeProtooBroadcast = "ProtooBroadcast"
)
View Source
const (
// TypeWebmSaver .
TypeWebmSaver = "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 ¶ added in v0.1.1
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter instance
func NewFileWriter ¶ added in v0.1.1
func NewFileWriter(config FileWriterConfig) *FileWriter
NewFileWriter instance
func (*FileWriter) Attach ¶ added in v0.1.1
func (w *FileWriter) Attach(e process.Element) error
Attach attach a child element
func (*FileWriter) Read ¶ added in v0.1.1
func (w *FileWriter) Read() <-chan *samples.Sample
type FileWriterConfig ¶ added in v0.1.1
FileWriterConfig .
type ProtooBroadcast ¶
type ProtooBroadcast struct {
// contains filtered or unexported fields
}
ProtooBroadcast instance
func NewProtooBroadcast ¶
func NewProtooBroadcast(config ProtooBroadcastConfig) *ProtooBroadcast
NewProtooBroadcast instance
func (*ProtooBroadcast) Attach ¶
func (b *ProtooBroadcast) Attach(e process.Element) error
Attach attach a child element
func (*ProtooBroadcast) Read ¶
func (b *ProtooBroadcast) Read() <-chan *samples.Sample
type ProtooBroadcastConfig ¶
ProtooBroadcastConfig .
type SampleWriter ¶ added in v0.1.1
type SampleWriter struct {
// contains filtered or unexported fields
}
SampleWriter for writing samples
func NewSampleWriter ¶ added in v0.1.1
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.