mirror of
https://github.com/livekit/livekit.git
synced 2026-09-17 01:34:51 +00:00
Pass through schema and frame encoding
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user