Pass through schema and frame encoding

This commit is contained in:
Jacob Gelman
2026-06-17 12:07:28 -07:00
parent e2569b0b16
commit 98de9b9171
+7
View File
@@ -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),