Allow specifying room configuration in token (#2853)
This commit is contained in:
@@ -515,7 +515,8 @@ func (s *RTCService) startConnection(
|
||||
var cr connectionResult
|
||||
var created bool
|
||||
var err error
|
||||
cr.Room, created, err = s.roomAllocator.CreateRoom(ctx, &livekit.CreateRoomRequest{Name: string(roomName)})
|
||||
|
||||
cr.Room, created, err = s.roomAllocator.CreateRoom(ctx, &livekit.CreateRoomRequest{Name: string(roomName), ConfigName: GetRoomConfiguration(ctx)})
|
||||
if err != nil {
|
||||
return cr, nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user