Use RoomConfiguration message from protocol (#2882)
This commit is contained in:
+2
-22
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user