Move psrpc to protocol (#1426)

* move psrpc to protocol

* update checks

* update protocol

* update protocol ref

* blank line
This commit is contained in:
David Colburn
2023-02-15 16:47:38 -08:00
committed by GitHub
parent 1848a21eda
commit 10c53e0ebb
23 changed files with 40 additions and 1500 deletions
+5 -4
View File
@@ -9,12 +9,13 @@ import (
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/telemetry"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/rpc"
"github.com/livekit/protocol/webhook"
)
type EgressLauncher interface {
StartEgress(context.Context, *livekit.StartEgressRequest) (*livekit.EgressInfo, error)
StartEgressWithClusterId(ctx context.Context, clusterId string, req *livekit.StartEgressRequest) (*livekit.EgressInfo, error)
StartEgress(context.Context, *rpc.StartEgressRequest) (*livekit.EgressInfo, error)
StartEgressWithClusterId(ctx context.Context, clusterId string, req *rpc.StartEgressRequest) (*livekit.EgressInfo, error)
}
func StartTrackEgress(
@@ -77,8 +78,8 @@ func startTrackEgress(
return req, errors.New("egress launcher not found")
}
_, err := launcher.StartEgress(ctx, &livekit.StartEgressRequest{
Request: &livekit.StartEgressRequest_Track{
_, err := launcher.StartEgress(ctx, &rpc.StartEgressRequest{
Request: &rpc.StartEgressRequest_Track{
Track: req,
},
RoomId: string(roomID),