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 {