From 18ce524455040392c551b04076af8ebcebfd617a Mon Sep 17 00:00:00 2001 From: Benjamin Pracht Date: Fri, 18 Jul 2025 10:37:23 -0700 Subject: [PATCH] Handle Metadata field from RoomConfig (#3798) --- pkg/service/roomallocator.go | 3 +++ pkg/service/utils.go | 1 + 2 files changed, 4 insertions(+) diff --git a/pkg/service/roomallocator.go b/pkg/service/roomallocator.go index 656edce42..4c081dda6 100644 --- a/pkg/service/roomallocator.go +++ b/pkg/service/roomallocator.go @@ -241,6 +241,9 @@ func (r *StandardRoomAllocator) applyNamedRoomConfiguration(req *livekit.CreateR if !clone.SyncStreams { clone.SyncStreams = conf.SyncStreams } + if clone.Metadata == "" { + clone.Metadata = conf.Metadata + } return clone, nil } diff --git a/pkg/service/utils.go b/pkg/service/utils.go index 481cfcc55..2d7614145 100644 --- a/pkg/service/utils.go +++ b/pkg/service/utils.go @@ -104,6 +104,7 @@ func SetRoomConfiguration(createRequest *livekit.CreateRoomRequest, conf *liveki createRequest.MinPlayoutDelay = conf.MinPlayoutDelay createRequest.MaxPlayoutDelay = conf.MaxPlayoutDelay createRequest.SyncStreams = conf.SyncStreams + createRequest.Metadata = conf.Metadata } func ParseClientInfo(r *http.Request) *livekit.ClientInfo {