Add StopEgress function to the EgressLauncher interface (#4353)

This allows for abstracting away how the stop is implemented - default implementation stays the same - the existing OSS egress launcher just calls the existing Stop method on the client.
This commit is contained in:
Milos Pesic
2026-03-09 13:17:05 +01:00
committed by GitHub
parent 69235ed261
commit b34b047247
2 changed files with 9 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ import (
type EgressLauncher interface {
StartEgress(context.Context, *rpc.StartEgressRequest) (*livekit.EgressInfo, error)
StopEgress(context.Context, *livekit.StopEgressRequest) (*livekit.EgressInfo, error)
}
func StartParticipantEgress(