recorder

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 18 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")
	ErrInvalidTemplate = errors.New("token or room name required")
)

Functions

This section is empty.

Types

type Recorder

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

func NewRecorder

func NewRecorder(conf *config.Config) *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, error)

func (*Recorder) RemoveOutput

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

func (*Recorder) Run

func (r *Recorder) Run(recordingId string) *livekit.RecordingResult

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