recorder

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: 23 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 (
	ErrNoOutput        = errors.New("output file, s3 path, or rtmp urls required")
	ErrInvalidUrl      = errors.New("invalid rtmp url")
	ErrInvalidFilePath = errors.New("file output must be {path/}filename.mp4")
	ErrNoInput         = errors.New("input url or template required")
)

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	ID string
	// contains filtered or unexported fields
}

func NewRecorder

func NewRecorder(conf *config.Config, recordingID string) *Recorder

func (*Recorder) AddOutput

func (r *Recorder) AddOutput(url string) error

func (*Recorder) Close

func (r *Recorder) Close()

should only be called after pipeline completes

func (*Recorder) GetInputUrl added in v0.3.2

func (r *Recorder) GetInputUrl(req *livekit.StartRecordingRequest) (string, bool, error)

func (*Recorder) RemoveOutput

func (r *Recorder) RemoveOutput(url string) error

func (*Recorder) Run

func (r *Recorder) Run() *livekit.RecordingInfo

Run blocks until completion

func (*Recorder) Stop

func (r *Recorder) Stop()

func (*Recorder) Validate

func (r *Recorder) Validate(req *livekit.StartRecordingRequest) error

Jump to

Keyboard shortcuts

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