Agents enabled check (#2227)

* agents enabled check

* participant -> publisher

* nil check client

* add NumConnections

* add lock around agent check

* do not launch agents against other agents

* regen

* don't need atomic anymore

* update protocol
This commit is contained in:
David Colburn
2023-11-07 19:19:07 -08:00
committed by GitHub
parent 302facc60d
commit 57643a42ed
15 changed files with 385 additions and 91 deletions
-12
View File
@@ -26,18 +26,6 @@ import (
"github.com/livekit/protocol/utils"
)
type agentClient struct {
s *AgentService
}
func NewAgentClient(s *AgentService) rtc.AgentClient {
return &agentClient{s}
}
func (c *agentClient) JobRequest(ctx context.Context, job *livekit.Job) {
_, _ = c.s.JobRequest(ctx, job)
}
type IOClient interface {
CreateEgress(ctx context.Context, info *livekit.EgressInfo) (*emptypb.Empty, error)
GetEgress(ctx context.Context, req *rpc.GetEgressRequest) (*livekit.EgressInfo, error)