Documentation
¶
Index ¶
- type Controller
- func (c *Controller) BuildPipeline() error
- func (c *Controller) Callbacks() *gstreamer.Callbacks
- func (c *Controller) Close()
- func (c *Controller) GetGstPipelineDebugDot() (string, error)
- func (c *Controller) OnError(err error)
- func (c *Controller) Run(ctx context.Context) *livekit.EgressInfo
- func (c *Controller) SendEOS(ctx context.Context, reason string)
- func (c *Controller) SetReplayTiming(startAt, durationMs int64)
- func (c *Controller) UpdateEgress(ctx context.Context, req *livekit.UpdateEgressRequest) error
- func (c *Controller) UpdateStream(ctx context.Context, req *livekit.UpdateStreamRequest) error
- type SourceBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶ added in v1.7.8
type Controller struct {
*config.PipelineConfig
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, conf *config.PipelineConfig, ipcServiceClient ipc.EgressServiceClient) (*Controller, error)
func NewWithSource ¶ added in v1.13.0
func NewWithSource( ctx context.Context, conf *config.PipelineConfig, ipcServiceClient ipc.EgressServiceClient, srcBuilder SourceBuilder, ) (*Controller, error)
NewWithSource creates a Controller using the given SourceBuilder. The builder runs after the controller has been constructed and receives the controller's Callbacks, so the source can share GstReady with the pipeline. Use this when the source isn't the standard source.New (testfeeder, replay export, etc.).
func (*Controller) BuildPipeline ¶ added in v1.7.8
func (c *Controller) BuildPipeline() error
func (*Controller) Callbacks ¶ added in v1.13.0
func (c *Controller) Callbacks() *gstreamer.Callbacks
Callbacks returns the pipeline callbacks. Sources that need to wait for GstReady before creating appsrc elements can use this.
func (*Controller) Close ¶ added in v1.7.9
func (c *Controller) Close()
func (*Controller) GetGstPipelineDebugDot ¶ added in v1.7.8
func (c *Controller) GetGstPipelineDebugDot() (string, error)
func (*Controller) OnError ¶ added in v1.7.8
func (c *Controller) OnError(err error)
func (*Controller) Run ¶ added in v1.7.8
func (c *Controller) Run(ctx context.Context) *livekit.EgressInfo
func (*Controller) SendEOS ¶ added in v1.7.8
func (c *Controller) SendEOS(ctx context.Context, reason string)
func (*Controller) SetReplayTiming ¶ added in v1.13.0
func (c *Controller) SetReplayTiming(startAt, durationMs int64)
func (*Controller) UpdateEgress ¶ added in v1.13.0
func (c *Controller) UpdateEgress(ctx context.Context, req *livekit.UpdateEgressRequest) error
func (*Controller) UpdateStream ¶ added in v1.7.8
func (c *Controller) UpdateStream(ctx context.Context, req *livekit.UpdateStreamRequest) error
type SourceBuilder ¶ added in v1.13.0
SourceBuilder constructs a pipeline source. It receives the controller's callbacks so the source can synchronize on GstReady; custom sources that don't need gst synchronization can ignore the argument.