elements

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 11 Imported by: 0

README

ion-elements

A/V Processing Elements for Ion pipelines

Documentation

Index

Constants

View Source
const (
	// TypeProtooBroadcast .
	TypeProtooBroadcast = "ProtooBroadcast"
)
View Source
const (
	// TypeWebmSaver .
	TypeWebmSaver = "WebmSaver"
)

Variables

View Source
var (
	// ErrAttachNotSupported returned when attaching elments is not supported
	ErrAttachNotSupported = errors.New("attach not supported")
)

Functions

This section is empty.

Types

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) Close

func (b *ProtooBroadcast) Close()

Close Protoobroadcast

func (*ProtooBroadcast) Read

func (b *ProtooBroadcast) Read() <-chan *samples.Sample

func (*ProtooBroadcast) Type

func (b *ProtooBroadcast) Type() string

Type for Protoobroadcast

func (*ProtooBroadcast) Write

func (b *ProtooBroadcast) Write(sample *samples.Sample) error

type ProtooBroadcastConfig

type ProtooBroadcastConfig struct {
	ID        string
	RID       string
	UID       string
	Requestor *nprotoo.Requestor
}

ProtooBroadcastConfig .

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

func (*WebmSaver) Attach

func (s *WebmSaver) Attach(e process.Element) error

Attach attach a child element

func (*WebmSaver) Close

func (s *WebmSaver) Close()

Close Close the WebmSaver

func (*WebmSaver) Read

func (s *WebmSaver) Read() <-chan *samples.Sample

func (*WebmSaver) Type

func (s *WebmSaver) Type() string

Type of element

func (*WebmSaver) Write

func (s *WebmSaver) Write(sample *samples.Sample) error

Write sample to webmsaver

type WebmSaverConfig

type WebmSaverConfig struct {
	ID   string
	Path string
}

WebmSaverConfig .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL