From 86ca76880f4b34c29110b38122f6e1c3ba522ef9 Mon Sep 17 00:00:00 2001 From: David Chen Date: Thu, 26 Feb 2026 14:39:31 -0800 Subject: [PATCH 1/4] add has_user_timestamp to TrackInfo & AddTrackRequest messages --- livekit/livekit_models.pb.go | 13 +++++++++++-- livekit/livekit_rtc.pb.go | 13 +++++++++++-- protobufs/livekit_models.proto | 2 ++ protobufs/livekit_rtc.proto | 2 ++ 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/livekit/livekit_models.pb.go b/livekit/livekit_models.pb.go index 9ec92f522..0a2cd2aca 100644 --- a/livekit/livekit_models.pb.go +++ b/livekit/livekit_models.pb.go @@ -2229,6 +2229,7 @@ type TrackInfo struct { Version *TimedVersion `protobuf:"bytes,18,opt,name=version,proto3" json:"version,omitempty"` AudioFeatures []AudioTrackFeature `protobuf:"varint,19,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,20,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` + HasUserTimestamp bool `protobuf:"varint,21,opt,name=has_user_timestamp,json=hasUserTimestamp,proto3" json:"has_user_timestamp,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2407,6 +2408,13 @@ func (x *TrackInfo) GetBackupCodecPolicy() BackupCodecPolicy { return BackupCodecPolicy_PREFER_REGRESSION } +func (x *TrackInfo) GetHasUserTimestamp() bool { + if x != nil { + return x.HasUserTimestamp + } + return false +} + type DataTrackInfo struct { state protoimpl.MessageState `protogen:"open.v1"` // Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher. @@ -6179,7 +6187,7 @@ const file_livekit_models_proto_rawDesc = "" + "\x03cid\x18\x03 \x01(\tR\x03cid\x12+\n" + "\x06layers\x18\x04 \x03(\v2\x13.livekit.VideoLayerR\x06layers\x12B\n" + "\x10video_layer_mode\x18\x05 \x01(\x0e2\x18.livekit.VideoLayer.ModeR\x0evideoLayerMode\x12\x17\n" + - "\asdp_cid\x18\x06 \x01(\tR\x06sdpCid\"\xfc\x05\n" + + "\asdp_cid\x18\x06 \x01(\tR\x06sdpCid\"\xaa\x06\n" + "\tTrackInfo\x12\x10\n" + "\x03sid\x18\x01 \x01(\tR\x03sid\x12&\n" + "\x04type\x18\x02 \x01(\x0e2\x12.livekit.TrackTypeR\x04type\x12\x18\n" + @@ -6205,7 +6213,8 @@ const file_livekit_models_proto_rawDesc = "" + "\x06stream\x18\x11 \x01(\tR\x06stream\x12/\n" + "\aversion\x18\x12 \x01(\v2\x15.livekit.TimedVersionR\aversion\x12A\n" + "\x0eaudio_features\x18\x13 \x03(\x0e2\x1a.livekit.AudioTrackFeatureR\raudioFeatures\x12J\n" + - "\x13backup_codec_policy\x18\x14 \x01(\x0e2\x1a.livekit.BackupCodecPolicyR\x11backupCodecPolicy\"\x8e\x01\n" + + "\x13backup_codec_policy\x18\x14 \x01(\x0e2\x1a.livekit.BackupCodecPolicyR\x11backupCodecPolicy\x12,\n" + + "\x12has_user_timestamp\x18\x15 \x01(\bR\x10hasUserTimestamp\"\x8e\x01\n" + "\rDataTrackInfo\x12\x1d\n" + "\n" + "pub_handle\x18\x01 \x01(\rR\tpubHandle\x12\x10\n" + diff --git a/livekit/livekit_rtc.pb.go b/livekit/livekit_rtc.pb.go index ff3fe6f5f..070c7d87e 100644 --- a/livekit/livekit_rtc.pb.go +++ b/livekit/livekit_rtc.pb.go @@ -1361,6 +1361,7 @@ type AddTrackRequest struct { Stream string `protobuf:"bytes,15,opt,name=stream,proto3" json:"stream,omitempty"` BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,16,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` AudioFeatures []AudioTrackFeature `protobuf:"varint,17,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` + HasUserTimestamp bool `protobuf:"varint,18,opt,name=has_user_timestamp,json=hasUserTimestamp,proto3" json:"has_user_timestamp,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1516,6 +1517,13 @@ func (x *AddTrackRequest) GetAudioFeatures() []AudioTrackFeature { return nil } +func (x *AddTrackRequest) GetHasUserTimestamp() bool { + if x != nil { + return x.HasUserTimestamp + } + return false +} + type PublishDataTrackRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher. @@ -5071,7 +5079,7 @@ const file_livekit_rtc_proto_rawDesc = "" + "\x05codec\x18\x01 \x01(\tR\x05codec\x12\x10\n" + "\x03cid\x18\x02 \x01(\tR\x03cid\x12+\n" + "\x06layers\x18\x04 \x03(\v2\x13.livekit.VideoLayerR\x06layers\x12B\n" + - "\x10video_layer_mode\x18\x05 \x01(\x0e2\x18.livekit.VideoLayer.ModeR\x0evideoLayerMode\"\x97\x05\n" + + "\x10video_layer_mode\x18\x05 \x01(\x0e2\x18.livekit.VideoLayer.ModeR\x0evideoLayerMode\"\xc5\x05\n" + "\x0fAddTrackRequest\x12\x10\n" + "\x03cid\x18\x01 \x01(\tR\x03cid\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12&\n" + @@ -5094,7 +5102,8 @@ const file_livekit_rtc_proto_rawDesc = "" + "encryption\x12\x16\n" + "\x06stream\x18\x0f \x01(\tR\x06stream\x12J\n" + "\x13backup_codec_policy\x18\x10 \x01(\x0e2\x1a.livekit.BackupCodecPolicyR\x11backupCodecPolicy\x12A\n" + - "\x0eaudio_features\x18\x11 \x03(\x0e2\x1a.livekit.AudioTrackFeatureR\raudioFeatures\"\x86\x01\n" + + "\x0eaudio_features\x18\x11 \x03(\x0e2\x1a.livekit.AudioTrackFeatureR\raudioFeatures\x12,\n" + + "\x12has_user_timestamp\x18\x12 \x01(\bR\x10hasUserTimestamp\"\x86\x01\n" + "\x17PublishDataTrackRequest\x12\x1d\n" + "\n" + "pub_handle\x18\x01 \x01(\rR\tpubHandle\x12\x12\n" + diff --git a/protobufs/livekit_models.proto b/protobufs/livekit_models.proto index bc23358a6..e9089405b 100644 --- a/protobufs/livekit_models.proto +++ b/protobufs/livekit_models.proto @@ -266,6 +266,8 @@ message TrackInfo { TimedVersion version = 18; repeated AudioTrackFeature audio_features = 19; BackupCodecPolicy backup_codec_policy = 20; + + bool has_user_timestamp = 21; } message DataTrackInfo { diff --git a/protobufs/livekit_rtc.proto b/protobufs/livekit_rtc.proto index 5d1c17146..f0910ca4e 100644 --- a/protobufs/livekit_rtc.proto +++ b/protobufs/livekit_rtc.proto @@ -172,6 +172,8 @@ message AddTrackRequest { BackupCodecPolicy backup_codec_policy = 16; repeated AudioTrackFeature audio_features = 17; + + bool has_user_timestamp = 18; } message PublishDataTrackRequest { From 4a3e0e43101923741b1ad943783b3e937c377364 Mon Sep 17 00:00:00 2001 From: David Chen Date: Fri, 27 Feb 2026 14:50:45 -0800 Subject: [PATCH 2/4] change to repeated feature field --- livekit/livekit_models.pb.go | 415 ++++++++++++++++++--------------- livekit/livekit_rtc.pb.go | 214 ++++++++--------- protobufs/livekit_models.proto | 6 +- protobufs/livekit_rtc.proto | 2 +- 4 files changed, 345 insertions(+), 292 deletions(-) diff --git a/livekit/livekit_models.pb.go b/livekit/livekit_models.pb.go index 0a2cd2aca..6a0be29fe 100644 --- a/livekit/livekit_models.pb.go +++ b/livekit/livekit_models.pb.go @@ -815,6 +815,49 @@ func (AudioTrackFeature) EnumDescriptor() ([]byte, []int) { return file_livekit_models_proto_rawDescGZIP(), []int{13} } +type RTPTrailerFeature int32 + +const ( + RTPTrailerFeature_USER_TIMESTAMP RTPTrailerFeature = 0 +) + +// Enum value maps for RTPTrailerFeature. +var ( + RTPTrailerFeature_name = map[int32]string{ + 0: "USER_TIMESTAMP", + } + RTPTrailerFeature_value = map[string]int32{ + "USER_TIMESTAMP": 0, + } +) + +func (x RTPTrailerFeature) Enum() *RTPTrailerFeature { + p := new(RTPTrailerFeature) + *p = x + return p +} + +func (x RTPTrailerFeature) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RTPTrailerFeature) Descriptor() protoreflect.EnumDescriptor { + return file_livekit_models_proto_enumTypes[14].Descriptor() +} + +func (RTPTrailerFeature) Type() protoreflect.EnumType { + return &file_livekit_models_proto_enumTypes[14] +} + +func (x RTPTrailerFeature) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RTPTrailerFeature.Descriptor instead. +func (RTPTrailerFeature) EnumDescriptor() ([]byte, []int) { + return file_livekit_models_proto_rawDescGZIP(), []int{14} +} + type ParticipantInfo_State int32 const ( @@ -855,11 +898,11 @@ func (x ParticipantInfo_State) String() string { } func (ParticipantInfo_State) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_models_proto_enumTypes[14].Descriptor() + return file_livekit_models_proto_enumTypes[15].Descriptor() } func (ParticipantInfo_State) Type() protoreflect.EnumType { - return &file_livekit_models_proto_enumTypes[14] + return &file_livekit_models_proto_enumTypes[15] } func (x ParticipantInfo_State) Number() protoreflect.EnumNumber { @@ -923,11 +966,11 @@ func (x ParticipantInfo_Kind) String() string { } func (ParticipantInfo_Kind) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_models_proto_enumTypes[15].Descriptor() + return file_livekit_models_proto_enumTypes[16].Descriptor() } func (ParticipantInfo_Kind) Type() protoreflect.EnumType { - return &file_livekit_models_proto_enumTypes[15] + return &file_livekit_models_proto_enumTypes[16] } func (x ParticipantInfo_Kind) Number() protoreflect.EnumNumber { @@ -978,11 +1021,11 @@ func (x ParticipantInfo_KindDetail) String() string { } func (ParticipantInfo_KindDetail) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_models_proto_enumTypes[16].Descriptor() + return file_livekit_models_proto_enumTypes[17].Descriptor() } func (ParticipantInfo_KindDetail) Type() protoreflect.EnumType { - return &file_livekit_models_proto_enumTypes[16] + return &file_livekit_models_proto_enumTypes[17] } func (x ParticipantInfo_KindDetail) Number() protoreflect.EnumNumber { @@ -1027,11 +1070,11 @@ func (x Encryption_Type) String() string { } func (Encryption_Type) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_models_proto_enumTypes[17].Descriptor() + return file_livekit_models_proto_enumTypes[18].Descriptor() } func (Encryption_Type) Type() protoreflect.EnumType { - return &file_livekit_models_proto_enumTypes[17] + return &file_livekit_models_proto_enumTypes[18] } func (x Encryption_Type) Number() protoreflect.EnumNumber { @@ -1079,11 +1122,11 @@ func (x VideoLayer_Mode) String() string { } func (VideoLayer_Mode) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_models_proto_enumTypes[18].Descriptor() + return file_livekit_models_proto_enumTypes[19].Descriptor() } func (VideoLayer_Mode) Type() protoreflect.EnumType { - return &file_livekit_models_proto_enumTypes[18] + return &file_livekit_models_proto_enumTypes[19] } func (x VideoLayer_Mode) Number() protoreflect.EnumNumber { @@ -1125,11 +1168,11 @@ func (x DataPacket_Kind) String() string { } func (DataPacket_Kind) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_models_proto_enumTypes[19].Descriptor() + return file_livekit_models_proto_enumTypes[20].Descriptor() } func (DataPacket_Kind) Type() protoreflect.EnumType { - return &file_livekit_models_proto_enumTypes[19] + return &file_livekit_models_proto_enumTypes[20] } func (x DataPacket_Kind) Number() protoreflect.EnumNumber { @@ -1171,11 +1214,11 @@ func (x ServerInfo_Edition) String() string { } func (ServerInfo_Edition) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_models_proto_enumTypes[20].Descriptor() + return file_livekit_models_proto_enumTypes[21].Descriptor() } func (ServerInfo_Edition) Type() protoreflect.EnumType { - return &file_livekit_models_proto_enumTypes[20] + return &file_livekit_models_proto_enumTypes[21] } func (x ServerInfo_Edition) Number() protoreflect.EnumNumber { @@ -1256,11 +1299,11 @@ func (x ClientInfo_SDK) String() string { } func (ClientInfo_SDK) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_models_proto_enumTypes[21].Descriptor() + return file_livekit_models_proto_enumTypes[22].Descriptor() } func (ClientInfo_SDK) Type() protoreflect.EnumType { - return &file_livekit_models_proto_enumTypes[21] + return &file_livekit_models_proto_enumTypes[22] } func (x ClientInfo_SDK) Number() protoreflect.EnumNumber { @@ -1309,11 +1352,11 @@ func (x DataStream_OperationType) String() string { } func (DataStream_OperationType) Descriptor() protoreflect.EnumDescriptor { - return file_livekit_models_proto_enumTypes[22].Descriptor() + return file_livekit_models_proto_enumTypes[23].Descriptor() } func (DataStream_OperationType) Type() protoreflect.EnumType { - return &file_livekit_models_proto_enumTypes[22] + return &file_livekit_models_proto_enumTypes[23] } func (x DataStream_OperationType) Number() protoreflect.EnumNumber { @@ -2223,15 +2266,15 @@ type TrackInfo struct { // Deprecated: Marked as deprecated in livekit_models.proto. Stereo bool `protobuf:"varint,14,opt,name=stereo,proto3" json:"stereo,omitempty"` // deprecated in favor of `audio_features` // true if RED (Redundant Encoding) is disabled for audio - DisableRed bool `protobuf:"varint,15,opt,name=disable_red,json=disableRed,proto3" json:"disable_red,omitempty"` - Encryption Encryption_Type `protobuf:"varint,16,opt,name=encryption,proto3,enum=livekit.Encryption_Type" json:"encryption,omitempty"` - Stream string `protobuf:"bytes,17,opt,name=stream,proto3" json:"stream,omitempty"` - Version *TimedVersion `protobuf:"bytes,18,opt,name=version,proto3" json:"version,omitempty"` - AudioFeatures []AudioTrackFeature `protobuf:"varint,19,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` - BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,20,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` - HasUserTimestamp bool `protobuf:"varint,21,opt,name=has_user_timestamp,json=hasUserTimestamp,proto3" json:"has_user_timestamp,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + DisableRed bool `protobuf:"varint,15,opt,name=disable_red,json=disableRed,proto3" json:"disable_red,omitempty"` + Encryption Encryption_Type `protobuf:"varint,16,opt,name=encryption,proto3,enum=livekit.Encryption_Type" json:"encryption,omitempty"` + Stream string `protobuf:"bytes,17,opt,name=stream,proto3" json:"stream,omitempty"` + Version *TimedVersion `protobuf:"bytes,18,opt,name=version,proto3" json:"version,omitempty"` + AudioFeatures []AudioTrackFeature `protobuf:"varint,19,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` + BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,20,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` + RtpTrailerFeatures []RTPTrailerFeature `protobuf:"varint,21,rep,packed,name=rtp_trailer_features,json=rtpTrailerFeatures,proto3,enum=livekit.RTPTrailerFeature" json:"rtp_trailer_features,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TrackInfo) Reset() { @@ -2408,11 +2451,11 @@ func (x *TrackInfo) GetBackupCodecPolicy() BackupCodecPolicy { return BackupCodecPolicy_PREFER_REGRESSION } -func (x *TrackInfo) GetHasUserTimestamp() bool { +func (x *TrackInfo) GetRtpTrailerFeatures() []RTPTrailerFeature { if x != nil { - return x.HasUserTimestamp + return x.RtpTrailerFeatures } - return false + return nil } type DataTrackInfo struct { @@ -6187,7 +6230,7 @@ const file_livekit_models_proto_rawDesc = "" + "\x03cid\x18\x03 \x01(\tR\x03cid\x12+\n" + "\x06layers\x18\x04 \x03(\v2\x13.livekit.VideoLayerR\x06layers\x12B\n" + "\x10video_layer_mode\x18\x05 \x01(\x0e2\x18.livekit.VideoLayer.ModeR\x0evideoLayerMode\x12\x17\n" + - "\asdp_cid\x18\x06 \x01(\tR\x06sdpCid\"\xaa\x06\n" + + "\asdp_cid\x18\x06 \x01(\tR\x06sdpCid\"\xca\x06\n" + "\tTrackInfo\x12\x10\n" + "\x03sid\x18\x01 \x01(\tR\x03sid\x12&\n" + "\x04type\x18\x02 \x01(\x0e2\x12.livekit.TrackTypeR\x04type\x12\x18\n" + @@ -6213,8 +6256,8 @@ const file_livekit_models_proto_rawDesc = "" + "\x06stream\x18\x11 \x01(\tR\x06stream\x12/\n" + "\aversion\x18\x12 \x01(\v2\x15.livekit.TimedVersionR\aversion\x12A\n" + "\x0eaudio_features\x18\x13 \x03(\x0e2\x1a.livekit.AudioTrackFeatureR\raudioFeatures\x12J\n" + - "\x13backup_codec_policy\x18\x14 \x01(\x0e2\x1a.livekit.BackupCodecPolicyR\x11backupCodecPolicy\x12,\n" + - "\x12has_user_timestamp\x18\x15 \x01(\bR\x10hasUserTimestamp\"\x8e\x01\n" + + "\x13backup_codec_policy\x18\x14 \x01(\x0e2\x1a.livekit.BackupCodecPolicyR\x11backupCodecPolicy\x12L\n" + + "\x14rtp_trailer_features\x18\x15 \x03(\x0e2\x1a.livekit.RTPTrailerFeatureR\x12rtpTrailerFeatures\"\x8e\x01\n" + "\rDataTrackInfo\x12\x1d\n" + "\n" + "pub_handle\x18\x01 \x01(\rR\tpubHandle\x12\x10\n" + @@ -6695,7 +6738,9 @@ const file_livekit_models_proto_rawDesc = "" + "\x14TF_ECHO_CANCELLATION\x10\x03\x12\x18\n" + "\x14TF_NOISE_SUPPRESSION\x10\x04\x12\"\n" + "\x1eTF_ENHANCED_NOISE_CANCELLATION\x10\x05\x12\x18\n" + - "\x14TF_PRECONNECT_BUFFER\x10\x06BFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3" + "\x14TF_PRECONNECT_BUFFER\x10\x06*'\n" + + "\x11RTPTrailerFeature\x12\x12\n" + + "\x0eUSER_TIMESTAMP\x10\x00BFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3" var ( file_livekit_models_proto_rawDescOnce sync.Once @@ -6709,7 +6754,7 @@ func file_livekit_models_proto_rawDescGZIP() []byte { return file_livekit_models_proto_rawDescData } -var file_livekit_models_proto_enumTypes = make([]protoimpl.EnumInfo, 23) +var file_livekit_models_proto_enumTypes = make([]protoimpl.EnumInfo, 24) var file_livekit_models_proto_msgTypes = make([]protoimpl.MessageInfo, 55) var file_livekit_models_proto_goTypes = []any{ (AudioCodec)(0), // 0: livekit.AudioCodec @@ -6726,162 +6771,164 @@ var file_livekit_models_proto_goTypes = []any{ (ReconnectReason)(0), // 11: livekit.ReconnectReason (SubscriptionError)(0), // 12: livekit.SubscriptionError (AudioTrackFeature)(0), // 13: livekit.AudioTrackFeature - (ParticipantInfo_State)(0), // 14: livekit.ParticipantInfo.State - (ParticipantInfo_Kind)(0), // 15: livekit.ParticipantInfo.Kind - (ParticipantInfo_KindDetail)(0), // 16: livekit.ParticipantInfo.KindDetail - (Encryption_Type)(0), // 17: livekit.Encryption.Type - (VideoLayer_Mode)(0), // 18: livekit.VideoLayer.Mode - (DataPacket_Kind)(0), // 19: livekit.DataPacket.Kind - (ServerInfo_Edition)(0), // 20: livekit.ServerInfo.Edition - (ClientInfo_SDK)(0), // 21: livekit.ClientInfo.SDK - (DataStream_OperationType)(0), // 22: livekit.DataStream.OperationType - (*Pagination)(nil), // 23: livekit.Pagination - (*TokenPagination)(nil), // 24: livekit.TokenPagination - (*ListUpdate)(nil), // 25: livekit.ListUpdate - (*Room)(nil), // 26: livekit.Room - (*Codec)(nil), // 27: livekit.Codec - (*PlayoutDelay)(nil), // 28: livekit.PlayoutDelay - (*ParticipantPermission)(nil), // 29: livekit.ParticipantPermission - (*ParticipantInfo)(nil), // 30: livekit.ParticipantInfo - (*Encryption)(nil), // 31: livekit.Encryption - (*SimulcastCodecInfo)(nil), // 32: livekit.SimulcastCodecInfo - (*TrackInfo)(nil), // 33: livekit.TrackInfo - (*DataTrackInfo)(nil), // 34: livekit.DataTrackInfo - (*DataTrackExtensionParticipantSid)(nil), // 35: livekit.DataTrackExtensionParticipantSid - (*DataTrackSubscriptionOptions)(nil), // 36: livekit.DataTrackSubscriptionOptions - (*VideoLayer)(nil), // 37: livekit.VideoLayer - (*DataPacket)(nil), // 38: livekit.DataPacket - (*EncryptedPacket)(nil), // 39: livekit.EncryptedPacket - (*EncryptedPacketPayload)(nil), // 40: livekit.EncryptedPacketPayload - (*ActiveSpeakerUpdate)(nil), // 41: livekit.ActiveSpeakerUpdate - (*SpeakerInfo)(nil), // 42: livekit.SpeakerInfo - (*UserPacket)(nil), // 43: livekit.UserPacket - (*SipDTMF)(nil), // 44: livekit.SipDTMF - (*Transcription)(nil), // 45: livekit.Transcription - (*TranscriptionSegment)(nil), // 46: livekit.TranscriptionSegment - (*ChatMessage)(nil), // 47: livekit.ChatMessage - (*RpcRequest)(nil), // 48: livekit.RpcRequest - (*RpcAck)(nil), // 49: livekit.RpcAck - (*RpcResponse)(nil), // 50: livekit.RpcResponse - (*RpcError)(nil), // 51: livekit.RpcError - (*ParticipantTracks)(nil), // 52: livekit.ParticipantTracks - (*ServerInfo)(nil), // 53: livekit.ServerInfo - (*ClientInfo)(nil), // 54: livekit.ClientInfo - (*ClientConfiguration)(nil), // 55: livekit.ClientConfiguration - (*VideoConfiguration)(nil), // 56: livekit.VideoConfiguration - (*DisabledCodecs)(nil), // 57: livekit.DisabledCodecs - (*RTPDrift)(nil), // 58: livekit.RTPDrift - (*RTPStats)(nil), // 59: livekit.RTPStats - (*RTCPSenderReportState)(nil), // 60: livekit.RTCPSenderReportState - (*RTPForwarderState)(nil), // 61: livekit.RTPForwarderState - (*RTPMungerState)(nil), // 62: livekit.RTPMungerState - (*VP8MungerState)(nil), // 63: livekit.VP8MungerState - (*TimedVersion)(nil), // 64: livekit.TimedVersion - (*DataStream)(nil), // 65: livekit.DataStream - (*FilterParams)(nil), // 66: livekit.FilterParams - (*WebhookConfig)(nil), // 67: livekit.WebhookConfig - (*SubscribedAudioCodec)(nil), // 68: livekit.SubscribedAudioCodec - nil, // 69: livekit.ParticipantInfo.AttributesEntry - nil, // 70: livekit.RTPStats.GapHistogramEntry - (*DataStream_TextHeader)(nil), // 71: livekit.DataStream.TextHeader - (*DataStream_ByteHeader)(nil), // 72: livekit.DataStream.ByteHeader - (*DataStream_Header)(nil), // 73: livekit.DataStream.Header - (*DataStream_Chunk)(nil), // 74: livekit.DataStream.Chunk - (*DataStream_Trailer)(nil), // 75: livekit.DataStream.Trailer - nil, // 76: livekit.DataStream.Header.AttributesEntry - nil, // 77: livekit.DataStream.Trailer.AttributesEntry - (*MetricsBatch)(nil), // 78: livekit.MetricsBatch - (*timestamppb.Timestamp)(nil), // 79: google.protobuf.Timestamp + (RTPTrailerFeature)(0), // 14: livekit.RTPTrailerFeature + (ParticipantInfo_State)(0), // 15: livekit.ParticipantInfo.State + (ParticipantInfo_Kind)(0), // 16: livekit.ParticipantInfo.Kind + (ParticipantInfo_KindDetail)(0), // 17: livekit.ParticipantInfo.KindDetail + (Encryption_Type)(0), // 18: livekit.Encryption.Type + (VideoLayer_Mode)(0), // 19: livekit.VideoLayer.Mode + (DataPacket_Kind)(0), // 20: livekit.DataPacket.Kind + (ServerInfo_Edition)(0), // 21: livekit.ServerInfo.Edition + (ClientInfo_SDK)(0), // 22: livekit.ClientInfo.SDK + (DataStream_OperationType)(0), // 23: livekit.DataStream.OperationType + (*Pagination)(nil), // 24: livekit.Pagination + (*TokenPagination)(nil), // 25: livekit.TokenPagination + (*ListUpdate)(nil), // 26: livekit.ListUpdate + (*Room)(nil), // 27: livekit.Room + (*Codec)(nil), // 28: livekit.Codec + (*PlayoutDelay)(nil), // 29: livekit.PlayoutDelay + (*ParticipantPermission)(nil), // 30: livekit.ParticipantPermission + (*ParticipantInfo)(nil), // 31: livekit.ParticipantInfo + (*Encryption)(nil), // 32: livekit.Encryption + (*SimulcastCodecInfo)(nil), // 33: livekit.SimulcastCodecInfo + (*TrackInfo)(nil), // 34: livekit.TrackInfo + (*DataTrackInfo)(nil), // 35: livekit.DataTrackInfo + (*DataTrackExtensionParticipantSid)(nil), // 36: livekit.DataTrackExtensionParticipantSid + (*DataTrackSubscriptionOptions)(nil), // 37: livekit.DataTrackSubscriptionOptions + (*VideoLayer)(nil), // 38: livekit.VideoLayer + (*DataPacket)(nil), // 39: livekit.DataPacket + (*EncryptedPacket)(nil), // 40: livekit.EncryptedPacket + (*EncryptedPacketPayload)(nil), // 41: livekit.EncryptedPacketPayload + (*ActiveSpeakerUpdate)(nil), // 42: livekit.ActiveSpeakerUpdate + (*SpeakerInfo)(nil), // 43: livekit.SpeakerInfo + (*UserPacket)(nil), // 44: livekit.UserPacket + (*SipDTMF)(nil), // 45: livekit.SipDTMF + (*Transcription)(nil), // 46: livekit.Transcription + (*TranscriptionSegment)(nil), // 47: livekit.TranscriptionSegment + (*ChatMessage)(nil), // 48: livekit.ChatMessage + (*RpcRequest)(nil), // 49: livekit.RpcRequest + (*RpcAck)(nil), // 50: livekit.RpcAck + (*RpcResponse)(nil), // 51: livekit.RpcResponse + (*RpcError)(nil), // 52: livekit.RpcError + (*ParticipantTracks)(nil), // 53: livekit.ParticipantTracks + (*ServerInfo)(nil), // 54: livekit.ServerInfo + (*ClientInfo)(nil), // 55: livekit.ClientInfo + (*ClientConfiguration)(nil), // 56: livekit.ClientConfiguration + (*VideoConfiguration)(nil), // 57: livekit.VideoConfiguration + (*DisabledCodecs)(nil), // 58: livekit.DisabledCodecs + (*RTPDrift)(nil), // 59: livekit.RTPDrift + (*RTPStats)(nil), // 60: livekit.RTPStats + (*RTCPSenderReportState)(nil), // 61: livekit.RTCPSenderReportState + (*RTPForwarderState)(nil), // 62: livekit.RTPForwarderState + (*RTPMungerState)(nil), // 63: livekit.RTPMungerState + (*VP8MungerState)(nil), // 64: livekit.VP8MungerState + (*TimedVersion)(nil), // 65: livekit.TimedVersion + (*DataStream)(nil), // 66: livekit.DataStream + (*FilterParams)(nil), // 67: livekit.FilterParams + (*WebhookConfig)(nil), // 68: livekit.WebhookConfig + (*SubscribedAudioCodec)(nil), // 69: livekit.SubscribedAudioCodec + nil, // 70: livekit.ParticipantInfo.AttributesEntry + nil, // 71: livekit.RTPStats.GapHistogramEntry + (*DataStream_TextHeader)(nil), // 72: livekit.DataStream.TextHeader + (*DataStream_ByteHeader)(nil), // 73: livekit.DataStream.ByteHeader + (*DataStream_Header)(nil), // 74: livekit.DataStream.Header + (*DataStream_Chunk)(nil), // 75: livekit.DataStream.Chunk + (*DataStream_Trailer)(nil), // 76: livekit.DataStream.Trailer + nil, // 77: livekit.DataStream.Header.AttributesEntry + nil, // 78: livekit.DataStream.Trailer.AttributesEntry + (*MetricsBatch)(nil), // 79: livekit.MetricsBatch + (*timestamppb.Timestamp)(nil), // 80: google.protobuf.Timestamp } var file_livekit_models_proto_depIdxs = []int32{ - 27, // 0: livekit.Room.enabled_codecs:type_name -> livekit.Codec - 64, // 1: livekit.Room.version:type_name -> livekit.TimedVersion + 28, // 0: livekit.Room.enabled_codecs:type_name -> livekit.Codec + 65, // 1: livekit.Room.version:type_name -> livekit.TimedVersion 5, // 2: livekit.ParticipantPermission.can_publish_sources:type_name -> livekit.TrackSource - 14, // 3: livekit.ParticipantInfo.state:type_name -> livekit.ParticipantInfo.State - 33, // 4: livekit.ParticipantInfo.tracks:type_name -> livekit.TrackInfo - 29, // 5: livekit.ParticipantInfo.permission:type_name -> livekit.ParticipantPermission - 15, // 6: livekit.ParticipantInfo.kind:type_name -> livekit.ParticipantInfo.Kind - 69, // 7: livekit.ParticipantInfo.attributes:type_name -> livekit.ParticipantInfo.AttributesEntry + 15, // 3: livekit.ParticipantInfo.state:type_name -> livekit.ParticipantInfo.State + 34, // 4: livekit.ParticipantInfo.tracks:type_name -> livekit.TrackInfo + 30, // 5: livekit.ParticipantInfo.permission:type_name -> livekit.ParticipantPermission + 16, // 6: livekit.ParticipantInfo.kind:type_name -> livekit.ParticipantInfo.Kind + 70, // 7: livekit.ParticipantInfo.attributes:type_name -> livekit.ParticipantInfo.AttributesEntry 10, // 8: livekit.ParticipantInfo.disconnect_reason:type_name -> livekit.DisconnectReason - 16, // 9: livekit.ParticipantInfo.kind_details:type_name -> livekit.ParticipantInfo.KindDetail - 34, // 10: livekit.ParticipantInfo.data_tracks:type_name -> livekit.DataTrackInfo - 37, // 11: livekit.SimulcastCodecInfo.layers:type_name -> livekit.VideoLayer - 18, // 12: livekit.SimulcastCodecInfo.video_layer_mode:type_name -> livekit.VideoLayer.Mode + 17, // 9: livekit.ParticipantInfo.kind_details:type_name -> livekit.ParticipantInfo.KindDetail + 35, // 10: livekit.ParticipantInfo.data_tracks:type_name -> livekit.DataTrackInfo + 38, // 11: livekit.SimulcastCodecInfo.layers:type_name -> livekit.VideoLayer + 19, // 12: livekit.SimulcastCodecInfo.video_layer_mode:type_name -> livekit.VideoLayer.Mode 4, // 13: livekit.TrackInfo.type:type_name -> livekit.TrackType 5, // 14: livekit.TrackInfo.source:type_name -> livekit.TrackSource - 37, // 15: livekit.TrackInfo.layers:type_name -> livekit.VideoLayer - 32, // 16: livekit.TrackInfo.codecs:type_name -> livekit.SimulcastCodecInfo - 17, // 17: livekit.TrackInfo.encryption:type_name -> livekit.Encryption.Type - 64, // 18: livekit.TrackInfo.version:type_name -> livekit.TimedVersion + 38, // 15: livekit.TrackInfo.layers:type_name -> livekit.VideoLayer + 33, // 16: livekit.TrackInfo.codecs:type_name -> livekit.SimulcastCodecInfo + 18, // 17: livekit.TrackInfo.encryption:type_name -> livekit.Encryption.Type + 65, // 18: livekit.TrackInfo.version:type_name -> livekit.TimedVersion 13, // 19: livekit.TrackInfo.audio_features:type_name -> livekit.AudioTrackFeature 3, // 20: livekit.TrackInfo.backup_codec_policy:type_name -> livekit.BackupCodecPolicy - 17, // 21: livekit.DataTrackInfo.encryption:type_name -> livekit.Encryption.Type - 6, // 22: livekit.DataTrackExtensionParticipantSid.id:type_name -> livekit.DataTrackExtensionID - 7, // 23: livekit.VideoLayer.quality:type_name -> livekit.VideoQuality - 19, // 24: livekit.DataPacket.kind:type_name -> livekit.DataPacket.Kind - 43, // 25: livekit.DataPacket.user:type_name -> livekit.UserPacket - 41, // 26: livekit.DataPacket.speaker:type_name -> livekit.ActiveSpeakerUpdate - 44, // 27: livekit.DataPacket.sip_dtmf:type_name -> livekit.SipDTMF - 45, // 28: livekit.DataPacket.transcription:type_name -> livekit.Transcription - 78, // 29: livekit.DataPacket.metrics:type_name -> livekit.MetricsBatch - 47, // 30: livekit.DataPacket.chat_message:type_name -> livekit.ChatMessage - 48, // 31: livekit.DataPacket.rpc_request:type_name -> livekit.RpcRequest - 49, // 32: livekit.DataPacket.rpc_ack:type_name -> livekit.RpcAck - 50, // 33: livekit.DataPacket.rpc_response:type_name -> livekit.RpcResponse - 73, // 34: livekit.DataPacket.stream_header:type_name -> livekit.DataStream.Header - 74, // 35: livekit.DataPacket.stream_chunk:type_name -> livekit.DataStream.Chunk - 75, // 36: livekit.DataPacket.stream_trailer:type_name -> livekit.DataStream.Trailer - 39, // 37: livekit.DataPacket.encrypted_packet:type_name -> livekit.EncryptedPacket - 17, // 38: livekit.EncryptedPacket.encryption_type:type_name -> livekit.Encryption.Type - 43, // 39: livekit.EncryptedPacketPayload.user:type_name -> livekit.UserPacket - 47, // 40: livekit.EncryptedPacketPayload.chat_message:type_name -> livekit.ChatMessage - 48, // 41: livekit.EncryptedPacketPayload.rpc_request:type_name -> livekit.RpcRequest - 49, // 42: livekit.EncryptedPacketPayload.rpc_ack:type_name -> livekit.RpcAck - 50, // 43: livekit.EncryptedPacketPayload.rpc_response:type_name -> livekit.RpcResponse - 73, // 44: livekit.EncryptedPacketPayload.stream_header:type_name -> livekit.DataStream.Header - 74, // 45: livekit.EncryptedPacketPayload.stream_chunk:type_name -> livekit.DataStream.Chunk - 75, // 46: livekit.EncryptedPacketPayload.stream_trailer:type_name -> livekit.DataStream.Trailer - 42, // 47: livekit.ActiveSpeakerUpdate.speakers:type_name -> livekit.SpeakerInfo - 46, // 48: livekit.Transcription.segments:type_name -> livekit.TranscriptionSegment - 51, // 49: livekit.RpcResponse.error:type_name -> livekit.RpcError - 20, // 50: livekit.ServerInfo.edition:type_name -> livekit.ServerInfo.Edition - 21, // 51: livekit.ClientInfo.sdk:type_name -> livekit.ClientInfo.SDK - 56, // 52: livekit.ClientConfiguration.video:type_name -> livekit.VideoConfiguration - 56, // 53: livekit.ClientConfiguration.screen:type_name -> livekit.VideoConfiguration - 9, // 54: livekit.ClientConfiguration.resume_connection:type_name -> livekit.ClientConfigSetting - 57, // 55: livekit.ClientConfiguration.disabled_codecs:type_name -> livekit.DisabledCodecs - 9, // 56: livekit.ClientConfiguration.force_relay:type_name -> livekit.ClientConfigSetting - 9, // 57: livekit.VideoConfiguration.hardware_encoder:type_name -> livekit.ClientConfigSetting - 27, // 58: livekit.DisabledCodecs.codecs:type_name -> livekit.Codec - 27, // 59: livekit.DisabledCodecs.publish:type_name -> livekit.Codec - 79, // 60: livekit.RTPDrift.start_time:type_name -> google.protobuf.Timestamp - 79, // 61: livekit.RTPDrift.end_time:type_name -> google.protobuf.Timestamp - 79, // 62: livekit.RTPStats.start_time:type_name -> google.protobuf.Timestamp - 79, // 63: livekit.RTPStats.end_time:type_name -> google.protobuf.Timestamp - 70, // 64: livekit.RTPStats.gap_histogram:type_name -> livekit.RTPStats.GapHistogramEntry - 79, // 65: livekit.RTPStats.last_pli:type_name -> google.protobuf.Timestamp - 79, // 66: livekit.RTPStats.last_fir:type_name -> google.protobuf.Timestamp - 79, // 67: livekit.RTPStats.last_key_frame:type_name -> google.protobuf.Timestamp - 79, // 68: livekit.RTPStats.last_layer_lock_pli:type_name -> google.protobuf.Timestamp - 58, // 69: livekit.RTPStats.packet_drift:type_name -> livekit.RTPDrift - 58, // 70: livekit.RTPStats.ntp_report_drift:type_name -> livekit.RTPDrift - 58, // 71: livekit.RTPStats.rebased_report_drift:type_name -> livekit.RTPDrift - 58, // 72: livekit.RTPStats.received_report_drift:type_name -> livekit.RTPDrift - 62, // 73: livekit.RTPForwarderState.rtp_munger:type_name -> livekit.RTPMungerState - 63, // 74: livekit.RTPForwarderState.vp8_munger:type_name -> livekit.VP8MungerState - 60, // 75: livekit.RTPForwarderState.sender_report_state:type_name -> livekit.RTCPSenderReportState - 66, // 76: livekit.WebhookConfig.filter_params:type_name -> livekit.FilterParams - 22, // 77: livekit.DataStream.TextHeader.operation_type:type_name -> livekit.DataStream.OperationType - 17, // 78: livekit.DataStream.Header.encryption_type:type_name -> livekit.Encryption.Type - 76, // 79: livekit.DataStream.Header.attributes:type_name -> livekit.DataStream.Header.AttributesEntry - 71, // 80: livekit.DataStream.Header.text_header:type_name -> livekit.DataStream.TextHeader - 72, // 81: livekit.DataStream.Header.byte_header:type_name -> livekit.DataStream.ByteHeader - 77, // 82: livekit.DataStream.Trailer.attributes:type_name -> livekit.DataStream.Trailer.AttributesEntry - 83, // [83:83] is the sub-list for method output_type - 83, // [83:83] is the sub-list for method input_type - 83, // [83:83] is the sub-list for extension type_name - 83, // [83:83] is the sub-list for extension extendee - 0, // [0:83] is the sub-list for field type_name + 14, // 21: livekit.TrackInfo.rtp_trailer_features:type_name -> livekit.RTPTrailerFeature + 18, // 22: livekit.DataTrackInfo.encryption:type_name -> livekit.Encryption.Type + 6, // 23: livekit.DataTrackExtensionParticipantSid.id:type_name -> livekit.DataTrackExtensionID + 7, // 24: livekit.VideoLayer.quality:type_name -> livekit.VideoQuality + 20, // 25: livekit.DataPacket.kind:type_name -> livekit.DataPacket.Kind + 44, // 26: livekit.DataPacket.user:type_name -> livekit.UserPacket + 42, // 27: livekit.DataPacket.speaker:type_name -> livekit.ActiveSpeakerUpdate + 45, // 28: livekit.DataPacket.sip_dtmf:type_name -> livekit.SipDTMF + 46, // 29: livekit.DataPacket.transcription:type_name -> livekit.Transcription + 79, // 30: livekit.DataPacket.metrics:type_name -> livekit.MetricsBatch + 48, // 31: livekit.DataPacket.chat_message:type_name -> livekit.ChatMessage + 49, // 32: livekit.DataPacket.rpc_request:type_name -> livekit.RpcRequest + 50, // 33: livekit.DataPacket.rpc_ack:type_name -> livekit.RpcAck + 51, // 34: livekit.DataPacket.rpc_response:type_name -> livekit.RpcResponse + 74, // 35: livekit.DataPacket.stream_header:type_name -> livekit.DataStream.Header + 75, // 36: livekit.DataPacket.stream_chunk:type_name -> livekit.DataStream.Chunk + 76, // 37: livekit.DataPacket.stream_trailer:type_name -> livekit.DataStream.Trailer + 40, // 38: livekit.DataPacket.encrypted_packet:type_name -> livekit.EncryptedPacket + 18, // 39: livekit.EncryptedPacket.encryption_type:type_name -> livekit.Encryption.Type + 44, // 40: livekit.EncryptedPacketPayload.user:type_name -> livekit.UserPacket + 48, // 41: livekit.EncryptedPacketPayload.chat_message:type_name -> livekit.ChatMessage + 49, // 42: livekit.EncryptedPacketPayload.rpc_request:type_name -> livekit.RpcRequest + 50, // 43: livekit.EncryptedPacketPayload.rpc_ack:type_name -> livekit.RpcAck + 51, // 44: livekit.EncryptedPacketPayload.rpc_response:type_name -> livekit.RpcResponse + 74, // 45: livekit.EncryptedPacketPayload.stream_header:type_name -> livekit.DataStream.Header + 75, // 46: livekit.EncryptedPacketPayload.stream_chunk:type_name -> livekit.DataStream.Chunk + 76, // 47: livekit.EncryptedPacketPayload.stream_trailer:type_name -> livekit.DataStream.Trailer + 43, // 48: livekit.ActiveSpeakerUpdate.speakers:type_name -> livekit.SpeakerInfo + 47, // 49: livekit.Transcription.segments:type_name -> livekit.TranscriptionSegment + 52, // 50: livekit.RpcResponse.error:type_name -> livekit.RpcError + 21, // 51: livekit.ServerInfo.edition:type_name -> livekit.ServerInfo.Edition + 22, // 52: livekit.ClientInfo.sdk:type_name -> livekit.ClientInfo.SDK + 57, // 53: livekit.ClientConfiguration.video:type_name -> livekit.VideoConfiguration + 57, // 54: livekit.ClientConfiguration.screen:type_name -> livekit.VideoConfiguration + 9, // 55: livekit.ClientConfiguration.resume_connection:type_name -> livekit.ClientConfigSetting + 58, // 56: livekit.ClientConfiguration.disabled_codecs:type_name -> livekit.DisabledCodecs + 9, // 57: livekit.ClientConfiguration.force_relay:type_name -> livekit.ClientConfigSetting + 9, // 58: livekit.VideoConfiguration.hardware_encoder:type_name -> livekit.ClientConfigSetting + 28, // 59: livekit.DisabledCodecs.codecs:type_name -> livekit.Codec + 28, // 60: livekit.DisabledCodecs.publish:type_name -> livekit.Codec + 80, // 61: livekit.RTPDrift.start_time:type_name -> google.protobuf.Timestamp + 80, // 62: livekit.RTPDrift.end_time:type_name -> google.protobuf.Timestamp + 80, // 63: livekit.RTPStats.start_time:type_name -> google.protobuf.Timestamp + 80, // 64: livekit.RTPStats.end_time:type_name -> google.protobuf.Timestamp + 71, // 65: livekit.RTPStats.gap_histogram:type_name -> livekit.RTPStats.GapHistogramEntry + 80, // 66: livekit.RTPStats.last_pli:type_name -> google.protobuf.Timestamp + 80, // 67: livekit.RTPStats.last_fir:type_name -> google.protobuf.Timestamp + 80, // 68: livekit.RTPStats.last_key_frame:type_name -> google.protobuf.Timestamp + 80, // 69: livekit.RTPStats.last_layer_lock_pli:type_name -> google.protobuf.Timestamp + 59, // 70: livekit.RTPStats.packet_drift:type_name -> livekit.RTPDrift + 59, // 71: livekit.RTPStats.ntp_report_drift:type_name -> livekit.RTPDrift + 59, // 72: livekit.RTPStats.rebased_report_drift:type_name -> livekit.RTPDrift + 59, // 73: livekit.RTPStats.received_report_drift:type_name -> livekit.RTPDrift + 63, // 74: livekit.RTPForwarderState.rtp_munger:type_name -> livekit.RTPMungerState + 64, // 75: livekit.RTPForwarderState.vp8_munger:type_name -> livekit.VP8MungerState + 61, // 76: livekit.RTPForwarderState.sender_report_state:type_name -> livekit.RTCPSenderReportState + 67, // 77: livekit.WebhookConfig.filter_params:type_name -> livekit.FilterParams + 23, // 78: livekit.DataStream.TextHeader.operation_type:type_name -> livekit.DataStream.OperationType + 18, // 79: livekit.DataStream.Header.encryption_type:type_name -> livekit.Encryption.Type + 77, // 80: livekit.DataStream.Header.attributes:type_name -> livekit.DataStream.Header.AttributesEntry + 72, // 81: livekit.DataStream.Header.text_header:type_name -> livekit.DataStream.TextHeader + 73, // 82: livekit.DataStream.Header.byte_header:type_name -> livekit.DataStream.ByteHeader + 78, // 83: livekit.DataStream.Trailer.attributes:type_name -> livekit.DataStream.Trailer.AttributesEntry + 84, // [84:84] is the sub-list for method output_type + 84, // [84:84] is the sub-list for method input_type + 84, // [84:84] is the sub-list for extension type_name + 84, // [84:84] is the sub-list for extension extendee + 0, // [0:84] is the sub-list for field type_name } func init() { file_livekit_models_proto_init() } @@ -6936,7 +6983,7 @@ func file_livekit_models_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_livekit_models_proto_rawDesc), len(file_livekit_models_proto_rawDesc)), - NumEnums: 23, + NumEnums: 24, NumMessages: 55, NumExtensions: 0, NumServices: 0, diff --git a/livekit/livekit_rtc.pb.go b/livekit/livekit_rtc.pb.go index 070c7d87e..4e665f334 100644 --- a/livekit/livekit_rtc.pb.go +++ b/livekit/livekit_rtc.pb.go @@ -1358,12 +1358,12 @@ type AddTrackRequest struct { Encryption Encryption_Type `protobuf:"varint,14,opt,name=encryption,proto3,enum=livekit.Encryption_Type" json:"encryption,omitempty"` // which stream the track belongs to, used to group tracks together. // if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together - Stream string `protobuf:"bytes,15,opt,name=stream,proto3" json:"stream,omitempty"` - BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,16,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` - AudioFeatures []AudioTrackFeature `protobuf:"varint,17,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` - HasUserTimestamp bool `protobuf:"varint,18,opt,name=has_user_timestamp,json=hasUserTimestamp,proto3" json:"has_user_timestamp,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Stream string `protobuf:"bytes,15,opt,name=stream,proto3" json:"stream,omitempty"` + BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,16,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` + AudioFeatures []AudioTrackFeature `protobuf:"varint,17,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` + RtpTrailerFeatures []RTPTrailerFeature `protobuf:"varint,18,rep,packed,name=rtp_trailer_features,json=rtpTrailerFeatures,proto3,enum=livekit.RTPTrailerFeature" json:"rtp_trailer_features,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddTrackRequest) Reset() { @@ -1517,11 +1517,11 @@ func (x *AddTrackRequest) GetAudioFeatures() []AudioTrackFeature { return nil } -func (x *AddTrackRequest) GetHasUserTimestamp() bool { +func (x *AddTrackRequest) GetRtpTrailerFeatures() []RTPTrailerFeature { if x != nil { - return x.HasUserTimestamp + return x.RtpTrailerFeatures } - return false + return nil } type PublishDataTrackRequest struct { @@ -5079,7 +5079,7 @@ const file_livekit_rtc_proto_rawDesc = "" + "\x05codec\x18\x01 \x01(\tR\x05codec\x12\x10\n" + "\x03cid\x18\x02 \x01(\tR\x03cid\x12+\n" + "\x06layers\x18\x04 \x03(\v2\x13.livekit.VideoLayerR\x06layers\x12B\n" + - "\x10video_layer_mode\x18\x05 \x01(\x0e2\x18.livekit.VideoLayer.ModeR\x0evideoLayerMode\"\xc5\x05\n" + + "\x10video_layer_mode\x18\x05 \x01(\x0e2\x18.livekit.VideoLayer.ModeR\x0evideoLayerMode\"\xe5\x05\n" + "\x0fAddTrackRequest\x12\x10\n" + "\x03cid\x18\x01 \x01(\tR\x03cid\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12&\n" + @@ -5102,8 +5102,8 @@ const file_livekit_rtc_proto_rawDesc = "" + "encryption\x12\x16\n" + "\x06stream\x18\x0f \x01(\tR\x06stream\x12J\n" + "\x13backup_codec_policy\x18\x10 \x01(\x0e2\x1a.livekit.BackupCodecPolicyR\x11backupCodecPolicy\x12A\n" + - "\x0eaudio_features\x18\x11 \x03(\x0e2\x1a.livekit.AudioTrackFeatureR\raudioFeatures\x12,\n" + - "\x12has_user_timestamp\x18\x12 \x01(\bR\x10hasUserTimestamp\"\x86\x01\n" + + "\x0eaudio_features\x18\x11 \x03(\x0e2\x1a.livekit.AudioTrackFeatureR\raudioFeatures\x12L\n" + + "\x14rtp_trailer_features\x18\x12 \x03(\x0e2\x1a.livekit.RTPTrailerFeatureR\x12rtpTrailerFeatures\"\x86\x01\n" + "\x17PublishDataTrackRequest\x12\x1d\n" + "\n" + "pub_handle\x18\x01 \x01(\rR\tpubHandle\x12\x12\n" + @@ -5498,23 +5498,24 @@ var file_livekit_rtc_proto_goTypes = []any{ (Encryption_Type)(0), // 71: livekit.Encryption.Type (BackupCodecPolicy)(0), // 72: livekit.BackupCodecPolicy (AudioTrackFeature)(0), // 73: livekit.AudioTrackFeature - (*DataTrackInfo)(nil), // 74: livekit.DataTrackInfo - (*Room)(nil), // 75: livekit.Room - (*ParticipantInfo)(nil), // 76: livekit.ParticipantInfo - (*ClientConfiguration)(nil), // 77: livekit.ClientConfiguration - (*ServerInfo)(nil), // 78: livekit.ServerInfo - (*Codec)(nil), // 79: livekit.Codec - (*TrackInfo)(nil), // 80: livekit.TrackInfo - (*ParticipantTracks)(nil), // 81: livekit.ParticipantTracks - (VideoQuality)(0), // 82: livekit.VideoQuality - (DisconnectReason)(0), // 83: livekit.DisconnectReason - (*SpeakerInfo)(nil), // 84: livekit.SpeakerInfo - (ConnectionQuality)(0), // 85: livekit.ConnectionQuality - (*SubscribedAudioCodec)(nil), // 86: livekit.SubscribedAudioCodec - (SubscriptionError)(0), // 87: livekit.SubscriptionError - (*ClientInfo)(nil), // 88: livekit.ClientInfo - (ReconnectReason)(0), // 89: livekit.ReconnectReason - (*DataTrackSubscriptionOptions)(nil), // 90: livekit.DataTrackSubscriptionOptions + (RTPTrailerFeature)(0), // 74: livekit.RTPTrailerFeature + (*DataTrackInfo)(nil), // 75: livekit.DataTrackInfo + (*Room)(nil), // 76: livekit.Room + (*ParticipantInfo)(nil), // 77: livekit.ParticipantInfo + (*ClientConfiguration)(nil), // 78: livekit.ClientConfiguration + (*ServerInfo)(nil), // 79: livekit.ServerInfo + (*Codec)(nil), // 80: livekit.Codec + (*TrackInfo)(nil), // 81: livekit.TrackInfo + (*ParticipantTracks)(nil), // 82: livekit.ParticipantTracks + (VideoQuality)(0), // 83: livekit.VideoQuality + (DisconnectReason)(0), // 84: livekit.DisconnectReason + (*SpeakerInfo)(nil), // 85: livekit.SpeakerInfo + (ConnectionQuality)(0), // 86: livekit.ConnectionQuality + (*SubscribedAudioCodec)(nil), // 87: livekit.SubscribedAudioCodec + (SubscriptionError)(0), // 88: livekit.SubscriptionError + (*ClientInfo)(nil), // 89: livekit.ClientInfo + (ReconnectReason)(0), // 90: livekit.ReconnectReason + (*DataTrackSubscriptionOptions)(nil), // 91: livekit.DataTrackSubscriptionOptions } var file_livekit_rtc_proto_depIdxs = []int32{ 21, // 0: livekit.SignalRequest.offer:type_name -> livekit.SessionDescription @@ -5571,83 +5572,84 @@ var file_livekit_rtc_proto_depIdxs = []int32{ 71, // 51: livekit.AddTrackRequest.encryption:type_name -> livekit.Encryption.Type 72, // 52: livekit.AddTrackRequest.backup_codec_policy:type_name -> livekit.BackupCodecPolicy 73, // 53: livekit.AddTrackRequest.audio_features:type_name -> livekit.AudioTrackFeature - 71, // 54: livekit.PublishDataTrackRequest.encryption:type_name -> livekit.Encryption.Type - 74, // 55: livekit.PublishDataTrackResponse.info:type_name -> livekit.DataTrackInfo - 74, // 56: livekit.UnpublishDataTrackResponse.info:type_name -> livekit.DataTrackInfo - 62, // 57: livekit.DataTrackSubscriberHandles.sub_handles:type_name -> livekit.DataTrackSubscriberHandles.SubHandlesEntry - 0, // 58: livekit.TrickleRequest.target:type_name -> livekit.SignalTarget - 75, // 59: livekit.JoinResponse.room:type_name -> livekit.Room - 76, // 60: livekit.JoinResponse.participant:type_name -> livekit.ParticipantInfo - 76, // 61: livekit.JoinResponse.other_participants:type_name -> livekit.ParticipantInfo - 31, // 62: livekit.JoinResponse.ice_servers:type_name -> livekit.ICEServer - 77, // 63: livekit.JoinResponse.client_configuration:type_name -> livekit.ClientConfiguration - 78, // 64: livekit.JoinResponse.server_info:type_name -> livekit.ServerInfo - 79, // 65: livekit.JoinResponse.enabled_publish_codecs:type_name -> livekit.Codec - 31, // 66: livekit.ReconnectResponse.ice_servers:type_name -> livekit.ICEServer - 77, // 67: livekit.ReconnectResponse.client_configuration:type_name -> livekit.ClientConfiguration - 78, // 68: livekit.ReconnectResponse.server_info:type_name -> livekit.ServerInfo - 80, // 69: livekit.TrackPublishedResponse.track:type_name -> livekit.TrackInfo - 63, // 70: livekit.SessionDescription.mid_to_track_id:type_name -> livekit.SessionDescription.MidToTrackIdEntry - 76, // 71: livekit.ParticipantUpdate.participants:type_name -> livekit.ParticipantInfo - 81, // 72: livekit.UpdateSubscription.participant_tracks:type_name -> livekit.ParticipantTracks - 64, // 73: livekit.UpdateDataSubscription.updates:type_name -> livekit.UpdateDataSubscription.Update - 82, // 74: livekit.UpdateTrackSettings.quality:type_name -> livekit.VideoQuality - 73, // 75: livekit.UpdateLocalAudioTrack.features:type_name -> livekit.AudioTrackFeature - 83, // 76: livekit.LeaveRequest.reason:type_name -> livekit.DisconnectReason - 3, // 77: livekit.LeaveRequest.action:type_name -> livekit.LeaveRequest.Action - 52, // 78: livekit.LeaveRequest.regions:type_name -> livekit.RegionSettings - 67, // 79: livekit.UpdateVideoLayers.layers:type_name -> livekit.VideoLayer - 65, // 80: livekit.UpdateParticipantMetadata.attributes:type_name -> livekit.UpdateParticipantMetadata.AttributesEntry - 84, // 81: livekit.SpeakersChanged.speakers:type_name -> livekit.SpeakerInfo - 75, // 82: livekit.RoomUpdate.room:type_name -> livekit.Room - 85, // 83: livekit.ConnectionQualityInfo.quality:type_name -> livekit.ConnectionQuality - 34, // 84: livekit.ConnectionQualityUpdate.updates:type_name -> livekit.ConnectionQualityInfo - 1, // 85: livekit.StreamStateInfo.state:type_name -> livekit.StreamState - 36, // 86: livekit.StreamStateUpdate.stream_states:type_name -> livekit.StreamStateInfo - 82, // 87: livekit.SubscribedQuality.quality:type_name -> livekit.VideoQuality - 38, // 88: livekit.SubscribedCodec.qualities:type_name -> livekit.SubscribedQuality - 38, // 89: livekit.SubscribedQualityUpdate.subscribed_qualities:type_name -> livekit.SubscribedQuality - 39, // 90: livekit.SubscribedQualityUpdate.subscribed_codecs:type_name -> livekit.SubscribedCodec - 86, // 91: livekit.SubscribedAudioCodecUpdate.subscribed_audio_codecs:type_name -> livekit.SubscribedAudioCodec - 42, // 92: livekit.SubscriptionPermission.track_permissions:type_name -> livekit.TrackPermission - 75, // 93: livekit.RoomMovedResponse.room:type_name -> livekit.Room - 76, // 94: livekit.RoomMovedResponse.participant:type_name -> livekit.ParticipantInfo - 76, // 95: livekit.RoomMovedResponse.other_participants:type_name -> livekit.ParticipantInfo - 21, // 96: livekit.SyncState.answer:type_name -> livekit.SessionDescription - 23, // 97: livekit.SyncState.subscription:type_name -> livekit.UpdateSubscription - 19, // 98: livekit.SyncState.publish_tracks:type_name -> livekit.TrackPublishedResponse - 48, // 99: livekit.SyncState.data_channels:type_name -> livekit.DataChannelInfo - 21, // 100: livekit.SyncState.offer:type_name -> livekit.SessionDescription - 47, // 101: livekit.SyncState.datachannel_receive_states:type_name -> livekit.DataChannelReceiveState - 11, // 102: livekit.SyncState.publish_data_tracks:type_name -> livekit.PublishDataTrackResponse - 0, // 103: livekit.DataChannelInfo.target:type_name -> livekit.SignalTarget - 2, // 104: livekit.SimulateScenario.switch_candidate_protocol:type_name -> livekit.CandidateProtocol - 53, // 105: livekit.RegionSettings.regions:type_name -> livekit.RegionInfo - 87, // 106: livekit.SubscriptionResponse.err:type_name -> livekit.SubscriptionError - 4, // 107: livekit.RequestResponse.reason:type_name -> livekit.RequestResponse.Reason - 15, // 108: livekit.RequestResponse.trickle:type_name -> livekit.TrickleRequest - 9, // 109: livekit.RequestResponse.add_track:type_name -> livekit.AddTrackRequest - 16, // 110: livekit.RequestResponse.mute:type_name -> livekit.MuteTrackRequest - 30, // 111: livekit.RequestResponse.update_metadata:type_name -> livekit.UpdateParticipantMetadata - 26, // 112: livekit.RequestResponse.update_audio_track:type_name -> livekit.UpdateLocalAudioTrack - 27, // 113: livekit.RequestResponse.update_video_track:type_name -> livekit.UpdateLocalVideoTrack - 10, // 114: livekit.RequestResponse.publish_data_track:type_name -> livekit.PublishDataTrackRequest - 12, // 115: livekit.RequestResponse.unpublish_data_track:type_name -> livekit.UnpublishDataTrackRequest - 88, // 116: livekit.JoinRequest.client_info:type_name -> livekit.ClientInfo - 57, // 117: livekit.JoinRequest.connection_settings:type_name -> livekit.ConnectionSettings - 66, // 118: livekit.JoinRequest.participant_attributes:type_name -> livekit.JoinRequest.ParticipantAttributesEntry - 9, // 119: livekit.JoinRequest.add_track_requests:type_name -> livekit.AddTrackRequest - 21, // 120: livekit.JoinRequest.publisher_offer:type_name -> livekit.SessionDescription - 89, // 121: livekit.JoinRequest.reconnect_reason:type_name -> livekit.ReconnectReason - 46, // 122: livekit.JoinRequest.sync_state:type_name -> livekit.SyncState - 5, // 123: livekit.WrappedJoinRequest.compression:type_name -> livekit.WrappedJoinRequest.Compression - 61, // 124: livekit.DataTrackSubscriberHandles.SubHandlesEntry.value:type_name -> livekit.DataTrackSubscriberHandles.PublishedDataTrack - 90, // 125: livekit.UpdateDataSubscription.Update.options:type_name -> livekit.DataTrackSubscriptionOptions - 126, // [126:126] is the sub-list for method output_type - 126, // [126:126] is the sub-list for method input_type - 126, // [126:126] is the sub-list for extension type_name - 126, // [126:126] is the sub-list for extension extendee - 0, // [0:126] is the sub-list for field type_name + 74, // 54: livekit.AddTrackRequest.rtp_trailer_features:type_name -> livekit.RTPTrailerFeature + 71, // 55: livekit.PublishDataTrackRequest.encryption:type_name -> livekit.Encryption.Type + 75, // 56: livekit.PublishDataTrackResponse.info:type_name -> livekit.DataTrackInfo + 75, // 57: livekit.UnpublishDataTrackResponse.info:type_name -> livekit.DataTrackInfo + 62, // 58: livekit.DataTrackSubscriberHandles.sub_handles:type_name -> livekit.DataTrackSubscriberHandles.SubHandlesEntry + 0, // 59: livekit.TrickleRequest.target:type_name -> livekit.SignalTarget + 76, // 60: livekit.JoinResponse.room:type_name -> livekit.Room + 77, // 61: livekit.JoinResponse.participant:type_name -> livekit.ParticipantInfo + 77, // 62: livekit.JoinResponse.other_participants:type_name -> livekit.ParticipantInfo + 31, // 63: livekit.JoinResponse.ice_servers:type_name -> livekit.ICEServer + 78, // 64: livekit.JoinResponse.client_configuration:type_name -> livekit.ClientConfiguration + 79, // 65: livekit.JoinResponse.server_info:type_name -> livekit.ServerInfo + 80, // 66: livekit.JoinResponse.enabled_publish_codecs:type_name -> livekit.Codec + 31, // 67: livekit.ReconnectResponse.ice_servers:type_name -> livekit.ICEServer + 78, // 68: livekit.ReconnectResponse.client_configuration:type_name -> livekit.ClientConfiguration + 79, // 69: livekit.ReconnectResponse.server_info:type_name -> livekit.ServerInfo + 81, // 70: livekit.TrackPublishedResponse.track:type_name -> livekit.TrackInfo + 63, // 71: livekit.SessionDescription.mid_to_track_id:type_name -> livekit.SessionDescription.MidToTrackIdEntry + 77, // 72: livekit.ParticipantUpdate.participants:type_name -> livekit.ParticipantInfo + 82, // 73: livekit.UpdateSubscription.participant_tracks:type_name -> livekit.ParticipantTracks + 64, // 74: livekit.UpdateDataSubscription.updates:type_name -> livekit.UpdateDataSubscription.Update + 83, // 75: livekit.UpdateTrackSettings.quality:type_name -> livekit.VideoQuality + 73, // 76: livekit.UpdateLocalAudioTrack.features:type_name -> livekit.AudioTrackFeature + 84, // 77: livekit.LeaveRequest.reason:type_name -> livekit.DisconnectReason + 3, // 78: livekit.LeaveRequest.action:type_name -> livekit.LeaveRequest.Action + 52, // 79: livekit.LeaveRequest.regions:type_name -> livekit.RegionSettings + 67, // 80: livekit.UpdateVideoLayers.layers:type_name -> livekit.VideoLayer + 65, // 81: livekit.UpdateParticipantMetadata.attributes:type_name -> livekit.UpdateParticipantMetadata.AttributesEntry + 85, // 82: livekit.SpeakersChanged.speakers:type_name -> livekit.SpeakerInfo + 76, // 83: livekit.RoomUpdate.room:type_name -> livekit.Room + 86, // 84: livekit.ConnectionQualityInfo.quality:type_name -> livekit.ConnectionQuality + 34, // 85: livekit.ConnectionQualityUpdate.updates:type_name -> livekit.ConnectionQualityInfo + 1, // 86: livekit.StreamStateInfo.state:type_name -> livekit.StreamState + 36, // 87: livekit.StreamStateUpdate.stream_states:type_name -> livekit.StreamStateInfo + 83, // 88: livekit.SubscribedQuality.quality:type_name -> livekit.VideoQuality + 38, // 89: livekit.SubscribedCodec.qualities:type_name -> livekit.SubscribedQuality + 38, // 90: livekit.SubscribedQualityUpdate.subscribed_qualities:type_name -> livekit.SubscribedQuality + 39, // 91: livekit.SubscribedQualityUpdate.subscribed_codecs:type_name -> livekit.SubscribedCodec + 87, // 92: livekit.SubscribedAudioCodecUpdate.subscribed_audio_codecs:type_name -> livekit.SubscribedAudioCodec + 42, // 93: livekit.SubscriptionPermission.track_permissions:type_name -> livekit.TrackPermission + 76, // 94: livekit.RoomMovedResponse.room:type_name -> livekit.Room + 77, // 95: livekit.RoomMovedResponse.participant:type_name -> livekit.ParticipantInfo + 77, // 96: livekit.RoomMovedResponse.other_participants:type_name -> livekit.ParticipantInfo + 21, // 97: livekit.SyncState.answer:type_name -> livekit.SessionDescription + 23, // 98: livekit.SyncState.subscription:type_name -> livekit.UpdateSubscription + 19, // 99: livekit.SyncState.publish_tracks:type_name -> livekit.TrackPublishedResponse + 48, // 100: livekit.SyncState.data_channels:type_name -> livekit.DataChannelInfo + 21, // 101: livekit.SyncState.offer:type_name -> livekit.SessionDescription + 47, // 102: livekit.SyncState.datachannel_receive_states:type_name -> livekit.DataChannelReceiveState + 11, // 103: livekit.SyncState.publish_data_tracks:type_name -> livekit.PublishDataTrackResponse + 0, // 104: livekit.DataChannelInfo.target:type_name -> livekit.SignalTarget + 2, // 105: livekit.SimulateScenario.switch_candidate_protocol:type_name -> livekit.CandidateProtocol + 53, // 106: livekit.RegionSettings.regions:type_name -> livekit.RegionInfo + 88, // 107: livekit.SubscriptionResponse.err:type_name -> livekit.SubscriptionError + 4, // 108: livekit.RequestResponse.reason:type_name -> livekit.RequestResponse.Reason + 15, // 109: livekit.RequestResponse.trickle:type_name -> livekit.TrickleRequest + 9, // 110: livekit.RequestResponse.add_track:type_name -> livekit.AddTrackRequest + 16, // 111: livekit.RequestResponse.mute:type_name -> livekit.MuteTrackRequest + 30, // 112: livekit.RequestResponse.update_metadata:type_name -> livekit.UpdateParticipantMetadata + 26, // 113: livekit.RequestResponse.update_audio_track:type_name -> livekit.UpdateLocalAudioTrack + 27, // 114: livekit.RequestResponse.update_video_track:type_name -> livekit.UpdateLocalVideoTrack + 10, // 115: livekit.RequestResponse.publish_data_track:type_name -> livekit.PublishDataTrackRequest + 12, // 116: livekit.RequestResponse.unpublish_data_track:type_name -> livekit.UnpublishDataTrackRequest + 89, // 117: livekit.JoinRequest.client_info:type_name -> livekit.ClientInfo + 57, // 118: livekit.JoinRequest.connection_settings:type_name -> livekit.ConnectionSettings + 66, // 119: livekit.JoinRequest.participant_attributes:type_name -> livekit.JoinRequest.ParticipantAttributesEntry + 9, // 120: livekit.JoinRequest.add_track_requests:type_name -> livekit.AddTrackRequest + 21, // 121: livekit.JoinRequest.publisher_offer:type_name -> livekit.SessionDescription + 90, // 122: livekit.JoinRequest.reconnect_reason:type_name -> livekit.ReconnectReason + 46, // 123: livekit.JoinRequest.sync_state:type_name -> livekit.SyncState + 5, // 124: livekit.WrappedJoinRequest.compression:type_name -> livekit.WrappedJoinRequest.Compression + 61, // 125: livekit.DataTrackSubscriberHandles.SubHandlesEntry.value:type_name -> livekit.DataTrackSubscriberHandles.PublishedDataTrack + 91, // 126: livekit.UpdateDataSubscription.Update.options:type_name -> livekit.DataTrackSubscriptionOptions + 127, // [127:127] is the sub-list for method output_type + 127, // [127:127] is the sub-list for method input_type + 127, // [127:127] is the sub-list for extension type_name + 127, // [127:127] is the sub-list for extension extendee + 0, // [0:127] is the sub-list for field type_name } func init() { file_livekit_rtc_proto_init() } diff --git a/protobufs/livekit_models.proto b/protobufs/livekit_models.proto index e9089405b..0045a5812 100644 --- a/protobufs/livekit_models.proto +++ b/protobufs/livekit_models.proto @@ -267,7 +267,7 @@ message TrackInfo { repeated AudioTrackFeature audio_features = 19; BackupCodecPolicy backup_codec_policy = 20; - bool has_user_timestamp = 21; + repeated RTPTrailerFeature rtp_trailer_features = 21; } message DataTrackInfo { @@ -762,6 +762,10 @@ enum AudioTrackFeature { TF_PRECONNECT_BUFFER = 6; // client will buffer audio once available and send it to the server via bytes stream once connected } +enum RTPTrailerFeature { + USER_TIMESTAMP = 0; +} + message DataStream { // enum for operation types (specific to TextHeader) enum OperationType { diff --git a/protobufs/livekit_rtc.proto b/protobufs/livekit_rtc.proto index f0910ca4e..1f200c139 100644 --- a/protobufs/livekit_rtc.proto +++ b/protobufs/livekit_rtc.proto @@ -173,7 +173,7 @@ message AddTrackRequest { repeated AudioTrackFeature audio_features = 17; - bool has_user_timestamp = 18; + repeated RTPTrailerFeature rtp_trailer_features = 18; } message PublishDataTrackRequest { From 98daa7d9e0199a28d356afe512a3ee97dc611c98 Mon Sep 17 00:00:00 2001 From: David Chen Date: Mon, 2 Mar 2026 11:35:11 -0800 Subject: [PATCH 3/4] change name to PacketTrailerFeature --- protobufs/livekit_models.proto | 6 +++--- protobufs/livekit_rtc.proto | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protobufs/livekit_models.proto b/protobufs/livekit_models.proto index 0045a5812..52abdb152 100644 --- a/protobufs/livekit_models.proto +++ b/protobufs/livekit_models.proto @@ -267,7 +267,7 @@ message TrackInfo { repeated AudioTrackFeature audio_features = 19; BackupCodecPolicy backup_codec_policy = 20; - repeated RTPTrailerFeature rtp_trailer_features = 21; + repeated PacketTrailerFeature packet_trailer_features = 21; } message DataTrackInfo { @@ -762,8 +762,8 @@ enum AudioTrackFeature { TF_PRECONNECT_BUFFER = 6; // client will buffer audio once available and send it to the server via bytes stream once connected } -enum RTPTrailerFeature { - USER_TIMESTAMP = 0; +enum PacketTrailerFeature { + PTF_USER_TIMESTAMP = 0; } message DataStream { diff --git a/protobufs/livekit_rtc.proto b/protobufs/livekit_rtc.proto index 1f200c139..75c13b532 100644 --- a/protobufs/livekit_rtc.proto +++ b/protobufs/livekit_rtc.proto @@ -173,7 +173,7 @@ message AddTrackRequest { repeated AudioTrackFeature audio_features = 17; - repeated RTPTrailerFeature rtp_trailer_features = 18; + repeated PacketTrailerFeature packet_trailer_features = 18; } message PublishDataTrackRequest { From 75cb0752d5ad76b5fdb26d75c8c16f435b622f89 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:36:07 +0000 Subject: [PATCH 4/4] generated protobuf --- livekit/livekit_models.pb.go | 68 ++++++++++++++++++------------------ livekit/livekit_rtc.pb.go | 26 +++++++------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/livekit/livekit_models.pb.go b/livekit/livekit_models.pb.go index 6a0be29fe..4fc936df6 100644 --- a/livekit/livekit_models.pb.go +++ b/livekit/livekit_models.pb.go @@ -815,46 +815,46 @@ func (AudioTrackFeature) EnumDescriptor() ([]byte, []int) { return file_livekit_models_proto_rawDescGZIP(), []int{13} } -type RTPTrailerFeature int32 +type PacketTrailerFeature int32 const ( - RTPTrailerFeature_USER_TIMESTAMP RTPTrailerFeature = 0 + PacketTrailerFeature_PTF_USER_TIMESTAMP PacketTrailerFeature = 0 ) -// Enum value maps for RTPTrailerFeature. +// Enum value maps for PacketTrailerFeature. var ( - RTPTrailerFeature_name = map[int32]string{ - 0: "USER_TIMESTAMP", + PacketTrailerFeature_name = map[int32]string{ + 0: "PTF_USER_TIMESTAMP", } - RTPTrailerFeature_value = map[string]int32{ - "USER_TIMESTAMP": 0, + PacketTrailerFeature_value = map[string]int32{ + "PTF_USER_TIMESTAMP": 0, } ) -func (x RTPTrailerFeature) Enum() *RTPTrailerFeature { - p := new(RTPTrailerFeature) +func (x PacketTrailerFeature) Enum() *PacketTrailerFeature { + p := new(PacketTrailerFeature) *p = x return p } -func (x RTPTrailerFeature) String() string { +func (x PacketTrailerFeature) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (RTPTrailerFeature) Descriptor() protoreflect.EnumDescriptor { +func (PacketTrailerFeature) Descriptor() protoreflect.EnumDescriptor { return file_livekit_models_proto_enumTypes[14].Descriptor() } -func (RTPTrailerFeature) Type() protoreflect.EnumType { +func (PacketTrailerFeature) Type() protoreflect.EnumType { return &file_livekit_models_proto_enumTypes[14] } -func (x RTPTrailerFeature) Number() protoreflect.EnumNumber { +func (x PacketTrailerFeature) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use RTPTrailerFeature.Descriptor instead. -func (RTPTrailerFeature) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use PacketTrailerFeature.Descriptor instead. +func (PacketTrailerFeature) EnumDescriptor() ([]byte, []int) { return file_livekit_models_proto_rawDescGZIP(), []int{14} } @@ -2266,15 +2266,15 @@ type TrackInfo struct { // Deprecated: Marked as deprecated in livekit_models.proto. Stereo bool `protobuf:"varint,14,opt,name=stereo,proto3" json:"stereo,omitempty"` // deprecated in favor of `audio_features` // true if RED (Redundant Encoding) is disabled for audio - DisableRed bool `protobuf:"varint,15,opt,name=disable_red,json=disableRed,proto3" json:"disable_red,omitempty"` - Encryption Encryption_Type `protobuf:"varint,16,opt,name=encryption,proto3,enum=livekit.Encryption_Type" json:"encryption,omitempty"` - Stream string `protobuf:"bytes,17,opt,name=stream,proto3" json:"stream,omitempty"` - Version *TimedVersion `protobuf:"bytes,18,opt,name=version,proto3" json:"version,omitempty"` - AudioFeatures []AudioTrackFeature `protobuf:"varint,19,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` - BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,20,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` - RtpTrailerFeatures []RTPTrailerFeature `protobuf:"varint,21,rep,packed,name=rtp_trailer_features,json=rtpTrailerFeatures,proto3,enum=livekit.RTPTrailerFeature" json:"rtp_trailer_features,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + DisableRed bool `protobuf:"varint,15,opt,name=disable_red,json=disableRed,proto3" json:"disable_red,omitempty"` + Encryption Encryption_Type `protobuf:"varint,16,opt,name=encryption,proto3,enum=livekit.Encryption_Type" json:"encryption,omitempty"` + Stream string `protobuf:"bytes,17,opt,name=stream,proto3" json:"stream,omitempty"` + Version *TimedVersion `protobuf:"bytes,18,opt,name=version,proto3" json:"version,omitempty"` + AudioFeatures []AudioTrackFeature `protobuf:"varint,19,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` + BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,20,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` + PacketTrailerFeatures []PacketTrailerFeature `protobuf:"varint,21,rep,packed,name=packet_trailer_features,json=packetTrailerFeatures,proto3,enum=livekit.PacketTrailerFeature" json:"packet_trailer_features,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TrackInfo) Reset() { @@ -2451,9 +2451,9 @@ func (x *TrackInfo) GetBackupCodecPolicy() BackupCodecPolicy { return BackupCodecPolicy_PREFER_REGRESSION } -func (x *TrackInfo) GetRtpTrailerFeatures() []RTPTrailerFeature { +func (x *TrackInfo) GetPacketTrailerFeatures() []PacketTrailerFeature { if x != nil { - return x.RtpTrailerFeatures + return x.PacketTrailerFeatures } return nil } @@ -6230,7 +6230,7 @@ const file_livekit_models_proto_rawDesc = "" + "\x03cid\x18\x03 \x01(\tR\x03cid\x12+\n" + "\x06layers\x18\x04 \x03(\v2\x13.livekit.VideoLayerR\x06layers\x12B\n" + "\x10video_layer_mode\x18\x05 \x01(\x0e2\x18.livekit.VideoLayer.ModeR\x0evideoLayerMode\x12\x17\n" + - "\asdp_cid\x18\x06 \x01(\tR\x06sdpCid\"\xca\x06\n" + + "\asdp_cid\x18\x06 \x01(\tR\x06sdpCid\"\xd3\x06\n" + "\tTrackInfo\x12\x10\n" + "\x03sid\x18\x01 \x01(\tR\x03sid\x12&\n" + "\x04type\x18\x02 \x01(\x0e2\x12.livekit.TrackTypeR\x04type\x12\x18\n" + @@ -6256,8 +6256,8 @@ const file_livekit_models_proto_rawDesc = "" + "\x06stream\x18\x11 \x01(\tR\x06stream\x12/\n" + "\aversion\x18\x12 \x01(\v2\x15.livekit.TimedVersionR\aversion\x12A\n" + "\x0eaudio_features\x18\x13 \x03(\x0e2\x1a.livekit.AudioTrackFeatureR\raudioFeatures\x12J\n" + - "\x13backup_codec_policy\x18\x14 \x01(\x0e2\x1a.livekit.BackupCodecPolicyR\x11backupCodecPolicy\x12L\n" + - "\x14rtp_trailer_features\x18\x15 \x03(\x0e2\x1a.livekit.RTPTrailerFeatureR\x12rtpTrailerFeatures\"\x8e\x01\n" + + "\x13backup_codec_policy\x18\x14 \x01(\x0e2\x1a.livekit.BackupCodecPolicyR\x11backupCodecPolicy\x12U\n" + + "\x17packet_trailer_features\x18\x15 \x03(\x0e2\x1d.livekit.PacketTrailerFeatureR\x15packetTrailerFeatures\"\x8e\x01\n" + "\rDataTrackInfo\x12\x1d\n" + "\n" + "pub_handle\x18\x01 \x01(\rR\tpubHandle\x12\x10\n" + @@ -6738,9 +6738,9 @@ const file_livekit_models_proto_rawDesc = "" + "\x14TF_ECHO_CANCELLATION\x10\x03\x12\x18\n" + "\x14TF_NOISE_SUPPRESSION\x10\x04\x12\"\n" + "\x1eTF_ENHANCED_NOISE_CANCELLATION\x10\x05\x12\x18\n" + - "\x14TF_PRECONNECT_BUFFER\x10\x06*'\n" + - "\x11RTPTrailerFeature\x12\x12\n" + - "\x0eUSER_TIMESTAMP\x10\x00BFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3" + "\x14TF_PRECONNECT_BUFFER\x10\x06*.\n" + + "\x14PacketTrailerFeature\x12\x16\n" + + "\x12PTF_USER_TIMESTAMP\x10\x00BFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3" var ( file_livekit_models_proto_rawDescOnce sync.Once @@ -6771,7 +6771,7 @@ var file_livekit_models_proto_goTypes = []any{ (ReconnectReason)(0), // 11: livekit.ReconnectReason (SubscriptionError)(0), // 12: livekit.SubscriptionError (AudioTrackFeature)(0), // 13: livekit.AudioTrackFeature - (RTPTrailerFeature)(0), // 14: livekit.RTPTrailerFeature + (PacketTrailerFeature)(0), // 14: livekit.PacketTrailerFeature (ParticipantInfo_State)(0), // 15: livekit.ParticipantInfo.State (ParticipantInfo_Kind)(0), // 16: livekit.ParticipantInfo.Kind (ParticipantInfo_KindDetail)(0), // 17: livekit.ParticipantInfo.KindDetail @@ -6861,7 +6861,7 @@ var file_livekit_models_proto_depIdxs = []int32{ 65, // 18: livekit.TrackInfo.version:type_name -> livekit.TimedVersion 13, // 19: livekit.TrackInfo.audio_features:type_name -> livekit.AudioTrackFeature 3, // 20: livekit.TrackInfo.backup_codec_policy:type_name -> livekit.BackupCodecPolicy - 14, // 21: livekit.TrackInfo.rtp_trailer_features:type_name -> livekit.RTPTrailerFeature + 14, // 21: livekit.TrackInfo.packet_trailer_features:type_name -> livekit.PacketTrailerFeature 18, // 22: livekit.DataTrackInfo.encryption:type_name -> livekit.Encryption.Type 6, // 23: livekit.DataTrackExtensionParticipantSid.id:type_name -> livekit.DataTrackExtensionID 7, // 24: livekit.VideoLayer.quality:type_name -> livekit.VideoQuality diff --git a/livekit/livekit_rtc.pb.go b/livekit/livekit_rtc.pb.go index 4e665f334..ad82d8c53 100644 --- a/livekit/livekit_rtc.pb.go +++ b/livekit/livekit_rtc.pb.go @@ -1358,12 +1358,12 @@ type AddTrackRequest struct { Encryption Encryption_Type `protobuf:"varint,14,opt,name=encryption,proto3,enum=livekit.Encryption_Type" json:"encryption,omitempty"` // which stream the track belongs to, used to group tracks together. // if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together - Stream string `protobuf:"bytes,15,opt,name=stream,proto3" json:"stream,omitempty"` - BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,16,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` - AudioFeatures []AudioTrackFeature `protobuf:"varint,17,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` - RtpTrailerFeatures []RTPTrailerFeature `protobuf:"varint,18,rep,packed,name=rtp_trailer_features,json=rtpTrailerFeatures,proto3,enum=livekit.RTPTrailerFeature" json:"rtp_trailer_features,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Stream string `protobuf:"bytes,15,opt,name=stream,proto3" json:"stream,omitempty"` + BackupCodecPolicy BackupCodecPolicy `protobuf:"varint,16,opt,name=backup_codec_policy,json=backupCodecPolicy,proto3,enum=livekit.BackupCodecPolicy" json:"backup_codec_policy,omitempty"` + AudioFeatures []AudioTrackFeature `protobuf:"varint,17,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` + PacketTrailerFeatures []PacketTrailerFeature `protobuf:"varint,18,rep,packed,name=packet_trailer_features,json=packetTrailerFeatures,proto3,enum=livekit.PacketTrailerFeature" json:"packet_trailer_features,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddTrackRequest) Reset() { @@ -1517,9 +1517,9 @@ func (x *AddTrackRequest) GetAudioFeatures() []AudioTrackFeature { return nil } -func (x *AddTrackRequest) GetRtpTrailerFeatures() []RTPTrailerFeature { +func (x *AddTrackRequest) GetPacketTrailerFeatures() []PacketTrailerFeature { if x != nil { - return x.RtpTrailerFeatures + return x.PacketTrailerFeatures } return nil } @@ -5079,7 +5079,7 @@ const file_livekit_rtc_proto_rawDesc = "" + "\x05codec\x18\x01 \x01(\tR\x05codec\x12\x10\n" + "\x03cid\x18\x02 \x01(\tR\x03cid\x12+\n" + "\x06layers\x18\x04 \x03(\v2\x13.livekit.VideoLayerR\x06layers\x12B\n" + - "\x10video_layer_mode\x18\x05 \x01(\x0e2\x18.livekit.VideoLayer.ModeR\x0evideoLayerMode\"\xe5\x05\n" + + "\x10video_layer_mode\x18\x05 \x01(\x0e2\x18.livekit.VideoLayer.ModeR\x0evideoLayerMode\"\xee\x05\n" + "\x0fAddTrackRequest\x12\x10\n" + "\x03cid\x18\x01 \x01(\tR\x03cid\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12&\n" + @@ -5102,8 +5102,8 @@ const file_livekit_rtc_proto_rawDesc = "" + "encryption\x12\x16\n" + "\x06stream\x18\x0f \x01(\tR\x06stream\x12J\n" + "\x13backup_codec_policy\x18\x10 \x01(\x0e2\x1a.livekit.BackupCodecPolicyR\x11backupCodecPolicy\x12A\n" + - "\x0eaudio_features\x18\x11 \x03(\x0e2\x1a.livekit.AudioTrackFeatureR\raudioFeatures\x12L\n" + - "\x14rtp_trailer_features\x18\x12 \x03(\x0e2\x1a.livekit.RTPTrailerFeatureR\x12rtpTrailerFeatures\"\x86\x01\n" + + "\x0eaudio_features\x18\x11 \x03(\x0e2\x1a.livekit.AudioTrackFeatureR\raudioFeatures\x12U\n" + + "\x17packet_trailer_features\x18\x12 \x03(\x0e2\x1d.livekit.PacketTrailerFeatureR\x15packetTrailerFeatures\"\x86\x01\n" + "\x17PublishDataTrackRequest\x12\x1d\n" + "\n" + "pub_handle\x18\x01 \x01(\rR\tpubHandle\x12\x12\n" + @@ -5498,7 +5498,7 @@ var file_livekit_rtc_proto_goTypes = []any{ (Encryption_Type)(0), // 71: livekit.Encryption.Type (BackupCodecPolicy)(0), // 72: livekit.BackupCodecPolicy (AudioTrackFeature)(0), // 73: livekit.AudioTrackFeature - (RTPTrailerFeature)(0), // 74: livekit.RTPTrailerFeature + (PacketTrailerFeature)(0), // 74: livekit.PacketTrailerFeature (*DataTrackInfo)(nil), // 75: livekit.DataTrackInfo (*Room)(nil), // 76: livekit.Room (*ParticipantInfo)(nil), // 77: livekit.ParticipantInfo @@ -5572,7 +5572,7 @@ var file_livekit_rtc_proto_depIdxs = []int32{ 71, // 51: livekit.AddTrackRequest.encryption:type_name -> livekit.Encryption.Type 72, // 52: livekit.AddTrackRequest.backup_codec_policy:type_name -> livekit.BackupCodecPolicy 73, // 53: livekit.AddTrackRequest.audio_features:type_name -> livekit.AudioTrackFeature - 74, // 54: livekit.AddTrackRequest.rtp_trailer_features:type_name -> livekit.RTPTrailerFeature + 74, // 54: livekit.AddTrackRequest.packet_trailer_features:type_name -> livekit.PacketTrailerFeature 71, // 55: livekit.PublishDataTrackRequest.encryption:type_name -> livekit.Encryption.Type 75, // 56: livekit.PublishDataTrackResponse.info:type_name -> livekit.DataTrackInfo 75, // 57: livekit.UnpublishDataTrackResponse.info:type_name -> livekit.DataTrackInfo