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: 0

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