Update protocol (#582)

This commit is contained in:
David Colburn
2022-03-30 16:38:38 -07:00
committed by GitHub
parent 0b8a180554
commit 7dc90e805c
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ require (
github.com/google/wire v0.5.0
github.com/gorilla/websocket v1.4.2
github.com/hashicorp/golang-lru v0.5.4
github.com/livekit/protocol v0.12.0
github.com/livekit/protocol v0.13.0
github.com/mackerelio/go-osstat v0.2.1
github.com/magefile/mage v1.11.0
github.com/maxbrunsfeld/counterfeiter/v6 v6.3.0
+2 -2
View File
@@ -132,8 +132,8 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/lithammer/shortuuid/v3 v3.0.6 h1:pr15YQyvhiSX/qPxncFtqk+v4xLEpOZObbsY/mKrcvA=
github.com/lithammer/shortuuid/v3 v3.0.6/go.mod h1:vMk8ke37EmiewwolSO1NLW8vP4ZaKlRuDIi8tWWmAts=
github.com/livekit/protocol v0.12.0 h1:TOSaBJWIvgvS8bI2HGRG9IGzYAoeBp6D9nZrtVMMvEg=
github.com/livekit/protocol v0.12.0/go.mod h1:3pHsWUtQmWaH8mG0cXrQWpbf3Vo+kj0U+In77CEXu90=
github.com/livekit/protocol v0.13.0 h1:AdXMeUzdHeJaqBl/EBO2jwaSLNmtW95LSuNeymBuP2c=
github.com/livekit/protocol v0.13.0/go.mod h1:3pHsWUtQmWaH8mG0cXrQWpbf3Vo+kj0U+In77CEXu90=
github.com/mackerelio/go-osstat v0.2.1 h1:5AeAcBEutEErAOlDz6WCkEvm6AKYgHTUQrfwm5RbeQc=
github.com/mackerelio/go-osstat v0.2.1/go.mod h1:UzRL8dMCCTqG5WdRtsxbuljMpZt9PCAGXqxPst5QtaY=
github.com/magefile/mage v1.11.0 h1:C/55Ywp9BpgVVclD3lRnSYCwXTYxmSppIgLeDYlNuls=
+5 -5
View File
@@ -43,10 +43,10 @@ func (s *EgressService) Stop() {
close(s.shutdown)
}
func (s *EgressService) StartWebCompositeEgress(ctx context.Context, req *livekit.WebCompositeEgressRequest) (*livekit.EgressInfo, error) {
func (s *EgressService) StartRoomCompositeEgress(ctx context.Context, req *livekit.RoomCompositeEgressRequest) (*livekit.EgressInfo, error) {
return s.StartEgress(ctx, livekit.RoomName(req.RoomName), &livekit.StartEgressRequest{
Request: &livekit.StartEgressRequest_WebComposite{
WebComposite: req,
Request: &livekit.StartEgressRequest_RoomComposite{
RoomComposite: req,
},
})
}
@@ -115,8 +115,8 @@ func (s *EgressService) UpdateLayout(ctx context.Context, req *livekit.UpdateLay
var roomName string
switch r := info.Request.(type) {
case *livekit.EgressInfo_WebComposite:
roomName = r.WebComposite.RoomName
case *livekit.EgressInfo_RoomComposite:
roomName = r.RoomComposite.RoomName
case *livekit.EgressInfo_TrackComposite:
roomName = r.TrackComposite.RoomName
case *livekit.EgressInfo_Track: