pipeline

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPipelineNotFound     = errors.New("pipeline not initialized")
	ErrCannotAddToFile      = errors.New("cannot add rtmp output to file recording")
	ErrCannotRemoveFromFile = errors.New("cannot remove rtmp output from file recording")
	ErrGhostPadFailed       = errors.New("failed to add ghost pad to bin")
	ErrOutputAlreadyExists  = errors.New("output already exists")
	ErrOutputNotFound       = errors.New("output not found")

	GErrNoURI            = "No URI set before starting"
	GErrFailedToStart    = "Failed to start"
	GErrCouldNotConnect  = "Could not connect to RTMP stream"
	GErrStreamingStopped = "streaming stopped, reason error (-5)"
)

Functions

This section is empty.

Types

type InputBin

type InputBin struct {
	// contains filtered or unexported fields
}
func (b *InputBin) Link() error

type OutputBin

type OutputBin struct {
	// contains filtered or unexported fields
}

func (*OutputBin) AddRtmpSink

func (b *OutputBin) AddRtmpSink(url string) error
func (b *OutputBin) Link() error

func (*OutputBin) RemoveRtmpSink

func (b *OutputBin) RemoveRtmpSink(url string) error

func (*OutputBin) RemoveSinkByName added in v0.3.1

func (b *OutputBin) RemoveSinkByName(name string) error

type Pipeline

type Pipeline struct {
	// contains filtered or unexported fields
}

func NewFilePipeline

func NewFilePipeline(filename string, options *livekit.RecordingOptions) (*Pipeline, error)

func NewRtmpPipeline

func NewRtmpPipeline(urls []string, options *livekit.RecordingOptions) (*Pipeline, error)

func (*Pipeline) Abort added in v0.3.13

func (p *Pipeline) Abort()

Abort can only be called before the pipeline has started

func (*Pipeline) AddOutput

func (p *Pipeline) AddOutput(url string) error

func (*Pipeline) Close

func (p *Pipeline) Close()

Close waits for the pipeline to start before closing

func (*Pipeline) GetStartTime added in v0.3.13

func (p *Pipeline) GetStartTime() time.Time

func (*Pipeline) RemoveOutput

func (p *Pipeline) RemoveOutput(url string) error

func (*Pipeline) Run added in v0.3.13

func (p *Pipeline) Run() error

type RtmpOut added in v0.3.1

type RtmpOut struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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