From 98de9b91712392ca942ff802c06513e40561db7d Mon Sep 17 00:00:00 2001 From: Jacob Gelman <3182119+ladvoc@users.noreply.github.com> Date: Wed, 17 Jun 2026 12:07:28 -0700 Subject: [PATCH] Pass through schema and frame encoding --- pkg/rtc/participant_data_track.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/rtc/participant_data_track.go b/pkg/rtc/participant_data_track.go index dbda1ede0..985abd96b 100644 --- a/pkg/rtc/participant_data_track.go +++ b/pkg/rtc/participant_data_track.go @@ -95,6 +95,13 @@ func (p *ParticipantImpl) HandlePublishDataTrackRequest(req *livekit.PublishData Name: req.Name, Encryption: req.Encryption, } + if req.FrameEncoding != nil { + frameEncoding := req.GetFrameEncoding() + dti.FrameEncoding = &frameEncoding + } + if req.Schema != nil { + dti.Schema = utils.CloneProto(req.Schema) + } dt := NewDataTrack( DataTrackParams{ Logger: p.params.Logger.WithValues("trackID", dti.Sid),