Use RoomConfiguration message from protocol (#2882)

This commit is contained in:
Benjamin Pracht
2024-07-19 13:54:33 -07:00
committed by GitHub
parent 0c5b5537b2
commit 73b3a91a5c
3 changed files with 5 additions and 25 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ require (
github.com/jxskiss/base62 v1.1.0
github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1
github.com/livekit/mediatransportutil v0.0.0-20240625074155-301bb4a816b7
github.com/livekit/protocol v1.19.2-0.20240716225317-497688ff49e4
github.com/livekit/protocol v1.19.2-0.20240719172332-0df8e893874b
github.com/livekit/psrpc v0.5.3-0.20240616012458-ac39c8549a0a
github.com/mackerelio/go-osstat v0.2.5
github.com/magefile/mage v1.15.0
+2 -2
View File
@@ -167,8 +167,8 @@ github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1 h1:jm09419p0lqTkD
github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1/go.mod h1:Rs3MhFwutWhGwmY1VQsygw28z5bWcnEYmS1OG9OxjOQ=
github.com/livekit/mediatransportutil v0.0.0-20240625074155-301bb4a816b7 h1:F1L8inJoynwIAYpZENNYS+1xHJMF5RFRorsnAlcxfSY=
github.com/livekit/mediatransportutil v0.0.0-20240625074155-301bb4a816b7/go.mod h1:jwKUCmObuiEDH0iiuJHaGMXwRs3RjrB4G6qqgkr/5oE=
github.com/livekit/protocol v1.19.2-0.20240716225317-497688ff49e4 h1:8inXM3a1qo6Y17dbfFIy/SafcFcz3Ynva2Y5+0UfwK4=
github.com/livekit/protocol v1.19.2-0.20240716225317-497688ff49e4/go.mod h1:bNjJi+8frdvC84xG0CJ/7VfVvqerLg2MzjOks0ucyC4=
github.com/livekit/protocol v1.19.2-0.20240719172332-0df8e893874b h1:Wn6D+B5YbMe1tH7WCazLJz+msBQzR69dK2wTdgJsF5k=
github.com/livekit/protocol v1.19.2-0.20240719172332-0df8e893874b/go.mod h1:bNjJi+8frdvC84xG0CJ/7VfVvqerLg2MzjOks0ucyC4=
github.com/livekit/psrpc v0.5.3-0.20240616012458-ac39c8549a0a h1:EQAHmcYEGlc6V517cQ3Iy0+jHgP6+tM/B4l2vGuLpQo=
github.com/livekit/psrpc v0.5.3-0.20240616012458-ac39c8549a0a/go.mod h1:CQUBSPfYYAaevg1TNCc6/aYsa8DJH4jSRFdCeSZk5u0=
github.com/mackerelio/go-osstat v0.2.5 h1:+MqTbZUhoIt4m8qzkVoXUJg1EuifwlAJSk4Yl2GXh+o=
+2 -22
View File
@@ -247,28 +247,8 @@ type RoomConfig struct {
// deprecated, moved to limits
MaxRoomNameLength int `yaml:"max_room_name_length,omitempty"`
// deprecated, moved to limits
MaxParticipantIdentityLength int `yaml:"max_participant_identity_length,omitempty"`
RoomConfigurations map[string]RoomConfiguration `yaml:"room_configurations,omitempty"`
}
type RoomConfiguration struct {
Name string `yaml:"name,omitempty"` // Used as ID, must be unique
// number of seconds to keep the room open if no one joins
EmptyTimeout uint32 `yaml:"empty_timeout,omitempty"`
// number of seconds to keep the room open after everyone leaves
DepartureTimeout uint32 `yaml:"departure_timeout,omitempty"`
// limit number of participants that can be in a room
MaxParticipants uint32 `yaml:"max_participants,omitempty"`
// egress
Egress *livekit.RoomEgress `yaml:"egress,omitempty"`
// agent
Agent *livekit.RoomAgent `yaml:"agent,omitempty"`
// playout delay of subscriber
MinPlayoutDelay uint32 `yaml:"min_playout_delay,omitempty"`
MaxPlayoutDelay uint32 `yaml:"max_playout_delay,omitempty"`
// improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use
// so not recommended for rooms with frequent subscription changes
SyncStreams bool `yaml:"sync_streams"`
MaxParticipantIdentityLength int `yaml:"max_participant_identity_length,omitempty"`
RoomConfigurations map[string]livekit.RoomConfiguration `yaml:"room_configurations,omitempty"`
}
type CodecSpec struct {