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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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