livekit-client 2.17.0 → 2.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/livekit-client.e2ee.worker.js +1 -1
- package/dist/livekit-client.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs +7 -2
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +2350 -1430
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/e2ee/KeyProvider.d.ts +4 -2
- package/dist/src/e2ee/KeyProvider.d.ts.map +1 -1
- package/dist/src/index.d.ts +9 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/logger.d.ts +2 -1
- package/dist/src/logger.d.ts.map +1 -1
- package/dist/src/room/PCTransport.d.ts.map +1 -1
- package/dist/src/room/PCTransportManager.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/data-stream/incoming/IncomingDataStreamManager.d.ts.map +1 -1
- package/dist/src/room/data-stream/outgoing/OutgoingDataStreamManager.d.ts.map +1 -1
- package/dist/src/room/data-track/depacketizer.d.ts +51 -0
- package/dist/src/room/data-track/depacketizer.d.ts.map +1 -0
- package/dist/src/room/data-track/frame.d.ts +7 -0
- package/dist/src/room/data-track/frame.d.ts.map +1 -0
- package/dist/src/room/data-track/handle.d.ts +27 -0
- package/dist/src/room/data-track/handle.d.ts.map +1 -0
- package/dist/src/room/data-track/packet/constants.d.ts +20 -0
- package/dist/src/room/data-track/packet/constants.d.ts.map +1 -0
- package/dist/src/room/data-track/packet/errors.d.ts +42 -0
- package/dist/src/room/data-track/packet/errors.d.ts.map +1 -0
- package/dist/src/room/data-track/packet/extensions.d.ts +68 -0
- package/dist/src/room/data-track/packet/extensions.d.ts.map +1 -0
- package/dist/src/room/data-track/packet/index.d.ts +91 -0
- package/dist/src/room/data-track/packet/index.d.ts.map +1 -0
- package/dist/src/room/data-track/packet/serializable.d.ts +12 -0
- package/dist/src/room/data-track/packet/serializable.d.ts.map +1 -0
- package/dist/src/room/data-track/packetizer.d.ts +43 -0
- package/dist/src/room/data-track/packetizer.d.ts.map +1 -0
- package/dist/src/room/data-track/utils.d.ts +60 -0
- package/dist/src/room/data-track/utils.d.ts.map +1 -0
- package/dist/src/room/errors.d.ts +16 -4
- package/dist/src/room/errors.d.ts.map +1 -1
- package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +1 -0
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/types.d.ts +1 -0
- package/dist/src/room/types.d.ts.map +1 -1
- package/dist/src/utils/TypedPromise.d.ts +4 -0
- package/dist/src/utils/TypedPromise.d.ts.map +1 -1
- package/dist/src/utils/throws.d.ts +36 -0
- package/dist/src/utils/throws.d.ts.map +1 -0
- package/dist/ts4.2/e2ee/KeyProvider.d.ts +4 -2
- package/dist/ts4.2/index.d.ts +10 -3
- package/dist/ts4.2/logger.d.ts +2 -1
- package/dist/ts4.2/room/data-track/depacketizer.d.ts +51 -0
- package/dist/ts4.2/room/data-track/frame.d.ts +7 -0
- package/dist/ts4.2/room/data-track/handle.d.ts +27 -0
- package/dist/ts4.2/room/data-track/packet/constants.d.ts +20 -0
- package/dist/ts4.2/room/data-track/packet/errors.d.ts +42 -0
- package/dist/ts4.2/room/data-track/packet/extensions.d.ts +68 -0
- package/dist/ts4.2/room/data-track/packet/index.d.ts +98 -0
- package/dist/ts4.2/room/data-track/packet/serializable.d.ts +12 -0
- package/dist/ts4.2/room/data-track/packetizer.d.ts +43 -0
- package/dist/ts4.2/room/data-track/utils.d.ts +60 -0
- package/dist/ts4.2/room/errors.d.ts +16 -4
- package/dist/ts4.2/room/track/LocalTrack.d.ts +1 -0
- package/dist/ts4.2/room/types.d.ts +1 -0
- package/dist/ts4.2/utils/TypedPromise.d.ts +4 -0
- package/dist/ts4.2/utils/throws.d.ts +39 -0
- package/package.json +12 -10
- package/src/e2ee/KeyProvider.ts +4 -2
- package/src/index.ts +21 -5
- package/src/logger.ts +1 -0
- package/src/room/PCTransport.ts +1 -0
- package/src/room/PCTransportManager.ts +27 -9
- package/src/room/RTCEngine.ts +13 -2
- package/src/room/Room.ts +1 -1
- package/src/room/data-stream/incoming/IncomingDataStreamManager.ts +1 -0
- package/src/room/data-stream/outgoing/OutgoingDataStreamManager.ts +2 -1
- package/src/room/data-track/depacketizer.test.ts +442 -0
- package/src/room/data-track/depacketizer.ts +298 -0
- package/src/room/data-track/frame.ts +8 -0
- package/src/room/data-track/handle.test.ts +13 -0
- package/src/room/data-track/handle.ts +80 -0
- package/src/room/data-track/packet/constants.ts +27 -0
- package/src/room/data-track/packet/errors.ts +121 -0
- package/src/room/data-track/packet/extensions.ts +259 -0
- package/src/room/data-track/packet/index.test.ts +615 -0
- package/src/room/data-track/packet/index.ts +363 -0
- package/src/room/data-track/packet/serializable.ts +29 -0
- package/src/room/data-track/packetizer.test.ts +131 -0
- package/src/room/data-track/packetizer.ts +128 -0
- package/src/room/data-track/utils.test.ts +54 -0
- package/src/room/data-track/utils.ts +206 -0
- package/src/room/errors.ts +23 -5
- package/src/room/track/LocalAudioTrack.ts +4 -7
- package/src/room/track/LocalTrack.ts +4 -0
- package/src/room/types.ts +3 -1
- package/src/utils/TypedPromise.ts +7 -0
- package/src/utils/throws.ts +42 -0
|
@@ -4166,6 +4166,12 @@ const ParticipantInfo = /* @__PURE__ */proto3.makeMessageType("livekit.Participa
|
|
|
4166
4166
|
kind: "enum",
|
|
4167
4167
|
T: proto3.getEnumType(ParticipantInfo_KindDetail),
|
|
4168
4168
|
repeated: true
|
|
4169
|
+
}, {
|
|
4170
|
+
no: 19,
|
|
4171
|
+
name: "data_tracks",
|
|
4172
|
+
kind: "message",
|
|
4173
|
+
T: DataTrackInfo,
|
|
4174
|
+
repeated: true
|
|
4169
4175
|
}]);
|
|
4170
4176
|
const ParticipantInfo_State = /* @__PURE__ */proto3.makeEnum("livekit.ParticipantInfo.State", [{
|
|
4171
4177
|
no: 0,
|
|
@@ -4198,6 +4204,9 @@ const ParticipantInfo_Kind = /* @__PURE__ */proto3.makeEnum("livekit.Participant
|
|
|
4198
4204
|
}, {
|
|
4199
4205
|
no: 7,
|
|
4200
4206
|
name: "CONNECTOR"
|
|
4207
|
+
}, {
|
|
4208
|
+
no: 8,
|
|
4209
|
+
name: "BRIDGE"
|
|
4201
4210
|
}]);
|
|
4202
4211
|
const ParticipantInfo_KindDetail = /* @__PURE__ */proto3.makeEnum("livekit.ParticipantInfo.KindDetail", [{
|
|
4203
4212
|
no: 0,
|
|
@@ -4205,6 +4214,15 @@ const ParticipantInfo_KindDetail = /* @__PURE__ */proto3.makeEnum("livekit.Parti
|
|
|
4205
4214
|
}, {
|
|
4206
4215
|
no: 1,
|
|
4207
4216
|
name: "FORWARDED"
|
|
4217
|
+
}, {
|
|
4218
|
+
no: 2,
|
|
4219
|
+
name: "CONNECTOR_WHATSAPP"
|
|
4220
|
+
}, {
|
|
4221
|
+
no: 3,
|
|
4222
|
+
name: "CONNECTOR_TWILIO"
|
|
4223
|
+
}, {
|
|
4224
|
+
no: 4,
|
|
4225
|
+
name: "BRIDGE_RTSP"
|
|
4208
4226
|
}]);
|
|
4209
4227
|
const Encryption_Type = /* @__PURE__ */proto3.makeEnum("livekit.Encryption.Type", [{
|
|
4210
4228
|
no: 0,
|
|
@@ -4368,6 +4386,37 @@ const TrackInfo = /* @__PURE__ */proto3.makeMessageType("livekit.TrackInfo", ()
|
|
|
4368
4386
|
kind: "enum",
|
|
4369
4387
|
T: proto3.getEnumType(BackupCodecPolicy$1)
|
|
4370
4388
|
}]);
|
|
4389
|
+
const DataTrackInfo = /* @__PURE__ */proto3.makeMessageType("livekit.DataTrackInfo", () => [{
|
|
4390
|
+
no: 1,
|
|
4391
|
+
name: "pub_handle",
|
|
4392
|
+
kind: "scalar",
|
|
4393
|
+
T: 13
|
|
4394
|
+
/* ScalarType.UINT32 */
|
|
4395
|
+
}, {
|
|
4396
|
+
no: 2,
|
|
4397
|
+
name: "sid",
|
|
4398
|
+
kind: "scalar",
|
|
4399
|
+
T: 9
|
|
4400
|
+
/* ScalarType.STRING */
|
|
4401
|
+
}, {
|
|
4402
|
+
no: 3,
|
|
4403
|
+
name: "name",
|
|
4404
|
+
kind: "scalar",
|
|
4405
|
+
T: 9
|
|
4406
|
+
/* ScalarType.STRING */
|
|
4407
|
+
}, {
|
|
4408
|
+
no: 4,
|
|
4409
|
+
name: "encryption",
|
|
4410
|
+
kind: "enum",
|
|
4411
|
+
T: proto3.getEnumType(Encryption_Type)
|
|
4412
|
+
}]);
|
|
4413
|
+
const DataTrackSubscriptionOptions = /* @__PURE__ */proto3.makeMessageType("livekit.DataTrackSubscriptionOptions", () => [{
|
|
4414
|
+
no: 1,
|
|
4415
|
+
name: "target_fps",
|
|
4416
|
+
kind: "scalar",
|
|
4417
|
+
T: 13,
|
|
4418
|
+
opt: true
|
|
4419
|
+
}]);
|
|
4371
4420
|
const VideoLayer = /* @__PURE__ */proto3.makeMessageType("livekit.VideoLayer", () => [{
|
|
4372
4421
|
no: 1,
|
|
4373
4422
|
name: "quality",
|
|
@@ -4409,6 +4458,12 @@ const VideoLayer = /* @__PURE__ */proto3.makeMessageType("livekit.VideoLayer", (
|
|
|
4409
4458
|
kind: "scalar",
|
|
4410
4459
|
T: 9
|
|
4411
4460
|
/* ScalarType.STRING */
|
|
4461
|
+
}, {
|
|
4462
|
+
no: 8,
|
|
4463
|
+
name: "repair_ssrc",
|
|
4464
|
+
kind: "scalar",
|
|
4465
|
+
T: 13
|
|
4466
|
+
/* ScalarType.UINT32 */
|
|
4412
4467
|
}]);
|
|
4413
4468
|
const VideoLayer_Mode = /* @__PURE__ */proto3.makeEnum("livekit.VideoLayer.Mode", [{
|
|
4414
4469
|
no: 0,
|
|
@@ -5341,2118 +5396,2285 @@ const RoomAgentDispatch = /* @__PURE__ */proto3.makeMessageType("livekit.RoomAge
|
|
|
5341
5396
|
T: 9
|
|
5342
5397
|
/* ScalarType.STRING */
|
|
5343
5398
|
}]);
|
|
5344
|
-
const
|
|
5345
|
-
no: 0,
|
|
5346
|
-
name: "DEFAULT_FILETYPE"
|
|
5347
|
-
}, {
|
|
5348
|
-
no: 1,
|
|
5349
|
-
name: "MP4"
|
|
5350
|
-
}, {
|
|
5351
|
-
no: 2,
|
|
5352
|
-
name: "OGG"
|
|
5353
|
-
}, {
|
|
5354
|
-
no: 3,
|
|
5355
|
-
name: "MP3"
|
|
5356
|
-
}]);
|
|
5357
|
-
const SegmentedFileProtocol = /* @__PURE__ */proto3.makeEnum("livekit.SegmentedFileProtocol", [{
|
|
5358
|
-
no: 0,
|
|
5359
|
-
name: "DEFAULT_SEGMENTED_FILE_PROTOCOL"
|
|
5360
|
-
}, {
|
|
5361
|
-
no: 1,
|
|
5362
|
-
name: "HLS_PROTOCOL"
|
|
5363
|
-
}]);
|
|
5364
|
-
const SegmentedFileSuffix = /* @__PURE__ */proto3.makeEnum("livekit.SegmentedFileSuffix", [{
|
|
5365
|
-
no: 0,
|
|
5366
|
-
name: "INDEX"
|
|
5367
|
-
}, {
|
|
5368
|
-
no: 1,
|
|
5369
|
-
name: "TIMESTAMP"
|
|
5370
|
-
}]);
|
|
5371
|
-
const ImageFileSuffix = /* @__PURE__ */proto3.makeEnum("livekit.ImageFileSuffix", [{
|
|
5372
|
-
no: 0,
|
|
5373
|
-
name: "IMAGE_SUFFIX_INDEX"
|
|
5374
|
-
}, {
|
|
5375
|
-
no: 1,
|
|
5376
|
-
name: "IMAGE_SUFFIX_TIMESTAMP"
|
|
5377
|
-
}, {
|
|
5378
|
-
no: 2,
|
|
5379
|
-
name: "IMAGE_SUFFIX_NONE_OVERWRITE"
|
|
5380
|
-
}]);
|
|
5381
|
-
const StreamProtocol = /* @__PURE__ */proto3.makeEnum("livekit.StreamProtocol", [{
|
|
5399
|
+
const SignalTarget = /* @__PURE__ */proto3.makeEnum("livekit.SignalTarget", [{
|
|
5382
5400
|
no: 0,
|
|
5383
|
-
name: "
|
|
5401
|
+
name: "PUBLISHER"
|
|
5384
5402
|
}, {
|
|
5385
5403
|
no: 1,
|
|
5386
|
-
name: "
|
|
5387
|
-
}, {
|
|
5388
|
-
no: 2,
|
|
5389
|
-
name: "SRT"
|
|
5404
|
+
name: "SUBSCRIBER"
|
|
5390
5405
|
}]);
|
|
5391
|
-
const
|
|
5406
|
+
const StreamState = /* @__PURE__ */proto3.makeEnum("livekit.StreamState", [{
|
|
5392
5407
|
no: 0,
|
|
5393
|
-
name: "
|
|
5408
|
+
name: "ACTIVE"
|
|
5394
5409
|
}, {
|
|
5395
5410
|
no: 1,
|
|
5396
|
-
name: "
|
|
5397
|
-
}, {
|
|
5398
|
-
no: 2,
|
|
5399
|
-
name: "DUAL_CHANNEL_ALTERNATE"
|
|
5411
|
+
name: "PAUSED"
|
|
5400
5412
|
}]);
|
|
5401
|
-
const
|
|
5413
|
+
const CandidateProtocol = /* @__PURE__ */proto3.makeEnum("livekit.CandidateProtocol", [{
|
|
5402
5414
|
no: 0,
|
|
5403
|
-
name: "
|
|
5415
|
+
name: "UDP"
|
|
5404
5416
|
}, {
|
|
5405
5417
|
no: 1,
|
|
5406
|
-
name: "
|
|
5418
|
+
name: "TCP"
|
|
5407
5419
|
}, {
|
|
5408
5420
|
no: 2,
|
|
5409
|
-
name: "
|
|
5410
|
-
}, {
|
|
5411
|
-
no: 3,
|
|
5412
|
-
name: "H264_1080P_60"
|
|
5413
|
-
}, {
|
|
5414
|
-
no: 4,
|
|
5415
|
-
name: "PORTRAIT_H264_720P_30"
|
|
5416
|
-
}, {
|
|
5417
|
-
no: 5,
|
|
5418
|
-
name: "PORTRAIT_H264_720P_60"
|
|
5419
|
-
}, {
|
|
5420
|
-
no: 6,
|
|
5421
|
-
name: "PORTRAIT_H264_1080P_30"
|
|
5422
|
-
}, {
|
|
5423
|
-
no: 7,
|
|
5424
|
-
name: "PORTRAIT_H264_1080P_60"
|
|
5421
|
+
name: "TLS"
|
|
5425
5422
|
}]);
|
|
5426
|
-
const
|
|
5423
|
+
const SignalRequest = /* @__PURE__ */proto3.makeMessageType("livekit.SignalRequest", () => [{
|
|
5427
5424
|
no: 1,
|
|
5428
|
-
name: "
|
|
5429
|
-
kind: "
|
|
5430
|
-
T:
|
|
5431
|
-
|
|
5425
|
+
name: "offer",
|
|
5426
|
+
kind: "message",
|
|
5427
|
+
T: SessionDescription,
|
|
5428
|
+
oneof: "message"
|
|
5432
5429
|
}, {
|
|
5433
5430
|
no: 2,
|
|
5434
|
-
name: "
|
|
5435
|
-
kind: "
|
|
5436
|
-
T:
|
|
5437
|
-
|
|
5431
|
+
name: "answer",
|
|
5432
|
+
kind: "message",
|
|
5433
|
+
T: SessionDescription,
|
|
5434
|
+
oneof: "message"
|
|
5438
5435
|
}, {
|
|
5439
5436
|
no: 3,
|
|
5440
|
-
name: "
|
|
5441
|
-
kind: "
|
|
5442
|
-
T:
|
|
5443
|
-
|
|
5444
|
-
}, {
|
|
5445
|
-
no: 15,
|
|
5446
|
-
name: "audio_mixing",
|
|
5447
|
-
kind: "enum",
|
|
5448
|
-
T: proto3.getEnumType(AudioMixing)
|
|
5437
|
+
name: "trickle",
|
|
5438
|
+
kind: "message",
|
|
5439
|
+
T: TrickleRequest,
|
|
5440
|
+
oneof: "message"
|
|
5449
5441
|
}, {
|
|
5450
5442
|
no: 4,
|
|
5451
|
-
name: "
|
|
5452
|
-
kind: "
|
|
5453
|
-
T:
|
|
5454
|
-
|
|
5443
|
+
name: "add_track",
|
|
5444
|
+
kind: "message",
|
|
5445
|
+
T: AddTrackRequest,
|
|
5446
|
+
oneof: "message"
|
|
5455
5447
|
}, {
|
|
5456
5448
|
no: 5,
|
|
5457
|
-
name: "
|
|
5458
|
-
kind: "
|
|
5459
|
-
T:
|
|
5460
|
-
|
|
5449
|
+
name: "mute",
|
|
5450
|
+
kind: "message",
|
|
5451
|
+
T: MuteTrackRequest,
|
|
5452
|
+
oneof: "message"
|
|
5461
5453
|
}, {
|
|
5462
5454
|
no: 6,
|
|
5463
|
-
name: "
|
|
5455
|
+
name: "subscription",
|
|
5464
5456
|
kind: "message",
|
|
5465
|
-
T:
|
|
5466
|
-
oneof: "
|
|
5457
|
+
T: UpdateSubscription,
|
|
5458
|
+
oneof: "message"
|
|
5467
5459
|
}, {
|
|
5468
5460
|
no: 7,
|
|
5469
|
-
name: "
|
|
5470
|
-
kind: "message",
|
|
5471
|
-
T: StreamOutput,
|
|
5472
|
-
oneof: "output"
|
|
5473
|
-
}, {
|
|
5474
|
-
no: 10,
|
|
5475
|
-
name: "segments",
|
|
5461
|
+
name: "track_setting",
|
|
5476
5462
|
kind: "message",
|
|
5477
|
-
T:
|
|
5478
|
-
oneof: "
|
|
5463
|
+
T: UpdateTrackSettings,
|
|
5464
|
+
oneof: "message"
|
|
5479
5465
|
}, {
|
|
5480
5466
|
no: 8,
|
|
5481
|
-
name: "
|
|
5482
|
-
kind: "
|
|
5483
|
-
T:
|
|
5484
|
-
oneof: "
|
|
5467
|
+
name: "leave",
|
|
5468
|
+
kind: "message",
|
|
5469
|
+
T: LeaveRequest,
|
|
5470
|
+
oneof: "message"
|
|
5485
5471
|
}, {
|
|
5486
|
-
no:
|
|
5487
|
-
name: "
|
|
5472
|
+
no: 10,
|
|
5473
|
+
name: "update_layers",
|
|
5488
5474
|
kind: "message",
|
|
5489
|
-
T:
|
|
5490
|
-
oneof: "
|
|
5475
|
+
T: UpdateVideoLayers,
|
|
5476
|
+
oneof: "message"
|
|
5491
5477
|
}, {
|
|
5492
5478
|
no: 11,
|
|
5493
|
-
name: "
|
|
5479
|
+
name: "subscription_permission",
|
|
5494
5480
|
kind: "message",
|
|
5495
|
-
T:
|
|
5496
|
-
|
|
5481
|
+
T: SubscriptionPermission,
|
|
5482
|
+
oneof: "message"
|
|
5497
5483
|
}, {
|
|
5498
5484
|
no: 12,
|
|
5499
|
-
name: "
|
|
5485
|
+
name: "sync_state",
|
|
5500
5486
|
kind: "message",
|
|
5501
|
-
T:
|
|
5502
|
-
|
|
5487
|
+
T: SyncState,
|
|
5488
|
+
oneof: "message"
|
|
5503
5489
|
}, {
|
|
5504
5490
|
no: 13,
|
|
5505
|
-
name: "
|
|
5491
|
+
name: "simulate",
|
|
5506
5492
|
kind: "message",
|
|
5507
|
-
T:
|
|
5508
|
-
|
|
5493
|
+
T: SimulateScenario,
|
|
5494
|
+
oneof: "message"
|
|
5509
5495
|
}, {
|
|
5510
5496
|
no: 14,
|
|
5511
|
-
name: "
|
|
5497
|
+
name: "ping",
|
|
5498
|
+
kind: "scalar",
|
|
5499
|
+
T: 3,
|
|
5500
|
+
oneof: "message"
|
|
5501
|
+
}, {
|
|
5502
|
+
no: 15,
|
|
5503
|
+
name: "update_metadata",
|
|
5512
5504
|
kind: "message",
|
|
5513
|
-
T:
|
|
5514
|
-
|
|
5505
|
+
T: UpdateParticipantMetadata,
|
|
5506
|
+
oneof: "message"
|
|
5515
5507
|
}, {
|
|
5516
5508
|
no: 16,
|
|
5517
|
-
name: "
|
|
5509
|
+
name: "ping_req",
|
|
5518
5510
|
kind: "message",
|
|
5519
|
-
T:
|
|
5520
|
-
|
|
5521
|
-
}]);
|
|
5522
|
-
const EncodedFileOutput = /* @__PURE__ */proto3.makeMessageType("livekit.EncodedFileOutput", () => [{
|
|
5523
|
-
no: 1,
|
|
5524
|
-
name: "file_type",
|
|
5525
|
-
kind: "enum",
|
|
5526
|
-
T: proto3.getEnumType(EncodedFileType)
|
|
5511
|
+
T: Ping,
|
|
5512
|
+
oneof: "message"
|
|
5527
5513
|
}, {
|
|
5528
|
-
no:
|
|
5529
|
-
name: "
|
|
5530
|
-
kind: "
|
|
5531
|
-
T:
|
|
5532
|
-
|
|
5514
|
+
no: 17,
|
|
5515
|
+
name: "update_audio_track",
|
|
5516
|
+
kind: "message",
|
|
5517
|
+
T: UpdateLocalAudioTrack,
|
|
5518
|
+
oneof: "message"
|
|
5533
5519
|
}, {
|
|
5534
|
-
no:
|
|
5535
|
-
name: "
|
|
5536
|
-
kind: "scalar",
|
|
5537
|
-
T: 8
|
|
5538
|
-
/* ScalarType.BOOL */
|
|
5539
|
-
}, {
|
|
5540
|
-
no: 3,
|
|
5541
|
-
name: "s3",
|
|
5520
|
+
no: 18,
|
|
5521
|
+
name: "update_video_track",
|
|
5542
5522
|
kind: "message",
|
|
5543
|
-
T:
|
|
5544
|
-
oneof: "
|
|
5523
|
+
T: UpdateLocalVideoTrack,
|
|
5524
|
+
oneof: "message"
|
|
5545
5525
|
}, {
|
|
5546
|
-
no:
|
|
5547
|
-
name: "
|
|
5526
|
+
no: 19,
|
|
5527
|
+
name: "publish_data_track_request",
|
|
5548
5528
|
kind: "message",
|
|
5549
|
-
T:
|
|
5550
|
-
oneof: "
|
|
5529
|
+
T: PublishDataTrackRequest,
|
|
5530
|
+
oneof: "message"
|
|
5551
5531
|
}, {
|
|
5552
|
-
no:
|
|
5553
|
-
name: "
|
|
5532
|
+
no: 20,
|
|
5533
|
+
name: "unpublish_data_track_request",
|
|
5554
5534
|
kind: "message",
|
|
5555
|
-
T:
|
|
5556
|
-
oneof: "
|
|
5535
|
+
T: UnpublishDataTrackRequest,
|
|
5536
|
+
oneof: "message"
|
|
5557
5537
|
}, {
|
|
5558
|
-
no:
|
|
5559
|
-
name: "
|
|
5538
|
+
no: 21,
|
|
5539
|
+
name: "update_data_subscription",
|
|
5560
5540
|
kind: "message",
|
|
5561
|
-
T:
|
|
5562
|
-
oneof: "
|
|
5541
|
+
T: UpdateDataSubscription,
|
|
5542
|
+
oneof: "message"
|
|
5563
5543
|
}]);
|
|
5564
|
-
const
|
|
5544
|
+
const SignalResponse = /* @__PURE__ */proto3.makeMessageType("livekit.SignalResponse", () => [{
|
|
5565
5545
|
no: 1,
|
|
5566
|
-
name: "
|
|
5567
|
-
kind: "
|
|
5568
|
-
T:
|
|
5546
|
+
name: "join",
|
|
5547
|
+
kind: "message",
|
|
5548
|
+
T: JoinResponse,
|
|
5549
|
+
oneof: "message"
|
|
5569
5550
|
}, {
|
|
5570
5551
|
no: 2,
|
|
5571
|
-
name: "
|
|
5572
|
-
kind: "
|
|
5573
|
-
T:
|
|
5574
|
-
|
|
5552
|
+
name: "answer",
|
|
5553
|
+
kind: "message",
|
|
5554
|
+
T: SessionDescription,
|
|
5555
|
+
oneof: "message"
|
|
5575
5556
|
}, {
|
|
5576
5557
|
no: 3,
|
|
5577
|
-
name: "
|
|
5578
|
-
kind: "
|
|
5579
|
-
T:
|
|
5580
|
-
|
|
5581
|
-
}, {
|
|
5582
|
-
no: 11,
|
|
5583
|
-
name: "live_playlist_name",
|
|
5584
|
-
kind: "scalar",
|
|
5585
|
-
T: 9
|
|
5586
|
-
/* ScalarType.STRING */
|
|
5558
|
+
name: "offer",
|
|
5559
|
+
kind: "message",
|
|
5560
|
+
T: SessionDescription,
|
|
5561
|
+
oneof: "message"
|
|
5587
5562
|
}, {
|
|
5588
5563
|
no: 4,
|
|
5589
|
-
name: "
|
|
5590
|
-
kind: "
|
|
5591
|
-
T:
|
|
5592
|
-
|
|
5593
|
-
}, {
|
|
5594
|
-
no: 10,
|
|
5595
|
-
name: "filename_suffix",
|
|
5596
|
-
kind: "enum",
|
|
5597
|
-
T: proto3.getEnumType(SegmentedFileSuffix)
|
|
5598
|
-
}, {
|
|
5599
|
-
no: 8,
|
|
5600
|
-
name: "disable_manifest",
|
|
5601
|
-
kind: "scalar",
|
|
5602
|
-
T: 8
|
|
5603
|
-
/* ScalarType.BOOL */
|
|
5564
|
+
name: "trickle",
|
|
5565
|
+
kind: "message",
|
|
5566
|
+
T: TrickleRequest,
|
|
5567
|
+
oneof: "message"
|
|
5604
5568
|
}, {
|
|
5605
5569
|
no: 5,
|
|
5606
|
-
name: "
|
|
5570
|
+
name: "update",
|
|
5607
5571
|
kind: "message",
|
|
5608
|
-
T:
|
|
5609
|
-
oneof: "
|
|
5572
|
+
T: ParticipantUpdate,
|
|
5573
|
+
oneof: "message"
|
|
5610
5574
|
}, {
|
|
5611
5575
|
no: 6,
|
|
5612
|
-
name: "
|
|
5576
|
+
name: "track_published",
|
|
5613
5577
|
kind: "message",
|
|
5614
|
-
T:
|
|
5615
|
-
oneof: "
|
|
5578
|
+
T: TrackPublishedResponse,
|
|
5579
|
+
oneof: "message"
|
|
5616
5580
|
}, {
|
|
5617
|
-
no:
|
|
5618
|
-
name: "
|
|
5581
|
+
no: 8,
|
|
5582
|
+
name: "leave",
|
|
5619
5583
|
kind: "message",
|
|
5620
|
-
T:
|
|
5621
|
-
oneof: "
|
|
5584
|
+
T: LeaveRequest,
|
|
5585
|
+
oneof: "message"
|
|
5622
5586
|
}, {
|
|
5623
5587
|
no: 9,
|
|
5624
|
-
name: "
|
|
5588
|
+
name: "mute",
|
|
5625
5589
|
kind: "message",
|
|
5626
|
-
T:
|
|
5627
|
-
oneof: "
|
|
5628
|
-
}]);
|
|
5629
|
-
const ImageOutput = /* @__PURE__ */proto3.makeMessageType("livekit.ImageOutput", () => [{
|
|
5630
|
-
no: 1,
|
|
5631
|
-
name: "capture_interval",
|
|
5632
|
-
kind: "scalar",
|
|
5633
|
-
T: 13
|
|
5634
|
-
/* ScalarType.UINT32 */
|
|
5590
|
+
T: MuteTrackRequest,
|
|
5591
|
+
oneof: "message"
|
|
5635
5592
|
}, {
|
|
5636
|
-
no:
|
|
5637
|
-
name: "
|
|
5638
|
-
kind: "
|
|
5639
|
-
T:
|
|
5640
|
-
|
|
5593
|
+
no: 10,
|
|
5594
|
+
name: "speakers_changed",
|
|
5595
|
+
kind: "message",
|
|
5596
|
+
T: SpeakersChanged,
|
|
5597
|
+
oneof: "message"
|
|
5641
5598
|
}, {
|
|
5642
|
-
no:
|
|
5643
|
-
name: "
|
|
5599
|
+
no: 11,
|
|
5600
|
+
name: "room_update",
|
|
5601
|
+
kind: "message",
|
|
5602
|
+
T: RoomUpdate,
|
|
5603
|
+
oneof: "message"
|
|
5604
|
+
}, {
|
|
5605
|
+
no: 12,
|
|
5606
|
+
name: "connection_quality",
|
|
5607
|
+
kind: "message",
|
|
5608
|
+
T: ConnectionQualityUpdate,
|
|
5609
|
+
oneof: "message"
|
|
5610
|
+
}, {
|
|
5611
|
+
no: 13,
|
|
5612
|
+
name: "stream_state_update",
|
|
5613
|
+
kind: "message",
|
|
5614
|
+
T: StreamStateUpdate,
|
|
5615
|
+
oneof: "message"
|
|
5616
|
+
}, {
|
|
5617
|
+
no: 14,
|
|
5618
|
+
name: "subscribed_quality_update",
|
|
5619
|
+
kind: "message",
|
|
5620
|
+
T: SubscribedQualityUpdate,
|
|
5621
|
+
oneof: "message"
|
|
5622
|
+
}, {
|
|
5623
|
+
no: 15,
|
|
5624
|
+
name: "subscription_permission_update",
|
|
5625
|
+
kind: "message",
|
|
5626
|
+
T: SubscriptionPermissionUpdate,
|
|
5627
|
+
oneof: "message"
|
|
5628
|
+
}, {
|
|
5629
|
+
no: 16,
|
|
5630
|
+
name: "refresh_token",
|
|
5644
5631
|
kind: "scalar",
|
|
5645
|
-
T:
|
|
5646
|
-
|
|
5632
|
+
T: 9,
|
|
5633
|
+
oneof: "message"
|
|
5647
5634
|
}, {
|
|
5648
|
-
no:
|
|
5649
|
-
name: "
|
|
5635
|
+
no: 17,
|
|
5636
|
+
name: "track_unpublished",
|
|
5637
|
+
kind: "message",
|
|
5638
|
+
T: TrackUnpublishedResponse,
|
|
5639
|
+
oneof: "message"
|
|
5640
|
+
}, {
|
|
5641
|
+
no: 18,
|
|
5642
|
+
name: "pong",
|
|
5650
5643
|
kind: "scalar",
|
|
5651
|
-
T:
|
|
5652
|
-
|
|
5644
|
+
T: 3,
|
|
5645
|
+
oneof: "message"
|
|
5653
5646
|
}, {
|
|
5654
|
-
no:
|
|
5655
|
-
name: "
|
|
5656
|
-
kind: "
|
|
5657
|
-
T:
|
|
5647
|
+
no: 19,
|
|
5648
|
+
name: "reconnect",
|
|
5649
|
+
kind: "message",
|
|
5650
|
+
T: ReconnectResponse,
|
|
5651
|
+
oneof: "message"
|
|
5658
5652
|
}, {
|
|
5659
|
-
no:
|
|
5660
|
-
name: "
|
|
5661
|
-
kind: "
|
|
5662
|
-
T:
|
|
5653
|
+
no: 20,
|
|
5654
|
+
name: "pong_resp",
|
|
5655
|
+
kind: "message",
|
|
5656
|
+
T: Pong,
|
|
5657
|
+
oneof: "message"
|
|
5663
5658
|
}, {
|
|
5664
|
-
no:
|
|
5665
|
-
name: "
|
|
5666
|
-
kind: "
|
|
5667
|
-
T:
|
|
5668
|
-
|
|
5659
|
+
no: 21,
|
|
5660
|
+
name: "subscription_response",
|
|
5661
|
+
kind: "message",
|
|
5662
|
+
T: SubscriptionResponse,
|
|
5663
|
+
oneof: "message"
|
|
5669
5664
|
}, {
|
|
5670
|
-
no:
|
|
5671
|
-
name: "
|
|
5665
|
+
no: 22,
|
|
5666
|
+
name: "request_response",
|
|
5672
5667
|
kind: "message",
|
|
5673
|
-
T:
|
|
5674
|
-
oneof: "
|
|
5668
|
+
T: RequestResponse,
|
|
5669
|
+
oneof: "message"
|
|
5675
5670
|
}, {
|
|
5676
|
-
no:
|
|
5677
|
-
name: "
|
|
5671
|
+
no: 23,
|
|
5672
|
+
name: "track_subscribed",
|
|
5678
5673
|
kind: "message",
|
|
5679
|
-
T:
|
|
5680
|
-
oneof: "
|
|
5674
|
+
T: TrackSubscribed,
|
|
5675
|
+
oneof: "message"
|
|
5681
5676
|
}, {
|
|
5682
|
-
no:
|
|
5683
|
-
name: "
|
|
5677
|
+
no: 24,
|
|
5678
|
+
name: "room_moved",
|
|
5684
5679
|
kind: "message",
|
|
5685
|
-
T:
|
|
5686
|
-
oneof: "
|
|
5680
|
+
T: RoomMovedResponse,
|
|
5681
|
+
oneof: "message"
|
|
5687
5682
|
}, {
|
|
5688
|
-
no:
|
|
5689
|
-
name: "
|
|
5683
|
+
no: 25,
|
|
5684
|
+
name: "media_sections_requirement",
|
|
5690
5685
|
kind: "message",
|
|
5691
|
-
T:
|
|
5692
|
-
oneof: "
|
|
5686
|
+
T: MediaSectionsRequirement,
|
|
5687
|
+
oneof: "message"
|
|
5688
|
+
}, {
|
|
5689
|
+
no: 26,
|
|
5690
|
+
name: "subscribed_audio_codec_update",
|
|
5691
|
+
kind: "message",
|
|
5692
|
+
T: SubscribedAudioCodecUpdate,
|
|
5693
|
+
oneof: "message"
|
|
5694
|
+
}, {
|
|
5695
|
+
no: 27,
|
|
5696
|
+
name: "publish_data_track_response",
|
|
5697
|
+
kind: "message",
|
|
5698
|
+
T: PublishDataTrackResponse,
|
|
5699
|
+
oneof: "message"
|
|
5700
|
+
}, {
|
|
5701
|
+
no: 28,
|
|
5702
|
+
name: "unpublish_data_track_response",
|
|
5703
|
+
kind: "message",
|
|
5704
|
+
T: UnpublishDataTrackResponse,
|
|
5705
|
+
oneof: "message"
|
|
5706
|
+
}, {
|
|
5707
|
+
no: 29,
|
|
5708
|
+
name: "data_track_subscriber_handles",
|
|
5709
|
+
kind: "message",
|
|
5710
|
+
T: DataTrackSubscriberHandles,
|
|
5711
|
+
oneof: "message"
|
|
5693
5712
|
}]);
|
|
5694
|
-
const
|
|
5713
|
+
const SimulcastCodec = /* @__PURE__ */proto3.makeMessageType("livekit.SimulcastCodec", () => [{
|
|
5695
5714
|
no: 1,
|
|
5696
|
-
name: "
|
|
5715
|
+
name: "codec",
|
|
5697
5716
|
kind: "scalar",
|
|
5698
5717
|
T: 9
|
|
5699
5718
|
/* ScalarType.STRING */
|
|
5700
5719
|
}, {
|
|
5701
5720
|
no: 2,
|
|
5702
|
-
name: "
|
|
5721
|
+
name: "cid",
|
|
5703
5722
|
kind: "scalar",
|
|
5704
5723
|
T: 9
|
|
5705
5724
|
/* ScalarType.STRING */
|
|
5706
5725
|
}, {
|
|
5707
|
-
no:
|
|
5708
|
-
name: "
|
|
5709
|
-
kind: "
|
|
5710
|
-
T:
|
|
5711
|
-
|
|
5726
|
+
no: 4,
|
|
5727
|
+
name: "layers",
|
|
5728
|
+
kind: "message",
|
|
5729
|
+
T: VideoLayer,
|
|
5730
|
+
repeated: true
|
|
5712
5731
|
}, {
|
|
5713
|
-
no:
|
|
5714
|
-
name: "
|
|
5732
|
+
no: 5,
|
|
5733
|
+
name: "video_layer_mode",
|
|
5734
|
+
kind: "enum",
|
|
5735
|
+
T: proto3.getEnumType(VideoLayer_Mode)
|
|
5736
|
+
}]);
|
|
5737
|
+
const AddTrackRequest = /* @__PURE__ */proto3.makeMessageType("livekit.AddTrackRequest", () => [{
|
|
5738
|
+
no: 1,
|
|
5739
|
+
name: "cid",
|
|
5715
5740
|
kind: "scalar",
|
|
5716
5741
|
T: 9
|
|
5717
5742
|
/* ScalarType.STRING */
|
|
5718
5743
|
}, {
|
|
5719
|
-
no:
|
|
5720
|
-
name: "
|
|
5744
|
+
no: 2,
|
|
5745
|
+
name: "name",
|
|
5721
5746
|
kind: "scalar",
|
|
5722
5747
|
T: 9
|
|
5723
5748
|
/* ScalarType.STRING */
|
|
5724
5749
|
}, {
|
|
5725
5750
|
no: 3,
|
|
5726
|
-
name: "
|
|
5727
|
-
kind: "
|
|
5728
|
-
T:
|
|
5729
|
-
/* ScalarType.STRING */
|
|
5751
|
+
name: "type",
|
|
5752
|
+
kind: "enum",
|
|
5753
|
+
T: proto3.getEnumType(TrackType)
|
|
5730
5754
|
}, {
|
|
5731
5755
|
no: 4,
|
|
5732
|
-
name: "
|
|
5756
|
+
name: "width",
|
|
5733
5757
|
kind: "scalar",
|
|
5734
|
-
T:
|
|
5735
|
-
/* ScalarType.
|
|
5758
|
+
T: 13
|
|
5759
|
+
/* ScalarType.UINT32 */
|
|
5736
5760
|
}, {
|
|
5737
5761
|
no: 5,
|
|
5738
|
-
name: "
|
|
5762
|
+
name: "height",
|
|
5739
5763
|
kind: "scalar",
|
|
5740
|
-
T:
|
|
5741
|
-
/* ScalarType.
|
|
5764
|
+
T: 13
|
|
5765
|
+
/* ScalarType.UINT32 */
|
|
5742
5766
|
}, {
|
|
5743
5767
|
no: 6,
|
|
5744
|
-
name: "
|
|
5768
|
+
name: "muted",
|
|
5745
5769
|
kind: "scalar",
|
|
5746
5770
|
T: 8
|
|
5747
5771
|
/* ScalarType.BOOL */
|
|
5748
5772
|
}, {
|
|
5749
5773
|
no: 7,
|
|
5750
|
-
name: "
|
|
5751
|
-
kind: "
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
kind: "scalar",
|
|
5755
|
-
T: 9
|
|
5756
|
-
/* ScalarType.STRING */
|
|
5757
|
-
}
|
|
5774
|
+
name: "disable_dtx",
|
|
5775
|
+
kind: "scalar",
|
|
5776
|
+
T: 8
|
|
5777
|
+
/* ScalarType.BOOL */
|
|
5758
5778
|
}, {
|
|
5759
5779
|
no: 8,
|
|
5760
|
-
name: "
|
|
5761
|
-
kind: "
|
|
5762
|
-
T:
|
|
5763
|
-
/* ScalarType.STRING */
|
|
5780
|
+
name: "source",
|
|
5781
|
+
kind: "enum",
|
|
5782
|
+
T: proto3.getEnumType(TrackSource)
|
|
5764
5783
|
}, {
|
|
5765
5784
|
no: 9,
|
|
5766
|
-
name: "
|
|
5767
|
-
kind: "
|
|
5768
|
-
T:
|
|
5769
|
-
|
|
5785
|
+
name: "layers",
|
|
5786
|
+
kind: "message",
|
|
5787
|
+
T: VideoLayer,
|
|
5788
|
+
repeated: true
|
|
5770
5789
|
}, {
|
|
5771
5790
|
no: 10,
|
|
5772
|
-
name: "
|
|
5791
|
+
name: "simulcast_codecs",
|
|
5773
5792
|
kind: "message",
|
|
5774
|
-
T:
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
no:
|
|
5778
|
-
name: "
|
|
5793
|
+
T: SimulcastCodec,
|
|
5794
|
+
repeated: true
|
|
5795
|
+
}, {
|
|
5796
|
+
no: 11,
|
|
5797
|
+
name: "sid",
|
|
5779
5798
|
kind: "scalar",
|
|
5780
5799
|
T: 9
|
|
5781
5800
|
/* ScalarType.STRING */
|
|
5782
5801
|
}, {
|
|
5783
|
-
no:
|
|
5784
|
-
name: "
|
|
5802
|
+
no: 12,
|
|
5803
|
+
name: "stereo",
|
|
5804
|
+
kind: "scalar",
|
|
5805
|
+
T: 8
|
|
5806
|
+
/* ScalarType.BOOL */
|
|
5807
|
+
}, {
|
|
5808
|
+
no: 13,
|
|
5809
|
+
name: "disable_red",
|
|
5810
|
+
kind: "scalar",
|
|
5811
|
+
T: 8
|
|
5812
|
+
/* ScalarType.BOOL */
|
|
5813
|
+
}, {
|
|
5814
|
+
no: 14,
|
|
5815
|
+
name: "encryption",
|
|
5816
|
+
kind: "enum",
|
|
5817
|
+
T: proto3.getEnumType(Encryption_Type)
|
|
5818
|
+
}, {
|
|
5819
|
+
no: 15,
|
|
5820
|
+
name: "stream",
|
|
5785
5821
|
kind: "scalar",
|
|
5786
5822
|
T: 9
|
|
5787
5823
|
/* ScalarType.STRING */
|
|
5788
5824
|
}, {
|
|
5789
|
-
no:
|
|
5790
|
-
name: "
|
|
5791
|
-
kind: "
|
|
5792
|
-
T:
|
|
5825
|
+
no: 16,
|
|
5826
|
+
name: "backup_codec_policy",
|
|
5827
|
+
kind: "enum",
|
|
5828
|
+
T: proto3.getEnumType(BackupCodecPolicy$1)
|
|
5829
|
+
}, {
|
|
5830
|
+
no: 17,
|
|
5831
|
+
name: "audio_features",
|
|
5832
|
+
kind: "enum",
|
|
5833
|
+
T: proto3.getEnumType(AudioTrackFeature),
|
|
5834
|
+
repeated: true
|
|
5793
5835
|
}]);
|
|
5794
|
-
const
|
|
5836
|
+
const PublishDataTrackRequest = /* @__PURE__ */proto3.makeMessageType("livekit.PublishDataTrackRequest", () => [{
|
|
5795
5837
|
no: 1,
|
|
5796
|
-
name: "
|
|
5838
|
+
name: "pub_handle",
|
|
5797
5839
|
kind: "scalar",
|
|
5798
|
-
T:
|
|
5799
|
-
/* ScalarType.
|
|
5840
|
+
T: 13
|
|
5841
|
+
/* ScalarType.UINT32 */
|
|
5800
5842
|
}, {
|
|
5801
5843
|
no: 2,
|
|
5802
|
-
name: "
|
|
5844
|
+
name: "name",
|
|
5803
5845
|
kind: "scalar",
|
|
5804
5846
|
T: 9
|
|
5805
5847
|
/* ScalarType.STRING */
|
|
5806
5848
|
}, {
|
|
5807
5849
|
no: 3,
|
|
5808
|
-
name: "
|
|
5850
|
+
name: "encryption",
|
|
5851
|
+
kind: "enum",
|
|
5852
|
+
T: proto3.getEnumType(Encryption_Type)
|
|
5853
|
+
}]);
|
|
5854
|
+
const PublishDataTrackResponse = /* @__PURE__ */proto3.makeMessageType("livekit.PublishDataTrackResponse", () => [{
|
|
5855
|
+
no: 1,
|
|
5856
|
+
name: "info",
|
|
5857
|
+
kind: "message",
|
|
5858
|
+
T: DataTrackInfo
|
|
5859
|
+
}]);
|
|
5860
|
+
const UnpublishDataTrackRequest = /* @__PURE__ */proto3.makeMessageType("livekit.UnpublishDataTrackRequest", () => [{
|
|
5861
|
+
no: 1,
|
|
5862
|
+
name: "pub_handle",
|
|
5809
5863
|
kind: "scalar",
|
|
5810
|
-
T:
|
|
5811
|
-
/* ScalarType.
|
|
5864
|
+
T: 13
|
|
5865
|
+
/* ScalarType.UINT32 */
|
|
5812
5866
|
}]);
|
|
5813
|
-
const
|
|
5867
|
+
const UnpublishDataTrackResponse = /* @__PURE__ */proto3.makeMessageType("livekit.UnpublishDataTrackResponse", () => [{
|
|
5814
5868
|
no: 1,
|
|
5815
|
-
name: "
|
|
5869
|
+
name: "info",
|
|
5870
|
+
kind: "message",
|
|
5871
|
+
T: DataTrackInfo
|
|
5872
|
+
}]);
|
|
5873
|
+
const DataTrackSubscriberHandles = /* @__PURE__ */proto3.makeMessageType("livekit.DataTrackSubscriberHandles", () => [{
|
|
5874
|
+
no: 1,
|
|
5875
|
+
name: "sub_handles",
|
|
5876
|
+
kind: "map",
|
|
5877
|
+
K: 13,
|
|
5878
|
+
V: {
|
|
5879
|
+
kind: "message",
|
|
5880
|
+
T: DataTrackSubscriberHandles_PublishedDataTrack
|
|
5881
|
+
}
|
|
5882
|
+
}]);
|
|
5883
|
+
const DataTrackSubscriberHandles_PublishedDataTrack = /* @__PURE__ */proto3.makeMessageType("livekit.DataTrackSubscriberHandles.PublishedDataTrack", () => [{
|
|
5884
|
+
no: 1,
|
|
5885
|
+
name: "publisher_identity",
|
|
5816
5886
|
kind: "scalar",
|
|
5817
5887
|
T: 9
|
|
5818
5888
|
/* ScalarType.STRING */
|
|
5819
5889
|
}, {
|
|
5820
5890
|
no: 2,
|
|
5821
|
-
name: "
|
|
5891
|
+
name: "publisher_sid",
|
|
5822
5892
|
kind: "scalar",
|
|
5823
5893
|
T: 9
|
|
5824
5894
|
/* ScalarType.STRING */
|
|
5825
5895
|
}, {
|
|
5826
5896
|
no: 3,
|
|
5827
|
-
name: "
|
|
5828
|
-
kind: "scalar",
|
|
5829
|
-
T: 9
|
|
5830
|
-
/* ScalarType.STRING */
|
|
5831
|
-
}, {
|
|
5832
|
-
no: 4,
|
|
5833
|
-
name: "endpoint",
|
|
5834
|
-
kind: "scalar",
|
|
5835
|
-
T: 9
|
|
5836
|
-
/* ScalarType.STRING */
|
|
5837
|
-
}, {
|
|
5838
|
-
no: 5,
|
|
5839
|
-
name: "bucket",
|
|
5897
|
+
name: "track_sid",
|
|
5840
5898
|
kind: "scalar",
|
|
5841
5899
|
T: 9
|
|
5842
5900
|
/* ScalarType.STRING */
|
|
5843
|
-
}]
|
|
5844
|
-
|
|
5901
|
+
}], {
|
|
5902
|
+
localName: "DataTrackSubscriberHandles_PublishedDataTrack"
|
|
5903
|
+
});
|
|
5904
|
+
const TrickleRequest = /* @__PURE__ */proto3.makeMessageType("livekit.TrickleRequest", () => [{
|
|
5845
5905
|
no: 1,
|
|
5846
|
-
name: "
|
|
5906
|
+
name: "candidateInit",
|
|
5847
5907
|
kind: "scalar",
|
|
5848
5908
|
T: 9
|
|
5849
5909
|
/* ScalarType.STRING */
|
|
5850
5910
|
}, {
|
|
5851
5911
|
no: 2,
|
|
5852
|
-
name: "
|
|
5853
|
-
kind: "
|
|
5854
|
-
T:
|
|
5855
|
-
/* ScalarType.STRING */
|
|
5912
|
+
name: "target",
|
|
5913
|
+
kind: "enum",
|
|
5914
|
+
T: proto3.getEnumType(SignalTarget)
|
|
5856
5915
|
}, {
|
|
5857
5916
|
no: 3,
|
|
5858
|
-
name: "
|
|
5917
|
+
name: "final",
|
|
5859
5918
|
kind: "scalar",
|
|
5860
|
-
T:
|
|
5861
|
-
/* ScalarType.
|
|
5919
|
+
T: 8
|
|
5920
|
+
/* ScalarType.BOOL */
|
|
5862
5921
|
}]);
|
|
5863
|
-
const
|
|
5922
|
+
const MuteTrackRequest = /* @__PURE__ */proto3.makeMessageType("livekit.MuteTrackRequest", () => [{
|
|
5864
5923
|
no: 1,
|
|
5865
|
-
name: "
|
|
5866
|
-
kind: "
|
|
5867
|
-
T:
|
|
5924
|
+
name: "sid",
|
|
5925
|
+
kind: "scalar",
|
|
5926
|
+
T: 9
|
|
5927
|
+
/* ScalarType.STRING */
|
|
5868
5928
|
}, {
|
|
5869
5929
|
no: 2,
|
|
5870
|
-
name: "
|
|
5930
|
+
name: "muted",
|
|
5871
5931
|
kind: "scalar",
|
|
5872
|
-
T:
|
|
5873
|
-
|
|
5932
|
+
T: 8
|
|
5933
|
+
/* ScalarType.BOOL */
|
|
5874
5934
|
}]);
|
|
5875
|
-
const
|
|
5935
|
+
const JoinResponse = /* @__PURE__ */proto3.makeMessageType("livekit.JoinResponse", () => [{
|
|
5876
5936
|
no: 1,
|
|
5877
|
-
name: "
|
|
5878
|
-
kind: "
|
|
5879
|
-
T:
|
|
5880
|
-
/* ScalarType.INT32 */
|
|
5937
|
+
name: "room",
|
|
5938
|
+
kind: "message",
|
|
5939
|
+
T: Room$1
|
|
5881
5940
|
}, {
|
|
5882
5941
|
no: 2,
|
|
5883
|
-
name: "
|
|
5884
|
-
kind: "
|
|
5885
|
-
T:
|
|
5886
|
-
/* ScalarType.INT32 */
|
|
5942
|
+
name: "participant",
|
|
5943
|
+
kind: "message",
|
|
5944
|
+
T: ParticipantInfo
|
|
5887
5945
|
}, {
|
|
5888
5946
|
no: 3,
|
|
5889
|
-
name: "
|
|
5890
|
-
kind: "
|
|
5891
|
-
T:
|
|
5892
|
-
|
|
5947
|
+
name: "other_participants",
|
|
5948
|
+
kind: "message",
|
|
5949
|
+
T: ParticipantInfo,
|
|
5950
|
+
repeated: true
|
|
5893
5951
|
}, {
|
|
5894
5952
|
no: 4,
|
|
5895
|
-
name: "
|
|
5953
|
+
name: "server_version",
|
|
5896
5954
|
kind: "scalar",
|
|
5897
|
-
T:
|
|
5898
|
-
/* ScalarType.
|
|
5955
|
+
T: 9
|
|
5956
|
+
/* ScalarType.STRING */
|
|
5899
5957
|
}, {
|
|
5900
5958
|
no: 5,
|
|
5901
|
-
name: "
|
|
5902
|
-
kind: "
|
|
5903
|
-
T:
|
|
5959
|
+
name: "ice_servers",
|
|
5960
|
+
kind: "message",
|
|
5961
|
+
T: ICEServer,
|
|
5962
|
+
repeated: true
|
|
5904
5963
|
}, {
|
|
5905
5964
|
no: 6,
|
|
5906
|
-
name: "
|
|
5907
|
-
kind: "scalar",
|
|
5908
|
-
T: 5
|
|
5909
|
-
/* ScalarType.INT32 */
|
|
5910
|
-
}, {
|
|
5911
|
-
no: 11,
|
|
5912
|
-
name: "audio_quality",
|
|
5965
|
+
name: "subscriber_primary",
|
|
5913
5966
|
kind: "scalar",
|
|
5914
|
-
T:
|
|
5915
|
-
/* ScalarType.
|
|
5967
|
+
T: 8
|
|
5968
|
+
/* ScalarType.BOOL */
|
|
5916
5969
|
}, {
|
|
5917
5970
|
no: 7,
|
|
5918
|
-
name: "
|
|
5971
|
+
name: "alternative_url",
|
|
5919
5972
|
kind: "scalar",
|
|
5920
|
-
T:
|
|
5921
|
-
/* ScalarType.
|
|
5973
|
+
T: 9
|
|
5974
|
+
/* ScalarType.STRING */
|
|
5922
5975
|
}, {
|
|
5923
5976
|
no: 8,
|
|
5924
|
-
name: "
|
|
5925
|
-
kind: "
|
|
5926
|
-
T:
|
|
5977
|
+
name: "client_configuration",
|
|
5978
|
+
kind: "message",
|
|
5979
|
+
T: ClientConfiguration
|
|
5927
5980
|
}, {
|
|
5928
5981
|
no: 9,
|
|
5929
|
-
name: "
|
|
5982
|
+
name: "server_region",
|
|
5983
|
+
kind: "scalar",
|
|
5984
|
+
T: 9
|
|
5985
|
+
/* ScalarType.STRING */
|
|
5986
|
+
}, {
|
|
5987
|
+
no: 10,
|
|
5988
|
+
name: "ping_timeout",
|
|
5930
5989
|
kind: "scalar",
|
|
5931
5990
|
T: 5
|
|
5932
5991
|
/* ScalarType.INT32 */
|
|
5933
5992
|
}, {
|
|
5934
|
-
no:
|
|
5935
|
-
name: "
|
|
5993
|
+
no: 11,
|
|
5994
|
+
name: "ping_interval",
|
|
5936
5995
|
kind: "scalar",
|
|
5937
5996
|
T: 5
|
|
5938
5997
|
/* ScalarType.INT32 */
|
|
5939
5998
|
}, {
|
|
5940
|
-
no:
|
|
5941
|
-
name: "
|
|
5999
|
+
no: 12,
|
|
6000
|
+
name: "server_info",
|
|
6001
|
+
kind: "message",
|
|
6002
|
+
T: ServerInfo
|
|
6003
|
+
}, {
|
|
6004
|
+
no: 13,
|
|
6005
|
+
name: "sif_trailer",
|
|
5942
6006
|
kind: "scalar",
|
|
5943
|
-
T:
|
|
5944
|
-
/* ScalarType.
|
|
6007
|
+
T: 12
|
|
6008
|
+
/* ScalarType.BYTES */
|
|
6009
|
+
}, {
|
|
6010
|
+
no: 14,
|
|
6011
|
+
name: "enabled_publish_codecs",
|
|
6012
|
+
kind: "message",
|
|
6013
|
+
T: Codec,
|
|
6014
|
+
repeated: true
|
|
6015
|
+
}, {
|
|
6016
|
+
no: 15,
|
|
6017
|
+
name: "fast_publish",
|
|
6018
|
+
kind: "scalar",
|
|
6019
|
+
T: 8
|
|
6020
|
+
/* ScalarType.BOOL */
|
|
5945
6021
|
}]);
|
|
5946
|
-
const
|
|
6022
|
+
const ReconnectResponse = /* @__PURE__ */proto3.makeMessageType("livekit.ReconnectResponse", () => [{
|
|
5947
6023
|
no: 1,
|
|
5948
|
-
name: "
|
|
5949
|
-
kind: "
|
|
5950
|
-
T:
|
|
5951
|
-
|
|
6024
|
+
name: "ice_servers",
|
|
6025
|
+
kind: "message",
|
|
6026
|
+
T: ICEServer,
|
|
6027
|
+
repeated: true
|
|
5952
6028
|
}, {
|
|
5953
6029
|
no: 2,
|
|
5954
|
-
name: "
|
|
6030
|
+
name: "client_configuration",
|
|
5955
6031
|
kind: "message",
|
|
5956
|
-
T:
|
|
5957
|
-
oneof: "options"
|
|
6032
|
+
T: ClientConfiguration
|
|
5958
6033
|
}, {
|
|
5959
6034
|
no: 3,
|
|
5960
|
-
name: "
|
|
6035
|
+
name: "server_info",
|
|
5961
6036
|
kind: "message",
|
|
5962
|
-
T:
|
|
5963
|
-
repeated: true
|
|
6037
|
+
T: ServerInfo
|
|
5964
6038
|
}, {
|
|
5965
6039
|
no: 4,
|
|
5966
|
-
name: "
|
|
5967
|
-
kind: "
|
|
5968
|
-
T:
|
|
5969
|
-
|
|
6040
|
+
name: "last_message_seq",
|
|
6041
|
+
kind: "scalar",
|
|
6042
|
+
T: 13
|
|
6043
|
+
/* ScalarType.UINT32 */
|
|
5970
6044
|
}]);
|
|
5971
|
-
const
|
|
6045
|
+
const TrackPublishedResponse = /* @__PURE__ */proto3.makeMessageType("livekit.TrackPublishedResponse", () => [{
|
|
5972
6046
|
no: 1,
|
|
5973
|
-
name: "
|
|
6047
|
+
name: "cid",
|
|
5974
6048
|
kind: "scalar",
|
|
5975
6049
|
T: 9
|
|
5976
6050
|
/* ScalarType.STRING */
|
|
5977
6051
|
}, {
|
|
5978
|
-
no:
|
|
5979
|
-
name: "
|
|
6052
|
+
no: 2,
|
|
6053
|
+
name: "track",
|
|
6054
|
+
kind: "message",
|
|
6055
|
+
T: TrackInfo
|
|
6056
|
+
}]);
|
|
6057
|
+
const TrackUnpublishedResponse = /* @__PURE__ */proto3.makeMessageType("livekit.TrackUnpublishedResponse", () => [{
|
|
6058
|
+
no: 1,
|
|
6059
|
+
name: "track_sid",
|
|
5980
6060
|
kind: "scalar",
|
|
5981
|
-
T:
|
|
5982
|
-
/* ScalarType.
|
|
6061
|
+
T: 9
|
|
6062
|
+
/* ScalarType.STRING */
|
|
6063
|
+
}]);
|
|
6064
|
+
const SessionDescription = /* @__PURE__ */proto3.makeMessageType("livekit.SessionDescription", () => [{
|
|
6065
|
+
no: 1,
|
|
6066
|
+
name: "type",
|
|
6067
|
+
kind: "scalar",
|
|
6068
|
+
T: 9
|
|
6069
|
+
/* ScalarType.STRING */
|
|
5983
6070
|
}, {
|
|
5984
6071
|
no: 2,
|
|
5985
|
-
name: "
|
|
5986
|
-
kind: "
|
|
5987
|
-
T:
|
|
5988
|
-
|
|
6072
|
+
name: "sdp",
|
|
6073
|
+
kind: "scalar",
|
|
6074
|
+
T: 9
|
|
6075
|
+
/* ScalarType.STRING */
|
|
5989
6076
|
}, {
|
|
5990
6077
|
no: 3,
|
|
5991
|
-
name: "
|
|
5992
|
-
kind: "
|
|
5993
|
-
T:
|
|
5994
|
-
|
|
6078
|
+
name: "id",
|
|
6079
|
+
kind: "scalar",
|
|
6080
|
+
T: 13
|
|
6081
|
+
/* ScalarType.UINT32 */
|
|
5995
6082
|
}, {
|
|
5996
6083
|
no: 4,
|
|
5997
|
-
name: "
|
|
5998
|
-
kind: "
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
T: AliOSSUpload,
|
|
6006
|
-
oneof: "output"
|
|
6084
|
+
name: "mid_to_track_id",
|
|
6085
|
+
kind: "map",
|
|
6086
|
+
K: 9,
|
|
6087
|
+
V: {
|
|
6088
|
+
kind: "scalar",
|
|
6089
|
+
T: 9
|
|
6090
|
+
/* ScalarType.STRING */
|
|
6091
|
+
}
|
|
6007
6092
|
}]);
|
|
6008
|
-
const
|
|
6093
|
+
const ParticipantUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.ParticipantUpdate", () => [{
|
|
6009
6094
|
no: 1,
|
|
6010
|
-
name: "
|
|
6095
|
+
name: "participants",
|
|
6011
6096
|
kind: "message",
|
|
6012
|
-
T:
|
|
6097
|
+
T: ParticipantInfo,
|
|
6098
|
+
repeated: true
|
|
6099
|
+
}]);
|
|
6100
|
+
const UpdateSubscription = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateSubscription", () => [{
|
|
6101
|
+
no: 1,
|
|
6102
|
+
name: "track_sids",
|
|
6103
|
+
kind: "scalar",
|
|
6104
|
+
T: 9,
|
|
6105
|
+
repeated: true
|
|
6106
|
+
}, {
|
|
6107
|
+
no: 2,
|
|
6108
|
+
name: "subscribe",
|
|
6109
|
+
kind: "scalar",
|
|
6110
|
+
T: 8
|
|
6111
|
+
/* ScalarType.BOOL */
|
|
6013
6112
|
}, {
|
|
6014
6113
|
no: 3,
|
|
6015
|
-
name: "
|
|
6114
|
+
name: "participant_tracks",
|
|
6016
6115
|
kind: "message",
|
|
6017
|
-
T:
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6116
|
+
T: ParticipantTracks,
|
|
6117
|
+
repeated: true
|
|
6118
|
+
}]);
|
|
6119
|
+
const UpdateDataSubscription = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateDataSubscription", () => [{
|
|
6120
|
+
no: 1,
|
|
6121
|
+
name: "updates",
|
|
6021
6122
|
kind: "message",
|
|
6022
|
-
T:
|
|
6123
|
+
T: UpdateDataSubscription_Update,
|
|
6124
|
+
repeated: true
|
|
6023
6125
|
}]);
|
|
6024
|
-
const
|
|
6126
|
+
const UpdateDataSubscription_Update = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateDataSubscription.Update", () => [{
|
|
6025
6127
|
no: 1,
|
|
6026
|
-
name: "
|
|
6128
|
+
name: "track_sid",
|
|
6027
6129
|
kind: "scalar",
|
|
6028
6130
|
T: 9
|
|
6029
6131
|
/* ScalarType.STRING */
|
|
6030
6132
|
}, {
|
|
6031
6133
|
no: 2,
|
|
6032
|
-
name: "
|
|
6134
|
+
name: "subscribe",
|
|
6033
6135
|
kind: "scalar",
|
|
6034
|
-
T:
|
|
6035
|
-
/* ScalarType.
|
|
6136
|
+
T: 8
|
|
6137
|
+
/* ScalarType.BOOL */
|
|
6036
6138
|
}, {
|
|
6037
6139
|
no: 3,
|
|
6038
|
-
name: "
|
|
6140
|
+
name: "options",
|
|
6141
|
+
kind: "message",
|
|
6142
|
+
T: DataTrackSubscriptionOptions
|
|
6143
|
+
}], {
|
|
6144
|
+
localName: "UpdateDataSubscription_Update"
|
|
6145
|
+
});
|
|
6146
|
+
const UpdateTrackSettings = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateTrackSettings", () => [{
|
|
6147
|
+
no: 1,
|
|
6148
|
+
name: "track_sids",
|
|
6039
6149
|
kind: "scalar",
|
|
6040
|
-
T:
|
|
6041
|
-
|
|
6150
|
+
T: 9,
|
|
6151
|
+
repeated: true
|
|
6152
|
+
}, {
|
|
6153
|
+
no: 3,
|
|
6154
|
+
name: "disabled",
|
|
6155
|
+
kind: "scalar",
|
|
6156
|
+
T: 8
|
|
6157
|
+
/* ScalarType.BOOL */
|
|
6042
6158
|
}, {
|
|
6043
6159
|
no: 4,
|
|
6044
|
-
name: "
|
|
6160
|
+
name: "quality",
|
|
6161
|
+
kind: "enum",
|
|
6162
|
+
T: proto3.getEnumType(VideoQuality$1)
|
|
6163
|
+
}, {
|
|
6164
|
+
no: 5,
|
|
6165
|
+
name: "width",
|
|
6045
6166
|
kind: "scalar",
|
|
6046
6167
|
T: 13
|
|
6047
6168
|
/* ScalarType.UINT32 */
|
|
6048
6169
|
}, {
|
|
6049
|
-
no:
|
|
6050
|
-
name: "
|
|
6170
|
+
no: 6,
|
|
6171
|
+
name: "height",
|
|
6051
6172
|
kind: "scalar",
|
|
6052
|
-
T:
|
|
6053
|
-
/* ScalarType.
|
|
6054
|
-
}, {
|
|
6055
|
-
no: 5,
|
|
6056
|
-
name: "egress",
|
|
6057
|
-
kind: "message",
|
|
6058
|
-
T: RoomEgress
|
|
6173
|
+
T: 13
|
|
6174
|
+
/* ScalarType.UINT32 */
|
|
6059
6175
|
}, {
|
|
6060
6176
|
no: 7,
|
|
6061
|
-
name: "
|
|
6177
|
+
name: "fps",
|
|
6062
6178
|
kind: "scalar",
|
|
6063
6179
|
T: 13
|
|
6064
6180
|
/* ScalarType.UINT32 */
|
|
6065
6181
|
}, {
|
|
6066
6182
|
no: 8,
|
|
6067
|
-
name: "
|
|
6183
|
+
name: "priority",
|
|
6068
6184
|
kind: "scalar",
|
|
6069
6185
|
T: 13
|
|
6070
6186
|
/* ScalarType.UINT32 */
|
|
6071
|
-
}, {
|
|
6072
|
-
no: 9,
|
|
6073
|
-
name: "sync_streams",
|
|
6074
|
-
kind: "scalar",
|
|
6075
|
-
T: 8
|
|
6076
|
-
/* ScalarType.BOOL */
|
|
6077
|
-
}, {
|
|
6078
|
-
no: 10,
|
|
6079
|
-
name: "agents",
|
|
6080
|
-
kind: "message",
|
|
6081
|
-
T: RoomAgentDispatch,
|
|
6082
|
-
repeated: true
|
|
6083
6187
|
}]);
|
|
6084
|
-
const
|
|
6085
|
-
no: 0,
|
|
6086
|
-
name: "PUBLISHER"
|
|
6087
|
-
}, {
|
|
6188
|
+
const UpdateLocalAudioTrack = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateLocalAudioTrack", () => [{
|
|
6088
6189
|
no: 1,
|
|
6089
|
-
name: "
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
name: "ACTIVE"
|
|
6190
|
+
name: "track_sid",
|
|
6191
|
+
kind: "scalar",
|
|
6192
|
+
T: 9
|
|
6193
|
+
/* ScalarType.STRING */
|
|
6094
6194
|
}, {
|
|
6095
|
-
no:
|
|
6096
|
-
name: "
|
|
6195
|
+
no: 2,
|
|
6196
|
+
name: "features",
|
|
6197
|
+
kind: "enum",
|
|
6198
|
+
T: proto3.getEnumType(AudioTrackFeature),
|
|
6199
|
+
repeated: true
|
|
6097
6200
|
}]);
|
|
6098
|
-
const
|
|
6099
|
-
no: 0,
|
|
6100
|
-
name: "UDP"
|
|
6101
|
-
}, {
|
|
6201
|
+
const UpdateLocalVideoTrack = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateLocalVideoTrack", () => [{
|
|
6102
6202
|
no: 1,
|
|
6103
|
-
name: "
|
|
6203
|
+
name: "track_sid",
|
|
6204
|
+
kind: "scalar",
|
|
6205
|
+
T: 9
|
|
6206
|
+
/* ScalarType.STRING */
|
|
6104
6207
|
}, {
|
|
6105
6208
|
no: 2,
|
|
6106
|
-
name: "
|
|
6209
|
+
name: "width",
|
|
6210
|
+
kind: "scalar",
|
|
6211
|
+
T: 13
|
|
6212
|
+
/* ScalarType.UINT32 */
|
|
6213
|
+
}, {
|
|
6214
|
+
no: 3,
|
|
6215
|
+
name: "height",
|
|
6216
|
+
kind: "scalar",
|
|
6217
|
+
T: 13
|
|
6218
|
+
/* ScalarType.UINT32 */
|
|
6107
6219
|
}]);
|
|
6108
|
-
const
|
|
6220
|
+
const LeaveRequest = /* @__PURE__ */proto3.makeMessageType("livekit.LeaveRequest", () => [{
|
|
6109
6221
|
no: 1,
|
|
6110
|
-
name: "
|
|
6111
|
-
kind: "
|
|
6112
|
-
T:
|
|
6113
|
-
|
|
6222
|
+
name: "can_reconnect",
|
|
6223
|
+
kind: "scalar",
|
|
6224
|
+
T: 8
|
|
6225
|
+
/* ScalarType.BOOL */
|
|
6114
6226
|
}, {
|
|
6115
6227
|
no: 2,
|
|
6116
|
-
name: "
|
|
6117
|
-
kind: "
|
|
6118
|
-
T:
|
|
6119
|
-
oneof: "message"
|
|
6228
|
+
name: "reason",
|
|
6229
|
+
kind: "enum",
|
|
6230
|
+
T: proto3.getEnumType(DisconnectReason)
|
|
6120
6231
|
}, {
|
|
6121
6232
|
no: 3,
|
|
6122
|
-
name: "
|
|
6123
|
-
kind: "
|
|
6124
|
-
T:
|
|
6125
|
-
oneof: "message"
|
|
6233
|
+
name: "action",
|
|
6234
|
+
kind: "enum",
|
|
6235
|
+
T: proto3.getEnumType(LeaveRequest_Action)
|
|
6126
6236
|
}, {
|
|
6127
6237
|
no: 4,
|
|
6128
|
-
name: "
|
|
6238
|
+
name: "regions",
|
|
6129
6239
|
kind: "message",
|
|
6130
|
-
T:
|
|
6131
|
-
|
|
6240
|
+
T: RegionSettings
|
|
6241
|
+
}]);
|
|
6242
|
+
const LeaveRequest_Action = /* @__PURE__ */proto3.makeEnum("livekit.LeaveRequest.Action", [{
|
|
6243
|
+
no: 0,
|
|
6244
|
+
name: "DISCONNECT"
|
|
6132
6245
|
}, {
|
|
6133
|
-
no:
|
|
6134
|
-
name: "
|
|
6246
|
+
no: 1,
|
|
6247
|
+
name: "RESUME"
|
|
6248
|
+
}, {
|
|
6249
|
+
no: 2,
|
|
6250
|
+
name: "RECONNECT"
|
|
6251
|
+
}]);
|
|
6252
|
+
const UpdateVideoLayers = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateVideoLayers", () => [{
|
|
6253
|
+
no: 1,
|
|
6254
|
+
name: "track_sid",
|
|
6255
|
+
kind: "scalar",
|
|
6256
|
+
T: 9
|
|
6257
|
+
/* ScalarType.STRING */
|
|
6258
|
+
}, {
|
|
6259
|
+
no: 2,
|
|
6260
|
+
name: "layers",
|
|
6135
6261
|
kind: "message",
|
|
6136
|
-
T:
|
|
6137
|
-
|
|
6262
|
+
T: VideoLayer,
|
|
6263
|
+
repeated: true
|
|
6264
|
+
}]);
|
|
6265
|
+
const UpdateParticipantMetadata = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateParticipantMetadata", () => [{
|
|
6266
|
+
no: 1,
|
|
6267
|
+
name: "metadata",
|
|
6268
|
+
kind: "scalar",
|
|
6269
|
+
T: 9
|
|
6270
|
+
/* ScalarType.STRING */
|
|
6138
6271
|
}, {
|
|
6139
|
-
no:
|
|
6140
|
-
name: "
|
|
6272
|
+
no: 2,
|
|
6273
|
+
name: "name",
|
|
6274
|
+
kind: "scalar",
|
|
6275
|
+
T: 9
|
|
6276
|
+
/* ScalarType.STRING */
|
|
6277
|
+
}, {
|
|
6278
|
+
no: 3,
|
|
6279
|
+
name: "attributes",
|
|
6280
|
+
kind: "map",
|
|
6281
|
+
K: 9,
|
|
6282
|
+
V: {
|
|
6283
|
+
kind: "scalar",
|
|
6284
|
+
T: 9
|
|
6285
|
+
/* ScalarType.STRING */
|
|
6286
|
+
}
|
|
6287
|
+
}, {
|
|
6288
|
+
no: 4,
|
|
6289
|
+
name: "request_id",
|
|
6290
|
+
kind: "scalar",
|
|
6291
|
+
T: 13
|
|
6292
|
+
/* ScalarType.UINT32 */
|
|
6293
|
+
}]);
|
|
6294
|
+
const ICEServer = /* @__PURE__ */proto3.makeMessageType("livekit.ICEServer", () => [{
|
|
6295
|
+
no: 1,
|
|
6296
|
+
name: "urls",
|
|
6297
|
+
kind: "scalar",
|
|
6298
|
+
T: 9,
|
|
6299
|
+
repeated: true
|
|
6300
|
+
}, {
|
|
6301
|
+
no: 2,
|
|
6302
|
+
name: "username",
|
|
6303
|
+
kind: "scalar",
|
|
6304
|
+
T: 9
|
|
6305
|
+
/* ScalarType.STRING */
|
|
6306
|
+
}, {
|
|
6307
|
+
no: 3,
|
|
6308
|
+
name: "credential",
|
|
6309
|
+
kind: "scalar",
|
|
6310
|
+
T: 9
|
|
6311
|
+
/* ScalarType.STRING */
|
|
6312
|
+
}]);
|
|
6313
|
+
const SpeakersChanged = /* @__PURE__ */proto3.makeMessageType("livekit.SpeakersChanged", () => [{
|
|
6314
|
+
no: 1,
|
|
6315
|
+
name: "speakers",
|
|
6141
6316
|
kind: "message",
|
|
6142
|
-
T:
|
|
6143
|
-
|
|
6317
|
+
T: SpeakerInfo,
|
|
6318
|
+
repeated: true
|
|
6319
|
+
}]);
|
|
6320
|
+
const RoomUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.RoomUpdate", () => [{
|
|
6321
|
+
no: 1,
|
|
6322
|
+
name: "room",
|
|
6323
|
+
kind: "message",
|
|
6324
|
+
T: Room$1
|
|
6325
|
+
}]);
|
|
6326
|
+
const ConnectionQualityInfo = /* @__PURE__ */proto3.makeMessageType("livekit.ConnectionQualityInfo", () => [{
|
|
6327
|
+
no: 1,
|
|
6328
|
+
name: "participant_sid",
|
|
6329
|
+
kind: "scalar",
|
|
6330
|
+
T: 9
|
|
6331
|
+
/* ScalarType.STRING */
|
|
6144
6332
|
}, {
|
|
6145
|
-
no:
|
|
6146
|
-
name: "
|
|
6333
|
+
no: 2,
|
|
6334
|
+
name: "quality",
|
|
6335
|
+
kind: "enum",
|
|
6336
|
+
T: proto3.getEnumType(ConnectionQuality$1)
|
|
6337
|
+
}, {
|
|
6338
|
+
no: 3,
|
|
6339
|
+
name: "score",
|
|
6340
|
+
kind: "scalar",
|
|
6341
|
+
T: 2
|
|
6342
|
+
/* ScalarType.FLOAT */
|
|
6343
|
+
}]);
|
|
6344
|
+
const ConnectionQualityUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.ConnectionQualityUpdate", () => [{
|
|
6345
|
+
no: 1,
|
|
6346
|
+
name: "updates",
|
|
6147
6347
|
kind: "message",
|
|
6148
|
-
T:
|
|
6149
|
-
|
|
6348
|
+
T: ConnectionQualityInfo,
|
|
6349
|
+
repeated: true
|
|
6350
|
+
}]);
|
|
6351
|
+
const StreamStateInfo = /* @__PURE__ */proto3.makeMessageType("livekit.StreamStateInfo", () => [{
|
|
6352
|
+
no: 1,
|
|
6353
|
+
name: "participant_sid",
|
|
6354
|
+
kind: "scalar",
|
|
6355
|
+
T: 9
|
|
6356
|
+
/* ScalarType.STRING */
|
|
6150
6357
|
}, {
|
|
6151
|
-
no:
|
|
6152
|
-
name: "
|
|
6358
|
+
no: 2,
|
|
6359
|
+
name: "track_sid",
|
|
6360
|
+
kind: "scalar",
|
|
6361
|
+
T: 9
|
|
6362
|
+
/* ScalarType.STRING */
|
|
6363
|
+
}, {
|
|
6364
|
+
no: 3,
|
|
6365
|
+
name: "state",
|
|
6366
|
+
kind: "enum",
|
|
6367
|
+
T: proto3.getEnumType(StreamState)
|
|
6368
|
+
}]);
|
|
6369
|
+
const StreamStateUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.StreamStateUpdate", () => [{
|
|
6370
|
+
no: 1,
|
|
6371
|
+
name: "stream_states",
|
|
6153
6372
|
kind: "message",
|
|
6154
|
-
T:
|
|
6155
|
-
|
|
6373
|
+
T: StreamStateInfo,
|
|
6374
|
+
repeated: true
|
|
6375
|
+
}]);
|
|
6376
|
+
const SubscribedQuality = /* @__PURE__ */proto3.makeMessageType("livekit.SubscribedQuality", () => [{
|
|
6377
|
+
no: 1,
|
|
6378
|
+
name: "quality",
|
|
6379
|
+
kind: "enum",
|
|
6380
|
+
T: proto3.getEnumType(VideoQuality$1)
|
|
6156
6381
|
}, {
|
|
6157
|
-
no:
|
|
6158
|
-
name: "
|
|
6382
|
+
no: 2,
|
|
6383
|
+
name: "enabled",
|
|
6384
|
+
kind: "scalar",
|
|
6385
|
+
T: 8
|
|
6386
|
+
/* ScalarType.BOOL */
|
|
6387
|
+
}]);
|
|
6388
|
+
const SubscribedCodec = /* @__PURE__ */proto3.makeMessageType("livekit.SubscribedCodec", () => [{
|
|
6389
|
+
no: 1,
|
|
6390
|
+
name: "codec",
|
|
6391
|
+
kind: "scalar",
|
|
6392
|
+
T: 9
|
|
6393
|
+
/* ScalarType.STRING */
|
|
6394
|
+
}, {
|
|
6395
|
+
no: 2,
|
|
6396
|
+
name: "qualities",
|
|
6159
6397
|
kind: "message",
|
|
6160
|
-
T:
|
|
6161
|
-
|
|
6398
|
+
T: SubscribedQuality,
|
|
6399
|
+
repeated: true
|
|
6400
|
+
}]);
|
|
6401
|
+
const SubscribedQualityUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.SubscribedQualityUpdate", () => [{
|
|
6402
|
+
no: 1,
|
|
6403
|
+
name: "track_sid",
|
|
6404
|
+
kind: "scalar",
|
|
6405
|
+
T: 9
|
|
6406
|
+
/* ScalarType.STRING */
|
|
6162
6407
|
}, {
|
|
6163
|
-
no:
|
|
6164
|
-
name: "
|
|
6408
|
+
no: 2,
|
|
6409
|
+
name: "subscribed_qualities",
|
|
6165
6410
|
kind: "message",
|
|
6166
|
-
T:
|
|
6167
|
-
|
|
6411
|
+
T: SubscribedQuality,
|
|
6412
|
+
repeated: true
|
|
6168
6413
|
}, {
|
|
6169
|
-
no:
|
|
6170
|
-
name: "
|
|
6414
|
+
no: 3,
|
|
6415
|
+
name: "subscribed_codecs",
|
|
6171
6416
|
kind: "message",
|
|
6172
|
-
T:
|
|
6173
|
-
|
|
6417
|
+
T: SubscribedCodec,
|
|
6418
|
+
repeated: true
|
|
6419
|
+
}]);
|
|
6420
|
+
const SubscribedAudioCodecUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.SubscribedAudioCodecUpdate", () => [{
|
|
6421
|
+
no: 1,
|
|
6422
|
+
name: "track_sid",
|
|
6423
|
+
kind: "scalar",
|
|
6424
|
+
T: 9
|
|
6425
|
+
/* ScalarType.STRING */
|
|
6174
6426
|
}, {
|
|
6175
|
-
no:
|
|
6176
|
-
name: "
|
|
6427
|
+
no: 2,
|
|
6428
|
+
name: "subscribed_audio_codecs",
|
|
6177
6429
|
kind: "message",
|
|
6178
|
-
T:
|
|
6179
|
-
|
|
6430
|
+
T: SubscribedAudioCodec,
|
|
6431
|
+
repeated: true
|
|
6432
|
+
}]);
|
|
6433
|
+
const TrackPermission = /* @__PURE__ */proto3.makeMessageType("livekit.TrackPermission", () => [{
|
|
6434
|
+
no: 1,
|
|
6435
|
+
name: "participant_sid",
|
|
6436
|
+
kind: "scalar",
|
|
6437
|
+
T: 9
|
|
6438
|
+
/* ScalarType.STRING */
|
|
6439
|
+
}, {
|
|
6440
|
+
no: 2,
|
|
6441
|
+
name: "all_tracks",
|
|
6442
|
+
kind: "scalar",
|
|
6443
|
+
T: 8
|
|
6444
|
+
/* ScalarType.BOOL */
|
|
6445
|
+
}, {
|
|
6446
|
+
no: 3,
|
|
6447
|
+
name: "track_sids",
|
|
6448
|
+
kind: "scalar",
|
|
6449
|
+
T: 9,
|
|
6450
|
+
repeated: true
|
|
6451
|
+
}, {
|
|
6452
|
+
no: 4,
|
|
6453
|
+
name: "participant_identity",
|
|
6454
|
+
kind: "scalar",
|
|
6455
|
+
T: 9
|
|
6456
|
+
/* ScalarType.STRING */
|
|
6457
|
+
}]);
|
|
6458
|
+
const SubscriptionPermission = /* @__PURE__ */proto3.makeMessageType("livekit.SubscriptionPermission", () => [{
|
|
6459
|
+
no: 1,
|
|
6460
|
+
name: "all_participants",
|
|
6461
|
+
kind: "scalar",
|
|
6462
|
+
T: 8
|
|
6463
|
+
/* ScalarType.BOOL */
|
|
6464
|
+
}, {
|
|
6465
|
+
no: 2,
|
|
6466
|
+
name: "track_permissions",
|
|
6467
|
+
kind: "message",
|
|
6468
|
+
T: TrackPermission,
|
|
6469
|
+
repeated: true
|
|
6470
|
+
}]);
|
|
6471
|
+
const SubscriptionPermissionUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.SubscriptionPermissionUpdate", () => [{
|
|
6472
|
+
no: 1,
|
|
6473
|
+
name: "participant_sid",
|
|
6474
|
+
kind: "scalar",
|
|
6475
|
+
T: 9
|
|
6476
|
+
/* ScalarType.STRING */
|
|
6180
6477
|
}, {
|
|
6181
|
-
no:
|
|
6182
|
-
name: "
|
|
6478
|
+
no: 2,
|
|
6479
|
+
name: "track_sid",
|
|
6183
6480
|
kind: "scalar",
|
|
6184
|
-
T:
|
|
6185
|
-
|
|
6481
|
+
T: 9
|
|
6482
|
+
/* ScalarType.STRING */
|
|
6186
6483
|
}, {
|
|
6187
|
-
no:
|
|
6188
|
-
name: "
|
|
6484
|
+
no: 3,
|
|
6485
|
+
name: "allowed",
|
|
6486
|
+
kind: "scalar",
|
|
6487
|
+
T: 8
|
|
6488
|
+
/* ScalarType.BOOL */
|
|
6489
|
+
}]);
|
|
6490
|
+
const RoomMovedResponse = /* @__PURE__ */proto3.makeMessageType("livekit.RoomMovedResponse", () => [{
|
|
6491
|
+
no: 1,
|
|
6492
|
+
name: "room",
|
|
6189
6493
|
kind: "message",
|
|
6190
|
-
T:
|
|
6191
|
-
oneof: "message"
|
|
6494
|
+
T: Room$1
|
|
6192
6495
|
}, {
|
|
6193
|
-
no:
|
|
6194
|
-
name: "
|
|
6195
|
-
kind: "
|
|
6196
|
-
T:
|
|
6197
|
-
|
|
6496
|
+
no: 2,
|
|
6497
|
+
name: "token",
|
|
6498
|
+
kind: "scalar",
|
|
6499
|
+
T: 9
|
|
6500
|
+
/* ScalarType.STRING */
|
|
6198
6501
|
}, {
|
|
6199
|
-
no:
|
|
6200
|
-
name: "
|
|
6502
|
+
no: 3,
|
|
6503
|
+
name: "participant",
|
|
6201
6504
|
kind: "message",
|
|
6202
|
-
T:
|
|
6203
|
-
oneof: "message"
|
|
6505
|
+
T: ParticipantInfo
|
|
6204
6506
|
}, {
|
|
6205
|
-
no:
|
|
6206
|
-
name: "
|
|
6507
|
+
no: 4,
|
|
6508
|
+
name: "other_participants",
|
|
6207
6509
|
kind: "message",
|
|
6208
|
-
T:
|
|
6209
|
-
|
|
6510
|
+
T: ParticipantInfo,
|
|
6511
|
+
repeated: true
|
|
6210
6512
|
}]);
|
|
6211
|
-
const
|
|
6513
|
+
const SyncState = /* @__PURE__ */proto3.makeMessageType("livekit.SyncState", () => [{
|
|
6212
6514
|
no: 1,
|
|
6213
|
-
name: "
|
|
6515
|
+
name: "answer",
|
|
6214
6516
|
kind: "message",
|
|
6215
|
-
T:
|
|
6216
|
-
oneof: "message"
|
|
6517
|
+
T: SessionDescription
|
|
6217
6518
|
}, {
|
|
6218
6519
|
no: 2,
|
|
6219
|
-
name: "
|
|
6520
|
+
name: "subscription",
|
|
6220
6521
|
kind: "message",
|
|
6221
|
-
T:
|
|
6222
|
-
oneof: "message"
|
|
6522
|
+
T: UpdateSubscription
|
|
6223
6523
|
}, {
|
|
6224
6524
|
no: 3,
|
|
6225
|
-
name: "
|
|
6525
|
+
name: "publish_tracks",
|
|
6226
6526
|
kind: "message",
|
|
6227
|
-
T:
|
|
6228
|
-
|
|
6527
|
+
T: TrackPublishedResponse,
|
|
6528
|
+
repeated: true
|
|
6229
6529
|
}, {
|
|
6230
6530
|
no: 4,
|
|
6231
|
-
name: "
|
|
6531
|
+
name: "data_channels",
|
|
6232
6532
|
kind: "message",
|
|
6233
|
-
T:
|
|
6234
|
-
|
|
6533
|
+
T: DataChannelInfo,
|
|
6534
|
+
repeated: true
|
|
6235
6535
|
}, {
|
|
6236
6536
|
no: 5,
|
|
6237
|
-
name: "
|
|
6537
|
+
name: "offer",
|
|
6238
6538
|
kind: "message",
|
|
6239
|
-
T:
|
|
6240
|
-
oneof: "message"
|
|
6539
|
+
T: SessionDescription
|
|
6241
6540
|
}, {
|
|
6242
6541
|
no: 6,
|
|
6243
|
-
name: "
|
|
6244
|
-
kind: "
|
|
6245
|
-
T:
|
|
6246
|
-
|
|
6247
|
-
}, {
|
|
6248
|
-
no: 8,
|
|
6249
|
-
name: "leave",
|
|
6250
|
-
kind: "message",
|
|
6251
|
-
T: LeaveRequest,
|
|
6252
|
-
oneof: "message"
|
|
6542
|
+
name: "track_sids_disabled",
|
|
6543
|
+
kind: "scalar",
|
|
6544
|
+
T: 9,
|
|
6545
|
+
repeated: true
|
|
6253
6546
|
}, {
|
|
6254
|
-
no:
|
|
6255
|
-
name: "
|
|
6547
|
+
no: 7,
|
|
6548
|
+
name: "datachannel_receive_states",
|
|
6256
6549
|
kind: "message",
|
|
6257
|
-
T:
|
|
6258
|
-
|
|
6550
|
+
T: DataChannelReceiveState,
|
|
6551
|
+
repeated: true
|
|
6259
6552
|
}, {
|
|
6260
|
-
no:
|
|
6261
|
-
name: "
|
|
6553
|
+
no: 8,
|
|
6554
|
+
name: "publish_data_tracks",
|
|
6262
6555
|
kind: "message",
|
|
6263
|
-
T:
|
|
6264
|
-
|
|
6556
|
+
T: PublishDataTrackResponse,
|
|
6557
|
+
repeated: true
|
|
6558
|
+
}]);
|
|
6559
|
+
const DataChannelReceiveState = /* @__PURE__ */proto3.makeMessageType("livekit.DataChannelReceiveState", () => [{
|
|
6560
|
+
no: 1,
|
|
6561
|
+
name: "publisher_sid",
|
|
6562
|
+
kind: "scalar",
|
|
6563
|
+
T: 9
|
|
6564
|
+
/* ScalarType.STRING */
|
|
6265
6565
|
}, {
|
|
6266
|
-
no:
|
|
6267
|
-
name: "
|
|
6268
|
-
kind: "
|
|
6269
|
-
T:
|
|
6270
|
-
|
|
6566
|
+
no: 2,
|
|
6567
|
+
name: "last_seq",
|
|
6568
|
+
kind: "scalar",
|
|
6569
|
+
T: 13
|
|
6570
|
+
/* ScalarType.UINT32 */
|
|
6571
|
+
}]);
|
|
6572
|
+
const DataChannelInfo = /* @__PURE__ */proto3.makeMessageType("livekit.DataChannelInfo", () => [{
|
|
6573
|
+
no: 1,
|
|
6574
|
+
name: "label",
|
|
6575
|
+
kind: "scalar",
|
|
6576
|
+
T: 9
|
|
6577
|
+
/* ScalarType.STRING */
|
|
6271
6578
|
}, {
|
|
6272
|
-
no:
|
|
6273
|
-
name: "
|
|
6274
|
-
kind: "
|
|
6275
|
-
T:
|
|
6276
|
-
|
|
6579
|
+
no: 2,
|
|
6580
|
+
name: "id",
|
|
6581
|
+
kind: "scalar",
|
|
6582
|
+
T: 13
|
|
6583
|
+
/* ScalarType.UINT32 */
|
|
6277
6584
|
}, {
|
|
6278
|
-
no:
|
|
6279
|
-
name: "
|
|
6280
|
-
kind: "
|
|
6281
|
-
T:
|
|
6282
|
-
|
|
6585
|
+
no: 3,
|
|
6586
|
+
name: "target",
|
|
6587
|
+
kind: "enum",
|
|
6588
|
+
T: proto3.getEnumType(SignalTarget)
|
|
6589
|
+
}]);
|
|
6590
|
+
const SimulateScenario = /* @__PURE__ */proto3.makeMessageType("livekit.SimulateScenario", () => [{
|
|
6591
|
+
no: 1,
|
|
6592
|
+
name: "speaker_update",
|
|
6593
|
+
kind: "scalar",
|
|
6594
|
+
T: 5,
|
|
6595
|
+
oneof: "scenario"
|
|
6283
6596
|
}, {
|
|
6284
|
-
no:
|
|
6285
|
-
name: "
|
|
6286
|
-
kind: "
|
|
6287
|
-
T:
|
|
6288
|
-
oneof: "
|
|
6597
|
+
no: 2,
|
|
6598
|
+
name: "node_failure",
|
|
6599
|
+
kind: "scalar",
|
|
6600
|
+
T: 8,
|
|
6601
|
+
oneof: "scenario"
|
|
6289
6602
|
}, {
|
|
6290
|
-
no:
|
|
6291
|
-
name: "
|
|
6292
|
-
kind: "
|
|
6293
|
-
T:
|
|
6294
|
-
oneof: "
|
|
6603
|
+
no: 3,
|
|
6604
|
+
name: "migration",
|
|
6605
|
+
kind: "scalar",
|
|
6606
|
+
T: 8,
|
|
6607
|
+
oneof: "scenario"
|
|
6295
6608
|
}, {
|
|
6296
|
-
no:
|
|
6297
|
-
name: "
|
|
6609
|
+
no: 4,
|
|
6610
|
+
name: "server_leave",
|
|
6298
6611
|
kind: "scalar",
|
|
6299
|
-
T:
|
|
6300
|
-
oneof: "
|
|
6612
|
+
T: 8,
|
|
6613
|
+
oneof: "scenario"
|
|
6301
6614
|
}, {
|
|
6302
|
-
no:
|
|
6303
|
-
name: "
|
|
6304
|
-
kind: "
|
|
6305
|
-
T:
|
|
6306
|
-
oneof: "
|
|
6615
|
+
no: 5,
|
|
6616
|
+
name: "switch_candidate_protocol",
|
|
6617
|
+
kind: "enum",
|
|
6618
|
+
T: proto3.getEnumType(CandidateProtocol),
|
|
6619
|
+
oneof: "scenario"
|
|
6307
6620
|
}, {
|
|
6308
|
-
no:
|
|
6309
|
-
name: "
|
|
6621
|
+
no: 6,
|
|
6622
|
+
name: "subscriber_bandwidth",
|
|
6310
6623
|
kind: "scalar",
|
|
6311
6624
|
T: 3,
|
|
6312
|
-
oneof: "
|
|
6313
|
-
}, {
|
|
6314
|
-
no: 19,
|
|
6315
|
-
name: "reconnect",
|
|
6316
|
-
kind: "message",
|
|
6317
|
-
T: ReconnectResponse,
|
|
6318
|
-
oneof: "message"
|
|
6319
|
-
}, {
|
|
6320
|
-
no: 20,
|
|
6321
|
-
name: "pong_resp",
|
|
6322
|
-
kind: "message",
|
|
6323
|
-
T: Pong,
|
|
6324
|
-
oneof: "message"
|
|
6325
|
-
}, {
|
|
6326
|
-
no: 21,
|
|
6327
|
-
name: "subscription_response",
|
|
6328
|
-
kind: "message",
|
|
6329
|
-
T: SubscriptionResponse,
|
|
6330
|
-
oneof: "message"
|
|
6331
|
-
}, {
|
|
6332
|
-
no: 22,
|
|
6333
|
-
name: "request_response",
|
|
6334
|
-
kind: "message",
|
|
6335
|
-
T: RequestResponse,
|
|
6336
|
-
oneof: "message"
|
|
6337
|
-
}, {
|
|
6338
|
-
no: 23,
|
|
6339
|
-
name: "track_subscribed",
|
|
6340
|
-
kind: "message",
|
|
6341
|
-
T: TrackSubscribed,
|
|
6342
|
-
oneof: "message"
|
|
6625
|
+
oneof: "scenario"
|
|
6343
6626
|
}, {
|
|
6344
|
-
no:
|
|
6345
|
-
name: "
|
|
6346
|
-
kind: "
|
|
6347
|
-
T:
|
|
6348
|
-
oneof: "
|
|
6627
|
+
no: 7,
|
|
6628
|
+
name: "disconnect_signal_on_resume",
|
|
6629
|
+
kind: "scalar",
|
|
6630
|
+
T: 8,
|
|
6631
|
+
oneof: "scenario"
|
|
6349
6632
|
}, {
|
|
6350
|
-
no:
|
|
6351
|
-
name: "
|
|
6352
|
-
kind: "
|
|
6353
|
-
T:
|
|
6354
|
-
oneof: "
|
|
6633
|
+
no: 8,
|
|
6634
|
+
name: "disconnect_signal_on_resume_no_messages",
|
|
6635
|
+
kind: "scalar",
|
|
6636
|
+
T: 8,
|
|
6637
|
+
oneof: "scenario"
|
|
6355
6638
|
}, {
|
|
6356
|
-
no:
|
|
6357
|
-
name: "
|
|
6358
|
-
kind: "
|
|
6359
|
-
T:
|
|
6360
|
-
oneof: "
|
|
6639
|
+
no: 9,
|
|
6640
|
+
name: "leave_request_full_reconnect",
|
|
6641
|
+
kind: "scalar",
|
|
6642
|
+
T: 8,
|
|
6643
|
+
oneof: "scenario"
|
|
6361
6644
|
}]);
|
|
6362
|
-
const
|
|
6645
|
+
const Ping = /* @__PURE__ */proto3.makeMessageType("livekit.Ping", () => [{
|
|
6363
6646
|
no: 1,
|
|
6364
|
-
name: "
|
|
6647
|
+
name: "timestamp",
|
|
6365
6648
|
kind: "scalar",
|
|
6366
|
-
T:
|
|
6367
|
-
/* ScalarType.
|
|
6649
|
+
T: 3
|
|
6650
|
+
/* ScalarType.INT64 */
|
|
6368
6651
|
}, {
|
|
6369
6652
|
no: 2,
|
|
6370
|
-
name: "
|
|
6653
|
+
name: "rtt",
|
|
6371
6654
|
kind: "scalar",
|
|
6372
|
-
T:
|
|
6373
|
-
/* ScalarType.
|
|
6655
|
+
T: 3
|
|
6656
|
+
/* ScalarType.INT64 */
|
|
6657
|
+
}]);
|
|
6658
|
+
const Pong = /* @__PURE__ */proto3.makeMessageType("livekit.Pong", () => [{
|
|
6659
|
+
no: 1,
|
|
6660
|
+
name: "last_ping_timestamp",
|
|
6661
|
+
kind: "scalar",
|
|
6662
|
+
T: 3
|
|
6663
|
+
/* ScalarType.INT64 */
|
|
6374
6664
|
}, {
|
|
6375
|
-
no:
|
|
6376
|
-
name: "
|
|
6665
|
+
no: 2,
|
|
6666
|
+
name: "timestamp",
|
|
6667
|
+
kind: "scalar",
|
|
6668
|
+
T: 3
|
|
6669
|
+
/* ScalarType.INT64 */
|
|
6670
|
+
}]);
|
|
6671
|
+
const RegionSettings = /* @__PURE__ */proto3.makeMessageType("livekit.RegionSettings", () => [{
|
|
6672
|
+
no: 1,
|
|
6673
|
+
name: "regions",
|
|
6377
6674
|
kind: "message",
|
|
6378
|
-
T:
|
|
6675
|
+
T: RegionInfo,
|
|
6379
6676
|
repeated: true
|
|
6380
|
-
}, {
|
|
6381
|
-
no: 5,
|
|
6382
|
-
name: "video_layer_mode",
|
|
6383
|
-
kind: "enum",
|
|
6384
|
-
T: proto3.getEnumType(VideoLayer_Mode)
|
|
6385
6677
|
}]);
|
|
6386
|
-
const
|
|
6678
|
+
const RegionInfo = /* @__PURE__ */proto3.makeMessageType("livekit.RegionInfo", () => [{
|
|
6387
6679
|
no: 1,
|
|
6388
|
-
name: "
|
|
6680
|
+
name: "region",
|
|
6389
6681
|
kind: "scalar",
|
|
6390
6682
|
T: 9
|
|
6391
6683
|
/* ScalarType.STRING */
|
|
6392
6684
|
}, {
|
|
6393
6685
|
no: 2,
|
|
6394
|
-
name: "
|
|
6686
|
+
name: "url",
|
|
6395
6687
|
kind: "scalar",
|
|
6396
6688
|
T: 9
|
|
6397
6689
|
/* ScalarType.STRING */
|
|
6398
6690
|
}, {
|
|
6399
6691
|
no: 3,
|
|
6400
|
-
name: "
|
|
6401
|
-
kind: "
|
|
6402
|
-
T:
|
|
6692
|
+
name: "distance",
|
|
6693
|
+
kind: "scalar",
|
|
6694
|
+
T: 3
|
|
6695
|
+
/* ScalarType.INT64 */
|
|
6696
|
+
}]);
|
|
6697
|
+
const SubscriptionResponse = /* @__PURE__ */proto3.makeMessageType("livekit.SubscriptionResponse", () => [{
|
|
6698
|
+
no: 1,
|
|
6699
|
+
name: "track_sid",
|
|
6700
|
+
kind: "scalar",
|
|
6701
|
+
T: 9
|
|
6702
|
+
/* ScalarType.STRING */
|
|
6403
6703
|
}, {
|
|
6404
|
-
no:
|
|
6405
|
-
name: "
|
|
6704
|
+
no: 2,
|
|
6705
|
+
name: "err",
|
|
6706
|
+
kind: "enum",
|
|
6707
|
+
T: proto3.getEnumType(SubscriptionError)
|
|
6708
|
+
}]);
|
|
6709
|
+
const RequestResponse = /* @__PURE__ */proto3.makeMessageType("livekit.RequestResponse", () => [{
|
|
6710
|
+
no: 1,
|
|
6711
|
+
name: "request_id",
|
|
6406
6712
|
kind: "scalar",
|
|
6407
6713
|
T: 13
|
|
6408
6714
|
/* ScalarType.UINT32 */
|
|
6409
6715
|
}, {
|
|
6410
|
-
no:
|
|
6411
|
-
name: "
|
|
6716
|
+
no: 2,
|
|
6717
|
+
name: "reason",
|
|
6718
|
+
kind: "enum",
|
|
6719
|
+
T: proto3.getEnumType(RequestResponse_Reason)
|
|
6720
|
+
}, {
|
|
6721
|
+
no: 3,
|
|
6722
|
+
name: "message",
|
|
6412
6723
|
kind: "scalar",
|
|
6413
|
-
T:
|
|
6414
|
-
/* ScalarType.
|
|
6724
|
+
T: 9
|
|
6725
|
+
/* ScalarType.STRING */
|
|
6726
|
+
}, {
|
|
6727
|
+
no: 4,
|
|
6728
|
+
name: "trickle",
|
|
6729
|
+
kind: "message",
|
|
6730
|
+
T: TrickleRequest,
|
|
6731
|
+
oneof: "request"
|
|
6732
|
+
}, {
|
|
6733
|
+
no: 5,
|
|
6734
|
+
name: "add_track",
|
|
6735
|
+
kind: "message",
|
|
6736
|
+
T: AddTrackRequest,
|
|
6737
|
+
oneof: "request"
|
|
6415
6738
|
}, {
|
|
6416
6739
|
no: 6,
|
|
6417
|
-
name: "
|
|
6418
|
-
kind: "
|
|
6419
|
-
T:
|
|
6420
|
-
|
|
6740
|
+
name: "mute",
|
|
6741
|
+
kind: "message",
|
|
6742
|
+
T: MuteTrackRequest,
|
|
6743
|
+
oneof: "request"
|
|
6421
6744
|
}, {
|
|
6422
6745
|
no: 7,
|
|
6423
|
-
name: "
|
|
6424
|
-
kind: "
|
|
6425
|
-
T:
|
|
6426
|
-
|
|
6746
|
+
name: "update_metadata",
|
|
6747
|
+
kind: "message",
|
|
6748
|
+
T: UpdateParticipantMetadata,
|
|
6749
|
+
oneof: "request"
|
|
6427
6750
|
}, {
|
|
6428
6751
|
no: 8,
|
|
6429
|
-
name: "
|
|
6430
|
-
kind: "
|
|
6431
|
-
T:
|
|
6752
|
+
name: "update_audio_track",
|
|
6753
|
+
kind: "message",
|
|
6754
|
+
T: UpdateLocalAudioTrack,
|
|
6755
|
+
oneof: "request"
|
|
6432
6756
|
}, {
|
|
6433
6757
|
no: 9,
|
|
6434
|
-
name: "
|
|
6758
|
+
name: "update_video_track",
|
|
6435
6759
|
kind: "message",
|
|
6436
|
-
T:
|
|
6437
|
-
|
|
6760
|
+
T: UpdateLocalVideoTrack,
|
|
6761
|
+
oneof: "request"
|
|
6438
6762
|
}, {
|
|
6439
6763
|
no: 10,
|
|
6440
|
-
name: "
|
|
6764
|
+
name: "publish_data_track",
|
|
6441
6765
|
kind: "message",
|
|
6442
|
-
T:
|
|
6443
|
-
|
|
6766
|
+
T: PublishDataTrackRequest,
|
|
6767
|
+
oneof: "request"
|
|
6444
6768
|
}, {
|
|
6445
6769
|
no: 11,
|
|
6446
|
-
name: "
|
|
6447
|
-
kind: "
|
|
6448
|
-
T:
|
|
6449
|
-
|
|
6770
|
+
name: "unpublish_data_track",
|
|
6771
|
+
kind: "message",
|
|
6772
|
+
T: UnpublishDataTrackRequest,
|
|
6773
|
+
oneof: "request"
|
|
6774
|
+
}]);
|
|
6775
|
+
const RequestResponse_Reason = /* @__PURE__ */proto3.makeEnum("livekit.RequestResponse.Reason", [{
|
|
6776
|
+
no: 0,
|
|
6777
|
+
name: "OK"
|
|
6450
6778
|
}, {
|
|
6451
|
-
no:
|
|
6452
|
-
name: "
|
|
6453
|
-
kind: "scalar",
|
|
6454
|
-
T: 8
|
|
6455
|
-
/* ScalarType.BOOL */
|
|
6779
|
+
no: 1,
|
|
6780
|
+
name: "NOT_FOUND"
|
|
6456
6781
|
}, {
|
|
6457
|
-
no:
|
|
6458
|
-
name: "
|
|
6459
|
-
kind: "scalar",
|
|
6460
|
-
T: 8
|
|
6461
|
-
/* ScalarType.BOOL */
|
|
6782
|
+
no: 2,
|
|
6783
|
+
name: "NOT_ALLOWED"
|
|
6462
6784
|
}, {
|
|
6463
|
-
no:
|
|
6464
|
-
name: "
|
|
6465
|
-
kind: "enum",
|
|
6466
|
-
T: proto3.getEnumType(Encryption_Type)
|
|
6785
|
+
no: 3,
|
|
6786
|
+
name: "LIMIT_EXCEEDED"
|
|
6467
6787
|
}, {
|
|
6468
|
-
no:
|
|
6469
|
-
name: "
|
|
6470
|
-
kind: "scalar",
|
|
6471
|
-
T: 9
|
|
6472
|
-
/* ScalarType.STRING */
|
|
6788
|
+
no: 4,
|
|
6789
|
+
name: "QUEUED"
|
|
6473
6790
|
}, {
|
|
6474
|
-
no:
|
|
6475
|
-
name: "
|
|
6476
|
-
kind: "enum",
|
|
6477
|
-
T: proto3.getEnumType(BackupCodecPolicy$1)
|
|
6791
|
+
no: 5,
|
|
6792
|
+
name: "UNSUPPORTED_TYPE"
|
|
6478
6793
|
}, {
|
|
6479
|
-
no:
|
|
6480
|
-
name: "
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6794
|
+
no: 6,
|
|
6795
|
+
name: "UNCLASSIFIED_ERROR"
|
|
6796
|
+
}, {
|
|
6797
|
+
no: 7,
|
|
6798
|
+
name: "INVALID_HANDLE"
|
|
6799
|
+
}, {
|
|
6800
|
+
no: 8,
|
|
6801
|
+
name: "INVALID_NAME"
|
|
6802
|
+
}, {
|
|
6803
|
+
no: 9,
|
|
6804
|
+
name: "DUPLICATE_HANDLE"
|
|
6805
|
+
}, {
|
|
6806
|
+
no: 10,
|
|
6807
|
+
name: "DUPLICATE_NAME"
|
|
6484
6808
|
}]);
|
|
6485
|
-
const
|
|
6809
|
+
const TrackSubscribed = /* @__PURE__ */proto3.makeMessageType("livekit.TrackSubscribed", () => [{
|
|
6486
6810
|
no: 1,
|
|
6487
|
-
name: "
|
|
6811
|
+
name: "track_sid",
|
|
6488
6812
|
kind: "scalar",
|
|
6489
6813
|
T: 9
|
|
6490
6814
|
/* ScalarType.STRING */
|
|
6815
|
+
}]);
|
|
6816
|
+
const ConnectionSettings = /* @__PURE__ */proto3.makeMessageType("livekit.ConnectionSettings", () => [{
|
|
6817
|
+
no: 1,
|
|
6818
|
+
name: "auto_subscribe",
|
|
6819
|
+
kind: "scalar",
|
|
6820
|
+
T: 8
|
|
6821
|
+
/* ScalarType.BOOL */
|
|
6491
6822
|
}, {
|
|
6492
6823
|
no: 2,
|
|
6493
|
-
name: "
|
|
6494
|
-
kind: "enum",
|
|
6495
|
-
T: proto3.getEnumType(SignalTarget)
|
|
6496
|
-
}, {
|
|
6497
|
-
no: 3,
|
|
6498
|
-
name: "final",
|
|
6824
|
+
name: "adaptive_stream",
|
|
6499
6825
|
kind: "scalar",
|
|
6500
6826
|
T: 8
|
|
6501
6827
|
/* ScalarType.BOOL */
|
|
6502
|
-
}
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
name: "sid",
|
|
6828
|
+
}, {
|
|
6829
|
+
no: 3,
|
|
6830
|
+
name: "subscriber_allow_pause",
|
|
6506
6831
|
kind: "scalar",
|
|
6507
|
-
T:
|
|
6508
|
-
|
|
6832
|
+
T: 8,
|
|
6833
|
+
opt: true
|
|
6509
6834
|
}, {
|
|
6510
|
-
no:
|
|
6511
|
-
name: "
|
|
6835
|
+
no: 4,
|
|
6836
|
+
name: "disable_ice_lite",
|
|
6512
6837
|
kind: "scalar",
|
|
6513
6838
|
T: 8
|
|
6514
6839
|
/* ScalarType.BOOL */
|
|
6840
|
+
}, {
|
|
6841
|
+
no: 5,
|
|
6842
|
+
name: "auto_subscribe_data_track",
|
|
6843
|
+
kind: "scalar",
|
|
6844
|
+
T: 8,
|
|
6845
|
+
opt: true
|
|
6515
6846
|
}]);
|
|
6516
|
-
const
|
|
6847
|
+
const JoinRequest = /* @__PURE__ */proto3.makeMessageType("livekit.JoinRequest", () => [{
|
|
6517
6848
|
no: 1,
|
|
6518
|
-
name: "
|
|
6849
|
+
name: "client_info",
|
|
6519
6850
|
kind: "message",
|
|
6520
|
-
T:
|
|
6851
|
+
T: ClientInfo
|
|
6521
6852
|
}, {
|
|
6522
6853
|
no: 2,
|
|
6523
|
-
name: "
|
|
6854
|
+
name: "connection_settings",
|
|
6524
6855
|
kind: "message",
|
|
6525
|
-
T:
|
|
6856
|
+
T: ConnectionSettings
|
|
6526
6857
|
}, {
|
|
6527
6858
|
no: 3,
|
|
6528
|
-
name: "
|
|
6529
|
-
kind: "message",
|
|
6530
|
-
T: ParticipantInfo,
|
|
6531
|
-
repeated: true
|
|
6532
|
-
}, {
|
|
6533
|
-
no: 4,
|
|
6534
|
-
name: "server_version",
|
|
6859
|
+
name: "metadata",
|
|
6535
6860
|
kind: "scalar",
|
|
6536
6861
|
T: 9
|
|
6537
6862
|
/* ScalarType.STRING */
|
|
6863
|
+
}, {
|
|
6864
|
+
no: 4,
|
|
6865
|
+
name: "participant_attributes",
|
|
6866
|
+
kind: "map",
|
|
6867
|
+
K: 9,
|
|
6868
|
+
V: {
|
|
6869
|
+
kind: "scalar",
|
|
6870
|
+
T: 9
|
|
6871
|
+
/* ScalarType.STRING */
|
|
6872
|
+
}
|
|
6538
6873
|
}, {
|
|
6539
6874
|
no: 5,
|
|
6540
|
-
name: "
|
|
6875
|
+
name: "add_track_requests",
|
|
6541
6876
|
kind: "message",
|
|
6542
|
-
T:
|
|
6877
|
+
T: AddTrackRequest,
|
|
6543
6878
|
repeated: true
|
|
6544
6879
|
}, {
|
|
6545
6880
|
no: 6,
|
|
6546
|
-
name: "
|
|
6547
|
-
kind: "
|
|
6548
|
-
T:
|
|
6549
|
-
/* ScalarType.BOOL */
|
|
6881
|
+
name: "publisher_offer",
|
|
6882
|
+
kind: "message",
|
|
6883
|
+
T: SessionDescription
|
|
6550
6884
|
}, {
|
|
6551
6885
|
no: 7,
|
|
6552
|
-
name: "
|
|
6886
|
+
name: "reconnect",
|
|
6553
6887
|
kind: "scalar",
|
|
6554
|
-
T:
|
|
6555
|
-
/* ScalarType.
|
|
6888
|
+
T: 8
|
|
6889
|
+
/* ScalarType.BOOL */
|
|
6556
6890
|
}, {
|
|
6557
6891
|
no: 8,
|
|
6558
|
-
name: "
|
|
6559
|
-
kind: "
|
|
6560
|
-
T:
|
|
6892
|
+
name: "reconnect_reason",
|
|
6893
|
+
kind: "enum",
|
|
6894
|
+
T: proto3.getEnumType(ReconnectReason)
|
|
6561
6895
|
}, {
|
|
6562
6896
|
no: 9,
|
|
6563
|
-
name: "
|
|
6897
|
+
name: "participant_sid",
|
|
6564
6898
|
kind: "scalar",
|
|
6565
6899
|
T: 9
|
|
6566
6900
|
/* ScalarType.STRING */
|
|
6567
6901
|
}, {
|
|
6568
6902
|
no: 10,
|
|
6569
|
-
name: "
|
|
6570
|
-
kind: "scalar",
|
|
6571
|
-
T: 5
|
|
6572
|
-
/* ScalarType.INT32 */
|
|
6573
|
-
}, {
|
|
6574
|
-
no: 11,
|
|
6575
|
-
name: "ping_interval",
|
|
6576
|
-
kind: "scalar",
|
|
6577
|
-
T: 5
|
|
6578
|
-
/* ScalarType.INT32 */
|
|
6579
|
-
}, {
|
|
6580
|
-
no: 12,
|
|
6581
|
-
name: "server_info",
|
|
6903
|
+
name: "sync_state",
|
|
6582
6904
|
kind: "message",
|
|
6583
|
-
T:
|
|
6905
|
+
T: SyncState
|
|
6906
|
+
}]);
|
|
6907
|
+
const WrappedJoinRequest = /* @__PURE__ */proto3.makeMessageType("livekit.WrappedJoinRequest", () => [{
|
|
6908
|
+
no: 1,
|
|
6909
|
+
name: "compression",
|
|
6910
|
+
kind: "enum",
|
|
6911
|
+
T: proto3.getEnumType(WrappedJoinRequest_Compression)
|
|
6584
6912
|
}, {
|
|
6585
|
-
no:
|
|
6586
|
-
name: "
|
|
6913
|
+
no: 2,
|
|
6914
|
+
name: "join_request",
|
|
6587
6915
|
kind: "scalar",
|
|
6588
6916
|
T: 12
|
|
6589
6917
|
/* ScalarType.BYTES */
|
|
6918
|
+
}]);
|
|
6919
|
+
const WrappedJoinRequest_Compression = /* @__PURE__ */proto3.makeEnum("livekit.WrappedJoinRequest.Compression", [{
|
|
6920
|
+
no: 0,
|
|
6921
|
+
name: "NONE"
|
|
6590
6922
|
}, {
|
|
6591
|
-
no:
|
|
6592
|
-
name: "
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6923
|
+
no: 1,
|
|
6924
|
+
name: "GZIP"
|
|
6925
|
+
}]);
|
|
6926
|
+
const MediaSectionsRequirement = /* @__PURE__ */proto3.makeMessageType("livekit.MediaSectionsRequirement", () => [{
|
|
6927
|
+
no: 1,
|
|
6928
|
+
name: "num_audios",
|
|
6929
|
+
kind: "scalar",
|
|
6930
|
+
T: 13
|
|
6931
|
+
/* ScalarType.UINT32 */
|
|
6596
6932
|
}, {
|
|
6597
|
-
no:
|
|
6598
|
-
name: "
|
|
6933
|
+
no: 2,
|
|
6934
|
+
name: "num_videos",
|
|
6599
6935
|
kind: "scalar",
|
|
6600
|
-
T:
|
|
6601
|
-
/* ScalarType.
|
|
6936
|
+
T: 13
|
|
6937
|
+
/* ScalarType.UINT32 */
|
|
6602
6938
|
}]);
|
|
6603
|
-
const
|
|
6939
|
+
const EncodedFileType = /* @__PURE__ */proto3.makeEnum("livekit.EncodedFileType", [{
|
|
6940
|
+
no: 0,
|
|
6941
|
+
name: "DEFAULT_FILETYPE"
|
|
6942
|
+
}, {
|
|
6604
6943
|
no: 1,
|
|
6605
|
-
name: "
|
|
6606
|
-
kind: "message",
|
|
6607
|
-
T: ICEServer,
|
|
6608
|
-
repeated: true
|
|
6944
|
+
name: "MP4"
|
|
6609
6945
|
}, {
|
|
6610
6946
|
no: 2,
|
|
6611
|
-
name: "
|
|
6612
|
-
kind: "message",
|
|
6613
|
-
T: ClientConfiguration
|
|
6947
|
+
name: "OGG"
|
|
6614
6948
|
}, {
|
|
6615
6949
|
no: 3,
|
|
6616
|
-
name: "
|
|
6617
|
-
|
|
6618
|
-
|
|
6950
|
+
name: "MP3"
|
|
6951
|
+
}]);
|
|
6952
|
+
const SegmentedFileProtocol = /* @__PURE__ */proto3.makeEnum("livekit.SegmentedFileProtocol", [{
|
|
6953
|
+
no: 0,
|
|
6954
|
+
name: "DEFAULT_SEGMENTED_FILE_PROTOCOL"
|
|
6619
6955
|
}, {
|
|
6620
|
-
no:
|
|
6621
|
-
name: "
|
|
6622
|
-
kind: "scalar",
|
|
6623
|
-
T: 13
|
|
6624
|
-
/* ScalarType.UINT32 */
|
|
6956
|
+
no: 1,
|
|
6957
|
+
name: "HLS_PROTOCOL"
|
|
6625
6958
|
}]);
|
|
6626
|
-
const
|
|
6959
|
+
const SegmentedFileSuffix = /* @__PURE__ */proto3.makeEnum("livekit.SegmentedFileSuffix", [{
|
|
6960
|
+
no: 0,
|
|
6961
|
+
name: "INDEX"
|
|
6962
|
+
}, {
|
|
6627
6963
|
no: 1,
|
|
6628
|
-
name: "
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6964
|
+
name: "TIMESTAMP"
|
|
6965
|
+
}]);
|
|
6966
|
+
const ImageFileSuffix = /* @__PURE__ */proto3.makeEnum("livekit.ImageFileSuffix", [{
|
|
6967
|
+
no: 0,
|
|
6968
|
+
name: "IMAGE_SUFFIX_INDEX"
|
|
6969
|
+
}, {
|
|
6970
|
+
no: 1,
|
|
6971
|
+
name: "IMAGE_SUFFIX_TIMESTAMP"
|
|
6632
6972
|
}, {
|
|
6633
6973
|
no: 2,
|
|
6634
|
-
name: "
|
|
6635
|
-
kind: "message",
|
|
6636
|
-
T: TrackInfo
|
|
6974
|
+
name: "IMAGE_SUFFIX_NONE_OVERWRITE"
|
|
6637
6975
|
}]);
|
|
6638
|
-
const
|
|
6976
|
+
const StreamProtocol = /* @__PURE__ */proto3.makeEnum("livekit.StreamProtocol", [{
|
|
6977
|
+
no: 0,
|
|
6978
|
+
name: "DEFAULT_PROTOCOL"
|
|
6979
|
+
}, {
|
|
6639
6980
|
no: 1,
|
|
6640
|
-
name: "
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6981
|
+
name: "RTMP"
|
|
6982
|
+
}, {
|
|
6983
|
+
no: 2,
|
|
6984
|
+
name: "SRT"
|
|
6644
6985
|
}]);
|
|
6645
|
-
const
|
|
6986
|
+
const AudioMixing = /* @__PURE__ */proto3.makeEnum("livekit.AudioMixing", [{
|
|
6987
|
+
no: 0,
|
|
6988
|
+
name: "DEFAULT_MIXING"
|
|
6989
|
+
}, {
|
|
6646
6990
|
no: 1,
|
|
6647
|
-
name: "
|
|
6991
|
+
name: "DUAL_CHANNEL_AGENT"
|
|
6992
|
+
}, {
|
|
6993
|
+
no: 2,
|
|
6994
|
+
name: "DUAL_CHANNEL_ALTERNATE"
|
|
6995
|
+
}]);
|
|
6996
|
+
const EncodingOptionsPreset = /* @__PURE__ */proto3.makeEnum("livekit.EncodingOptionsPreset", [{
|
|
6997
|
+
no: 0,
|
|
6998
|
+
name: "H264_720P_30"
|
|
6999
|
+
}, {
|
|
7000
|
+
no: 1,
|
|
7001
|
+
name: "H264_720P_60"
|
|
7002
|
+
}, {
|
|
7003
|
+
no: 2,
|
|
7004
|
+
name: "H264_1080P_30"
|
|
7005
|
+
}, {
|
|
7006
|
+
no: 3,
|
|
7007
|
+
name: "H264_1080P_60"
|
|
7008
|
+
}, {
|
|
7009
|
+
no: 4,
|
|
7010
|
+
name: "PORTRAIT_H264_720P_30"
|
|
7011
|
+
}, {
|
|
7012
|
+
no: 5,
|
|
7013
|
+
name: "PORTRAIT_H264_720P_60"
|
|
7014
|
+
}, {
|
|
7015
|
+
no: 6,
|
|
7016
|
+
name: "PORTRAIT_H264_1080P_30"
|
|
7017
|
+
}, {
|
|
7018
|
+
no: 7,
|
|
7019
|
+
name: "PORTRAIT_H264_1080P_60"
|
|
7020
|
+
}]);
|
|
7021
|
+
const RoomCompositeEgressRequest = /* @__PURE__ */proto3.makeMessageType("livekit.RoomCompositeEgressRequest", () => [{
|
|
7022
|
+
no: 1,
|
|
7023
|
+
name: "room_name",
|
|
6648
7024
|
kind: "scalar",
|
|
6649
7025
|
T: 9
|
|
6650
7026
|
/* ScalarType.STRING */
|
|
6651
7027
|
}, {
|
|
6652
7028
|
no: 2,
|
|
6653
|
-
name: "
|
|
7029
|
+
name: "layout",
|
|
6654
7030
|
kind: "scalar",
|
|
6655
7031
|
T: 9
|
|
6656
7032
|
/* ScalarType.STRING */
|
|
6657
7033
|
}, {
|
|
6658
7034
|
no: 3,
|
|
6659
|
-
name: "
|
|
7035
|
+
name: "audio_only",
|
|
6660
7036
|
kind: "scalar",
|
|
6661
|
-
T:
|
|
6662
|
-
/* ScalarType.
|
|
7037
|
+
T: 8
|
|
7038
|
+
/* ScalarType.BOOL */
|
|
7039
|
+
}, {
|
|
7040
|
+
no: 15,
|
|
7041
|
+
name: "audio_mixing",
|
|
7042
|
+
kind: "enum",
|
|
7043
|
+
T: proto3.getEnumType(AudioMixing)
|
|
6663
7044
|
}, {
|
|
6664
7045
|
no: 4,
|
|
6665
|
-
name: "
|
|
6666
|
-
kind: "
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
7046
|
+
name: "video_only",
|
|
7047
|
+
kind: "scalar",
|
|
7048
|
+
T: 8
|
|
7049
|
+
/* ScalarType.BOOL */
|
|
7050
|
+
}, {
|
|
7051
|
+
no: 5,
|
|
7052
|
+
name: "custom_base_url",
|
|
7053
|
+
kind: "scalar",
|
|
7054
|
+
T: 9
|
|
7055
|
+
/* ScalarType.STRING */
|
|
7056
|
+
}, {
|
|
7057
|
+
no: 6,
|
|
7058
|
+
name: "file",
|
|
7059
|
+
kind: "message",
|
|
7060
|
+
T: EncodedFileOutput,
|
|
7061
|
+
oneof: "output"
|
|
7062
|
+
}, {
|
|
7063
|
+
no: 7,
|
|
7064
|
+
name: "stream",
|
|
7065
|
+
kind: "message",
|
|
7066
|
+
T: StreamOutput,
|
|
7067
|
+
oneof: "output"
|
|
7068
|
+
}, {
|
|
7069
|
+
no: 10,
|
|
7070
|
+
name: "segments",
|
|
7071
|
+
kind: "message",
|
|
7072
|
+
T: SegmentedFileOutput,
|
|
7073
|
+
oneof: "output"
|
|
7074
|
+
}, {
|
|
7075
|
+
no: 8,
|
|
7076
|
+
name: "preset",
|
|
7077
|
+
kind: "enum",
|
|
7078
|
+
T: proto3.getEnumType(EncodingOptionsPreset),
|
|
7079
|
+
oneof: "options"
|
|
7080
|
+
}, {
|
|
7081
|
+
no: 9,
|
|
7082
|
+
name: "advanced",
|
|
7083
|
+
kind: "message",
|
|
7084
|
+
T: EncodingOptions,
|
|
7085
|
+
oneof: "options"
|
|
7086
|
+
}, {
|
|
7087
|
+
no: 11,
|
|
7088
|
+
name: "file_outputs",
|
|
7089
|
+
kind: "message",
|
|
7090
|
+
T: EncodedFileOutput,
|
|
7091
|
+
repeated: true
|
|
7092
|
+
}, {
|
|
7093
|
+
no: 12,
|
|
7094
|
+
name: "stream_outputs",
|
|
6677
7095
|
kind: "message",
|
|
6678
|
-
T:
|
|
7096
|
+
T: StreamOutput,
|
|
6679
7097
|
repeated: true
|
|
6680
|
-
}
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
T: 9,
|
|
7098
|
+
}, {
|
|
7099
|
+
no: 13,
|
|
7100
|
+
name: "segment_outputs",
|
|
7101
|
+
kind: "message",
|
|
7102
|
+
T: SegmentedFileOutput,
|
|
6686
7103
|
repeated: true
|
|
6687
7104
|
}, {
|
|
6688
|
-
no:
|
|
6689
|
-
name: "
|
|
6690
|
-
kind: "
|
|
6691
|
-
T:
|
|
6692
|
-
|
|
7105
|
+
no: 14,
|
|
7106
|
+
name: "image_outputs",
|
|
7107
|
+
kind: "message",
|
|
7108
|
+
T: ImageOutput,
|
|
7109
|
+
repeated: true
|
|
6693
7110
|
}, {
|
|
6694
|
-
no:
|
|
6695
|
-
name: "
|
|
7111
|
+
no: 16,
|
|
7112
|
+
name: "webhooks",
|
|
6696
7113
|
kind: "message",
|
|
6697
|
-
T:
|
|
7114
|
+
T: WebhookConfig,
|
|
6698
7115
|
repeated: true
|
|
6699
7116
|
}]);
|
|
6700
|
-
const
|
|
7117
|
+
const EncodedFileOutput = /* @__PURE__ */proto3.makeMessageType("livekit.EncodedFileOutput", () => [{
|
|
6701
7118
|
no: 1,
|
|
6702
|
-
name: "
|
|
7119
|
+
name: "file_type",
|
|
7120
|
+
kind: "enum",
|
|
7121
|
+
T: proto3.getEnumType(EncodedFileType)
|
|
7122
|
+
}, {
|
|
7123
|
+
no: 2,
|
|
7124
|
+
name: "filepath",
|
|
6703
7125
|
kind: "scalar",
|
|
6704
|
-
T: 9
|
|
6705
|
-
|
|
7126
|
+
T: 9
|
|
7127
|
+
/* ScalarType.STRING */
|
|
6706
7128
|
}, {
|
|
6707
|
-
no:
|
|
6708
|
-
name: "
|
|
7129
|
+
no: 6,
|
|
7130
|
+
name: "disable_manifest",
|
|
6709
7131
|
kind: "scalar",
|
|
6710
7132
|
T: 8
|
|
6711
7133
|
/* ScalarType.BOOL */
|
|
7134
|
+
}, {
|
|
7135
|
+
no: 3,
|
|
7136
|
+
name: "s3",
|
|
7137
|
+
kind: "message",
|
|
7138
|
+
T: S3Upload,
|
|
7139
|
+
oneof: "output"
|
|
6712
7140
|
}, {
|
|
6713
7141
|
no: 4,
|
|
6714
|
-
name: "
|
|
6715
|
-
kind: "
|
|
6716
|
-
T:
|
|
7142
|
+
name: "gcp",
|
|
7143
|
+
kind: "message",
|
|
7144
|
+
T: GCPUpload,
|
|
7145
|
+
oneof: "output"
|
|
6717
7146
|
}, {
|
|
6718
7147
|
no: 5,
|
|
6719
|
-
name: "
|
|
6720
|
-
kind: "
|
|
6721
|
-
T:
|
|
6722
|
-
|
|
6723
|
-
}, {
|
|
6724
|
-
no: 6,
|
|
6725
|
-
name: "height",
|
|
6726
|
-
kind: "scalar",
|
|
6727
|
-
T: 13
|
|
6728
|
-
/* ScalarType.UINT32 */
|
|
7148
|
+
name: "azure",
|
|
7149
|
+
kind: "message",
|
|
7150
|
+
T: AzureBlobUpload,
|
|
7151
|
+
oneof: "output"
|
|
6729
7152
|
}, {
|
|
6730
7153
|
no: 7,
|
|
6731
|
-
name: "
|
|
6732
|
-
kind: "
|
|
6733
|
-
T:
|
|
6734
|
-
|
|
6735
|
-
}, {
|
|
6736
|
-
no: 8,
|
|
6737
|
-
name: "priority",
|
|
6738
|
-
kind: "scalar",
|
|
6739
|
-
T: 13
|
|
6740
|
-
/* ScalarType.UINT32 */
|
|
7154
|
+
name: "aliOSS",
|
|
7155
|
+
kind: "message",
|
|
7156
|
+
T: AliOSSUpload,
|
|
7157
|
+
oneof: "output"
|
|
6741
7158
|
}]);
|
|
6742
|
-
const
|
|
7159
|
+
const SegmentedFileOutput = /* @__PURE__ */proto3.makeMessageType("livekit.SegmentedFileOutput", () => [{
|
|
6743
7160
|
no: 1,
|
|
6744
|
-
name: "
|
|
7161
|
+
name: "protocol",
|
|
7162
|
+
kind: "enum",
|
|
7163
|
+
T: proto3.getEnumType(SegmentedFileProtocol)
|
|
7164
|
+
}, {
|
|
7165
|
+
no: 2,
|
|
7166
|
+
name: "filename_prefix",
|
|
6745
7167
|
kind: "scalar",
|
|
6746
7168
|
T: 9
|
|
6747
7169
|
/* ScalarType.STRING */
|
|
6748
7170
|
}, {
|
|
6749
|
-
no:
|
|
6750
|
-
name: "
|
|
6751
|
-
kind: "enum",
|
|
6752
|
-
T: proto3.getEnumType(AudioTrackFeature),
|
|
6753
|
-
repeated: true
|
|
6754
|
-
}]);
|
|
6755
|
-
const UpdateLocalVideoTrack = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateLocalVideoTrack", () => [{
|
|
6756
|
-
no: 1,
|
|
6757
|
-
name: "track_sid",
|
|
7171
|
+
no: 3,
|
|
7172
|
+
name: "playlist_name",
|
|
6758
7173
|
kind: "scalar",
|
|
6759
7174
|
T: 9
|
|
6760
7175
|
/* ScalarType.STRING */
|
|
6761
7176
|
}, {
|
|
6762
|
-
no:
|
|
6763
|
-
name: "
|
|
7177
|
+
no: 11,
|
|
7178
|
+
name: "live_playlist_name",
|
|
6764
7179
|
kind: "scalar",
|
|
6765
|
-
T:
|
|
6766
|
-
/* ScalarType.
|
|
7180
|
+
T: 9
|
|
7181
|
+
/* ScalarType.STRING */
|
|
6767
7182
|
}, {
|
|
6768
|
-
no:
|
|
6769
|
-
name: "
|
|
7183
|
+
no: 4,
|
|
7184
|
+
name: "segment_duration",
|
|
6770
7185
|
kind: "scalar",
|
|
6771
7186
|
T: 13
|
|
6772
7187
|
/* ScalarType.UINT32 */
|
|
6773
|
-
}
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
7188
|
+
}, {
|
|
7189
|
+
no: 10,
|
|
7190
|
+
name: "filename_suffix",
|
|
7191
|
+
kind: "enum",
|
|
7192
|
+
T: proto3.getEnumType(SegmentedFileSuffix)
|
|
7193
|
+
}, {
|
|
7194
|
+
no: 8,
|
|
7195
|
+
name: "disable_manifest",
|
|
6777
7196
|
kind: "scalar",
|
|
6778
7197
|
T: 8
|
|
6779
7198
|
/* ScalarType.BOOL */
|
|
6780
7199
|
}, {
|
|
6781
|
-
no:
|
|
6782
|
-
name: "
|
|
6783
|
-
kind: "
|
|
6784
|
-
T:
|
|
6785
|
-
|
|
6786
|
-
no: 3,
|
|
6787
|
-
name: "action",
|
|
6788
|
-
kind: "enum",
|
|
6789
|
-
T: proto3.getEnumType(LeaveRequest_Action)
|
|
7200
|
+
no: 5,
|
|
7201
|
+
name: "s3",
|
|
7202
|
+
kind: "message",
|
|
7203
|
+
T: S3Upload,
|
|
7204
|
+
oneof: "output"
|
|
6790
7205
|
}, {
|
|
6791
|
-
no:
|
|
6792
|
-
name: "
|
|
7206
|
+
no: 6,
|
|
7207
|
+
name: "gcp",
|
|
6793
7208
|
kind: "message",
|
|
6794
|
-
T:
|
|
6795
|
-
|
|
6796
|
-
const LeaveRequest_Action = /* @__PURE__ */proto3.makeEnum("livekit.LeaveRequest.Action", [{
|
|
6797
|
-
no: 0,
|
|
6798
|
-
name: "DISCONNECT"
|
|
7209
|
+
T: GCPUpload,
|
|
7210
|
+
oneof: "output"
|
|
6799
7211
|
}, {
|
|
6800
|
-
no:
|
|
6801
|
-
name: "
|
|
7212
|
+
no: 7,
|
|
7213
|
+
name: "azure",
|
|
7214
|
+
kind: "message",
|
|
7215
|
+
T: AzureBlobUpload,
|
|
7216
|
+
oneof: "output"
|
|
6802
7217
|
}, {
|
|
6803
|
-
no:
|
|
6804
|
-
name: "
|
|
7218
|
+
no: 9,
|
|
7219
|
+
name: "aliOSS",
|
|
7220
|
+
kind: "message",
|
|
7221
|
+
T: AliOSSUpload,
|
|
7222
|
+
oneof: "output"
|
|
6805
7223
|
}]);
|
|
6806
|
-
const
|
|
7224
|
+
const ImageOutput = /* @__PURE__ */proto3.makeMessageType("livekit.ImageOutput", () => [{
|
|
6807
7225
|
no: 1,
|
|
6808
|
-
name: "
|
|
7226
|
+
name: "capture_interval",
|
|
6809
7227
|
kind: "scalar",
|
|
6810
|
-
T:
|
|
6811
|
-
/* ScalarType.
|
|
7228
|
+
T: 13
|
|
7229
|
+
/* ScalarType.UINT32 */
|
|
6812
7230
|
}, {
|
|
6813
7231
|
no: 2,
|
|
6814
|
-
name: "
|
|
6815
|
-
kind: "message",
|
|
6816
|
-
T: VideoLayer,
|
|
6817
|
-
repeated: true
|
|
6818
|
-
}]);
|
|
6819
|
-
const UpdateParticipantMetadata = /* @__PURE__ */proto3.makeMessageType("livekit.UpdateParticipantMetadata", () => [{
|
|
6820
|
-
no: 1,
|
|
6821
|
-
name: "metadata",
|
|
7232
|
+
name: "width",
|
|
6822
7233
|
kind: "scalar",
|
|
6823
|
-
T:
|
|
6824
|
-
/* ScalarType.
|
|
7234
|
+
T: 5
|
|
7235
|
+
/* ScalarType.INT32 */
|
|
6825
7236
|
}, {
|
|
6826
|
-
no:
|
|
6827
|
-
name: "
|
|
7237
|
+
no: 3,
|
|
7238
|
+
name: "height",
|
|
7239
|
+
kind: "scalar",
|
|
7240
|
+
T: 5
|
|
7241
|
+
/* ScalarType.INT32 */
|
|
7242
|
+
}, {
|
|
7243
|
+
no: 4,
|
|
7244
|
+
name: "filename_prefix",
|
|
6828
7245
|
kind: "scalar",
|
|
6829
7246
|
T: 9
|
|
6830
7247
|
/* ScalarType.STRING */
|
|
6831
7248
|
}, {
|
|
6832
|
-
no:
|
|
6833
|
-
name: "
|
|
6834
|
-
kind: "
|
|
6835
|
-
|
|
6836
|
-
V: {
|
|
6837
|
-
kind: "scalar",
|
|
6838
|
-
T: 9
|
|
6839
|
-
/* ScalarType.STRING */
|
|
6840
|
-
}
|
|
7249
|
+
no: 5,
|
|
7250
|
+
name: "filename_suffix",
|
|
7251
|
+
kind: "enum",
|
|
7252
|
+
T: proto3.getEnumType(ImageFileSuffix)
|
|
6841
7253
|
}, {
|
|
6842
|
-
no:
|
|
6843
|
-
name: "
|
|
7254
|
+
no: 6,
|
|
7255
|
+
name: "image_codec",
|
|
7256
|
+
kind: "enum",
|
|
7257
|
+
T: proto3.getEnumType(ImageCodec)
|
|
7258
|
+
}, {
|
|
7259
|
+
no: 7,
|
|
7260
|
+
name: "disable_manifest",
|
|
6844
7261
|
kind: "scalar",
|
|
6845
|
-
T:
|
|
6846
|
-
/* ScalarType.
|
|
7262
|
+
T: 8
|
|
7263
|
+
/* ScalarType.BOOL */
|
|
7264
|
+
}, {
|
|
7265
|
+
no: 8,
|
|
7266
|
+
name: "s3",
|
|
7267
|
+
kind: "message",
|
|
7268
|
+
T: S3Upload,
|
|
7269
|
+
oneof: "output"
|
|
7270
|
+
}, {
|
|
7271
|
+
no: 9,
|
|
7272
|
+
name: "gcp",
|
|
7273
|
+
kind: "message",
|
|
7274
|
+
T: GCPUpload,
|
|
7275
|
+
oneof: "output"
|
|
7276
|
+
}, {
|
|
7277
|
+
no: 10,
|
|
7278
|
+
name: "azure",
|
|
7279
|
+
kind: "message",
|
|
7280
|
+
T: AzureBlobUpload,
|
|
7281
|
+
oneof: "output"
|
|
7282
|
+
}, {
|
|
7283
|
+
no: 11,
|
|
7284
|
+
name: "aliOSS",
|
|
7285
|
+
kind: "message",
|
|
7286
|
+
T: AliOSSUpload,
|
|
7287
|
+
oneof: "output"
|
|
6847
7288
|
}]);
|
|
6848
|
-
const
|
|
7289
|
+
const S3Upload = /* @__PURE__ */proto3.makeMessageType("livekit.S3Upload", () => [{
|
|
6849
7290
|
no: 1,
|
|
6850
|
-
name: "
|
|
7291
|
+
name: "access_key",
|
|
6851
7292
|
kind: "scalar",
|
|
6852
|
-
T: 9
|
|
6853
|
-
|
|
7293
|
+
T: 9
|
|
7294
|
+
/* ScalarType.STRING */
|
|
6854
7295
|
}, {
|
|
6855
7296
|
no: 2,
|
|
6856
|
-
name: "
|
|
7297
|
+
name: "secret",
|
|
6857
7298
|
kind: "scalar",
|
|
6858
7299
|
T: 9
|
|
6859
7300
|
/* ScalarType.STRING */
|
|
6860
7301
|
}, {
|
|
6861
|
-
no:
|
|
6862
|
-
name: "
|
|
7302
|
+
no: 11,
|
|
7303
|
+
name: "session_token",
|
|
6863
7304
|
kind: "scalar",
|
|
6864
7305
|
T: 9
|
|
6865
7306
|
/* ScalarType.STRING */
|
|
6866
|
-
}
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
name: "speakers",
|
|
6870
|
-
kind: "message",
|
|
6871
|
-
T: SpeakerInfo,
|
|
6872
|
-
repeated: true
|
|
6873
|
-
}]);
|
|
6874
|
-
const RoomUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.RoomUpdate", () => [{
|
|
6875
|
-
no: 1,
|
|
6876
|
-
name: "room",
|
|
6877
|
-
kind: "message",
|
|
6878
|
-
T: Room$1
|
|
6879
|
-
}]);
|
|
6880
|
-
const ConnectionQualityInfo = /* @__PURE__ */proto3.makeMessageType("livekit.ConnectionQualityInfo", () => [{
|
|
6881
|
-
no: 1,
|
|
6882
|
-
name: "participant_sid",
|
|
7307
|
+
}, {
|
|
7308
|
+
no: 12,
|
|
7309
|
+
name: "assume_role_arn",
|
|
6883
7310
|
kind: "scalar",
|
|
6884
7311
|
T: 9
|
|
6885
7312
|
/* ScalarType.STRING */
|
|
6886
7313
|
}, {
|
|
6887
|
-
no:
|
|
6888
|
-
name: "
|
|
6889
|
-
kind: "
|
|
6890
|
-
T:
|
|
7314
|
+
no: 13,
|
|
7315
|
+
name: "assume_role_external_id",
|
|
7316
|
+
kind: "scalar",
|
|
7317
|
+
T: 9
|
|
7318
|
+
/* ScalarType.STRING */
|
|
6891
7319
|
}, {
|
|
6892
7320
|
no: 3,
|
|
6893
|
-
name: "
|
|
6894
|
-
kind: "scalar",
|
|
6895
|
-
T: 2
|
|
6896
|
-
/* ScalarType.FLOAT */
|
|
6897
|
-
}]);
|
|
6898
|
-
const ConnectionQualityUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.ConnectionQualityUpdate", () => [{
|
|
6899
|
-
no: 1,
|
|
6900
|
-
name: "updates",
|
|
6901
|
-
kind: "message",
|
|
6902
|
-
T: ConnectionQualityInfo,
|
|
6903
|
-
repeated: true
|
|
6904
|
-
}]);
|
|
6905
|
-
const StreamStateInfo = /* @__PURE__ */proto3.makeMessageType("livekit.StreamStateInfo", () => [{
|
|
6906
|
-
no: 1,
|
|
6907
|
-
name: "participant_sid",
|
|
7321
|
+
name: "region",
|
|
6908
7322
|
kind: "scalar",
|
|
6909
7323
|
T: 9
|
|
6910
7324
|
/* ScalarType.STRING */
|
|
6911
7325
|
}, {
|
|
6912
|
-
no:
|
|
6913
|
-
name: "
|
|
7326
|
+
no: 4,
|
|
7327
|
+
name: "endpoint",
|
|
6914
7328
|
kind: "scalar",
|
|
6915
7329
|
T: 9
|
|
6916
7330
|
/* ScalarType.STRING */
|
|
6917
7331
|
}, {
|
|
6918
|
-
no:
|
|
6919
|
-
name: "
|
|
6920
|
-
kind: "
|
|
6921
|
-
T:
|
|
6922
|
-
|
|
6923
|
-
const StreamStateUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.StreamStateUpdate", () => [{
|
|
6924
|
-
no: 1,
|
|
6925
|
-
name: "stream_states",
|
|
6926
|
-
kind: "message",
|
|
6927
|
-
T: StreamStateInfo,
|
|
6928
|
-
repeated: true
|
|
6929
|
-
}]);
|
|
6930
|
-
const SubscribedQuality = /* @__PURE__ */proto3.makeMessageType("livekit.SubscribedQuality", () => [{
|
|
6931
|
-
no: 1,
|
|
6932
|
-
name: "quality",
|
|
6933
|
-
kind: "enum",
|
|
6934
|
-
T: proto3.getEnumType(VideoQuality$1)
|
|
7332
|
+
no: 5,
|
|
7333
|
+
name: "bucket",
|
|
7334
|
+
kind: "scalar",
|
|
7335
|
+
T: 9
|
|
7336
|
+
/* ScalarType.STRING */
|
|
6935
7337
|
}, {
|
|
6936
|
-
no:
|
|
6937
|
-
name: "
|
|
7338
|
+
no: 6,
|
|
7339
|
+
name: "force_path_style",
|
|
6938
7340
|
kind: "scalar",
|
|
6939
7341
|
T: 8
|
|
6940
7342
|
/* ScalarType.BOOL */
|
|
6941
|
-
}
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
7343
|
+
}, {
|
|
7344
|
+
no: 7,
|
|
7345
|
+
name: "metadata",
|
|
7346
|
+
kind: "map",
|
|
7347
|
+
K: 9,
|
|
7348
|
+
V: {
|
|
7349
|
+
kind: "scalar",
|
|
7350
|
+
T: 9
|
|
7351
|
+
/* ScalarType.STRING */
|
|
7352
|
+
}
|
|
7353
|
+
}, {
|
|
7354
|
+
no: 8,
|
|
7355
|
+
name: "tagging",
|
|
6945
7356
|
kind: "scalar",
|
|
6946
7357
|
T: 9
|
|
6947
7358
|
/* ScalarType.STRING */
|
|
6948
7359
|
}, {
|
|
6949
|
-
no:
|
|
6950
|
-
name: "
|
|
6951
|
-
kind: "message",
|
|
6952
|
-
T: SubscribedQuality,
|
|
6953
|
-
repeated: true
|
|
6954
|
-
}]);
|
|
6955
|
-
const SubscribedQualityUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.SubscribedQualityUpdate", () => [{
|
|
6956
|
-
no: 1,
|
|
6957
|
-
name: "track_sid",
|
|
7360
|
+
no: 9,
|
|
7361
|
+
name: "content_disposition",
|
|
6958
7362
|
kind: "scalar",
|
|
6959
7363
|
T: 9
|
|
6960
7364
|
/* ScalarType.STRING */
|
|
6961
7365
|
}, {
|
|
6962
|
-
no:
|
|
6963
|
-
name: "
|
|
6964
|
-
kind: "message",
|
|
6965
|
-
T: SubscribedQuality,
|
|
6966
|
-
repeated: true
|
|
6967
|
-
}, {
|
|
6968
|
-
no: 3,
|
|
6969
|
-
name: "subscribed_codecs",
|
|
7366
|
+
no: 10,
|
|
7367
|
+
name: "proxy",
|
|
6970
7368
|
kind: "message",
|
|
6971
|
-
T:
|
|
6972
|
-
repeated: true
|
|
7369
|
+
T: ProxyConfig
|
|
6973
7370
|
}]);
|
|
6974
|
-
const
|
|
7371
|
+
const GCPUpload = /* @__PURE__ */proto3.makeMessageType("livekit.GCPUpload", () => [{
|
|
6975
7372
|
no: 1,
|
|
6976
|
-
name: "
|
|
7373
|
+
name: "credentials",
|
|
6977
7374
|
kind: "scalar",
|
|
6978
7375
|
T: 9
|
|
6979
7376
|
/* ScalarType.STRING */
|
|
6980
7377
|
}, {
|
|
6981
7378
|
no: 2,
|
|
6982
|
-
name: "
|
|
7379
|
+
name: "bucket",
|
|
7380
|
+
kind: "scalar",
|
|
7381
|
+
T: 9
|
|
7382
|
+
/* ScalarType.STRING */
|
|
7383
|
+
}, {
|
|
7384
|
+
no: 3,
|
|
7385
|
+
name: "proxy",
|
|
6983
7386
|
kind: "message",
|
|
6984
|
-
T:
|
|
6985
|
-
repeated: true
|
|
7387
|
+
T: ProxyConfig
|
|
6986
7388
|
}]);
|
|
6987
|
-
const
|
|
7389
|
+
const AzureBlobUpload = /* @__PURE__ */proto3.makeMessageType("livekit.AzureBlobUpload", () => [{
|
|
6988
7390
|
no: 1,
|
|
6989
|
-
name: "
|
|
7391
|
+
name: "account_name",
|
|
6990
7392
|
kind: "scalar",
|
|
6991
7393
|
T: 9
|
|
6992
7394
|
/* ScalarType.STRING */
|
|
6993
7395
|
}, {
|
|
6994
7396
|
no: 2,
|
|
6995
|
-
name: "
|
|
7397
|
+
name: "account_key",
|
|
6996
7398
|
kind: "scalar",
|
|
6997
|
-
T:
|
|
6998
|
-
/* ScalarType.
|
|
7399
|
+
T: 9
|
|
7400
|
+
/* ScalarType.STRING */
|
|
6999
7401
|
}, {
|
|
7000
7402
|
no: 3,
|
|
7001
|
-
name: "
|
|
7002
|
-
kind: "scalar",
|
|
7003
|
-
T: 9,
|
|
7004
|
-
repeated: true
|
|
7005
|
-
}, {
|
|
7006
|
-
no: 4,
|
|
7007
|
-
name: "participant_identity",
|
|
7403
|
+
name: "container_name",
|
|
7008
7404
|
kind: "scalar",
|
|
7009
7405
|
T: 9
|
|
7010
7406
|
/* ScalarType.STRING */
|
|
7011
7407
|
}]);
|
|
7012
|
-
const
|
|
7013
|
-
no: 1,
|
|
7014
|
-
name: "all_participants",
|
|
7015
|
-
kind: "scalar",
|
|
7016
|
-
T: 8
|
|
7017
|
-
/* ScalarType.BOOL */
|
|
7018
|
-
}, {
|
|
7019
|
-
no: 2,
|
|
7020
|
-
name: "track_permissions",
|
|
7021
|
-
kind: "message",
|
|
7022
|
-
T: TrackPermission,
|
|
7023
|
-
repeated: true
|
|
7024
|
-
}]);
|
|
7025
|
-
const SubscriptionPermissionUpdate = /* @__PURE__ */proto3.makeMessageType("livekit.SubscriptionPermissionUpdate", () => [{
|
|
7408
|
+
const AliOSSUpload = /* @__PURE__ */proto3.makeMessageType("livekit.AliOSSUpload", () => [{
|
|
7026
7409
|
no: 1,
|
|
7027
|
-
name: "
|
|
7410
|
+
name: "access_key",
|
|
7028
7411
|
kind: "scalar",
|
|
7029
7412
|
T: 9
|
|
7030
7413
|
/* ScalarType.STRING */
|
|
7031
7414
|
}, {
|
|
7032
7415
|
no: 2,
|
|
7033
|
-
name: "
|
|
7416
|
+
name: "secret",
|
|
7034
7417
|
kind: "scalar",
|
|
7035
7418
|
T: 9
|
|
7036
7419
|
/* ScalarType.STRING */
|
|
7037
7420
|
}, {
|
|
7038
7421
|
no: 3,
|
|
7039
|
-
name: "
|
|
7040
|
-
kind: "scalar",
|
|
7041
|
-
T: 8
|
|
7042
|
-
/* ScalarType.BOOL */
|
|
7043
|
-
}]);
|
|
7044
|
-
const RoomMovedResponse = /* @__PURE__ */proto3.makeMessageType("livekit.RoomMovedResponse", () => [{
|
|
7045
|
-
no: 1,
|
|
7046
|
-
name: "room",
|
|
7047
|
-
kind: "message",
|
|
7048
|
-
T: Room$1
|
|
7049
|
-
}, {
|
|
7050
|
-
no: 2,
|
|
7051
|
-
name: "token",
|
|
7422
|
+
name: "region",
|
|
7052
7423
|
kind: "scalar",
|
|
7053
7424
|
T: 9
|
|
7054
7425
|
/* ScalarType.STRING */
|
|
7055
|
-
}, {
|
|
7056
|
-
no: 3,
|
|
7057
|
-
name: "participant",
|
|
7058
|
-
kind: "message",
|
|
7059
|
-
T: ParticipantInfo
|
|
7060
|
-
}, {
|
|
7061
|
-
no: 4,
|
|
7062
|
-
name: "other_participants",
|
|
7063
|
-
kind: "message",
|
|
7064
|
-
T: ParticipantInfo,
|
|
7065
|
-
repeated: true
|
|
7066
|
-
}]);
|
|
7067
|
-
const SyncState = /* @__PURE__ */proto3.makeMessageType("livekit.SyncState", () => [{
|
|
7068
|
-
no: 1,
|
|
7069
|
-
name: "answer",
|
|
7070
|
-
kind: "message",
|
|
7071
|
-
T: SessionDescription
|
|
7072
|
-
}, {
|
|
7073
|
-
no: 2,
|
|
7074
|
-
name: "subscription",
|
|
7075
|
-
kind: "message",
|
|
7076
|
-
T: UpdateSubscription
|
|
7077
|
-
}, {
|
|
7078
|
-
no: 3,
|
|
7079
|
-
name: "publish_tracks",
|
|
7080
|
-
kind: "message",
|
|
7081
|
-
T: TrackPublishedResponse,
|
|
7082
|
-
repeated: true
|
|
7083
7426
|
}, {
|
|
7084
7427
|
no: 4,
|
|
7085
|
-
name: "
|
|
7086
|
-
kind: "message",
|
|
7087
|
-
T: DataChannelInfo,
|
|
7088
|
-
repeated: true
|
|
7089
|
-
}, {
|
|
7090
|
-
no: 5,
|
|
7091
|
-
name: "offer",
|
|
7092
|
-
kind: "message",
|
|
7093
|
-
T: SessionDescription
|
|
7094
|
-
}, {
|
|
7095
|
-
no: 6,
|
|
7096
|
-
name: "track_sids_disabled",
|
|
7097
|
-
kind: "scalar",
|
|
7098
|
-
T: 9,
|
|
7099
|
-
repeated: true
|
|
7100
|
-
}, {
|
|
7101
|
-
no: 7,
|
|
7102
|
-
name: "datachannel_receive_states",
|
|
7103
|
-
kind: "message",
|
|
7104
|
-
T: DataChannelReceiveState,
|
|
7105
|
-
repeated: true
|
|
7106
|
-
}]);
|
|
7107
|
-
const DataChannelReceiveState = /* @__PURE__ */proto3.makeMessageType("livekit.DataChannelReceiveState", () => [{
|
|
7108
|
-
no: 1,
|
|
7109
|
-
name: "publisher_sid",
|
|
7428
|
+
name: "endpoint",
|
|
7110
7429
|
kind: "scalar",
|
|
7111
7430
|
T: 9
|
|
7112
7431
|
/* ScalarType.STRING */
|
|
7113
7432
|
}, {
|
|
7114
|
-
no:
|
|
7115
|
-
name: "
|
|
7433
|
+
no: 5,
|
|
7434
|
+
name: "bucket",
|
|
7116
7435
|
kind: "scalar",
|
|
7117
|
-
T:
|
|
7118
|
-
/* ScalarType.
|
|
7436
|
+
T: 9
|
|
7437
|
+
/* ScalarType.STRING */
|
|
7119
7438
|
}]);
|
|
7120
|
-
const
|
|
7439
|
+
const ProxyConfig = /* @__PURE__ */proto3.makeMessageType("livekit.ProxyConfig", () => [{
|
|
7121
7440
|
no: 1,
|
|
7122
|
-
name: "
|
|
7441
|
+
name: "url",
|
|
7123
7442
|
kind: "scalar",
|
|
7124
7443
|
T: 9
|
|
7125
7444
|
/* ScalarType.STRING */
|
|
7126
7445
|
}, {
|
|
7127
7446
|
no: 2,
|
|
7128
|
-
name: "
|
|
7447
|
+
name: "username",
|
|
7129
7448
|
kind: "scalar",
|
|
7130
|
-
T:
|
|
7131
|
-
/* ScalarType.
|
|
7449
|
+
T: 9
|
|
7450
|
+
/* ScalarType.STRING */
|
|
7132
7451
|
}, {
|
|
7133
7452
|
no: 3,
|
|
7134
|
-
name: "
|
|
7453
|
+
name: "password",
|
|
7454
|
+
kind: "scalar",
|
|
7455
|
+
T: 9
|
|
7456
|
+
/* ScalarType.STRING */
|
|
7457
|
+
}]);
|
|
7458
|
+
const StreamOutput = /* @__PURE__ */proto3.makeMessageType("livekit.StreamOutput", () => [{
|
|
7459
|
+
no: 1,
|
|
7460
|
+
name: "protocol",
|
|
7135
7461
|
kind: "enum",
|
|
7136
|
-
T: proto3.getEnumType(
|
|
7462
|
+
T: proto3.getEnumType(StreamProtocol)
|
|
7463
|
+
}, {
|
|
7464
|
+
no: 2,
|
|
7465
|
+
name: "urls",
|
|
7466
|
+
kind: "scalar",
|
|
7467
|
+
T: 9,
|
|
7468
|
+
repeated: true
|
|
7137
7469
|
}]);
|
|
7138
|
-
const
|
|
7470
|
+
const EncodingOptions = /* @__PURE__ */proto3.makeMessageType("livekit.EncodingOptions", () => [{
|
|
7139
7471
|
no: 1,
|
|
7140
|
-
name: "
|
|
7472
|
+
name: "width",
|
|
7141
7473
|
kind: "scalar",
|
|
7142
|
-
T: 5
|
|
7143
|
-
|
|
7474
|
+
T: 5
|
|
7475
|
+
/* ScalarType.INT32 */
|
|
7144
7476
|
}, {
|
|
7145
7477
|
no: 2,
|
|
7146
|
-
name: "
|
|
7478
|
+
name: "height",
|
|
7147
7479
|
kind: "scalar",
|
|
7148
|
-
T:
|
|
7149
|
-
|
|
7480
|
+
T: 5
|
|
7481
|
+
/* ScalarType.INT32 */
|
|
7150
7482
|
}, {
|
|
7151
7483
|
no: 3,
|
|
7152
|
-
name: "
|
|
7484
|
+
name: "depth",
|
|
7153
7485
|
kind: "scalar",
|
|
7154
|
-
T:
|
|
7155
|
-
|
|
7486
|
+
T: 5
|
|
7487
|
+
/* ScalarType.INT32 */
|
|
7156
7488
|
}, {
|
|
7157
7489
|
no: 4,
|
|
7158
|
-
name: "
|
|
7490
|
+
name: "framerate",
|
|
7159
7491
|
kind: "scalar",
|
|
7160
|
-
T:
|
|
7161
|
-
|
|
7492
|
+
T: 5
|
|
7493
|
+
/* ScalarType.INT32 */
|
|
7162
7494
|
}, {
|
|
7163
7495
|
no: 5,
|
|
7164
|
-
name: "
|
|
7496
|
+
name: "audio_codec",
|
|
7165
7497
|
kind: "enum",
|
|
7166
|
-
T: proto3.getEnumType(
|
|
7167
|
-
oneof: "scenario"
|
|
7498
|
+
T: proto3.getEnumType(AudioCodec)
|
|
7168
7499
|
}, {
|
|
7169
7500
|
no: 6,
|
|
7170
|
-
name: "
|
|
7501
|
+
name: "audio_bitrate",
|
|
7171
7502
|
kind: "scalar",
|
|
7172
|
-
T:
|
|
7173
|
-
|
|
7503
|
+
T: 5
|
|
7504
|
+
/* ScalarType.INT32 */
|
|
7505
|
+
}, {
|
|
7506
|
+
no: 11,
|
|
7507
|
+
name: "audio_quality",
|
|
7508
|
+
kind: "scalar",
|
|
7509
|
+
T: 5
|
|
7510
|
+
/* ScalarType.INT32 */
|
|
7174
7511
|
}, {
|
|
7175
7512
|
no: 7,
|
|
7176
|
-
name: "
|
|
7513
|
+
name: "audio_frequency",
|
|
7177
7514
|
kind: "scalar",
|
|
7178
|
-
T:
|
|
7179
|
-
|
|
7515
|
+
T: 5
|
|
7516
|
+
/* ScalarType.INT32 */
|
|
7180
7517
|
}, {
|
|
7181
7518
|
no: 8,
|
|
7182
|
-
name: "
|
|
7183
|
-
kind: "
|
|
7184
|
-
T:
|
|
7185
|
-
oneof: "scenario"
|
|
7519
|
+
name: "video_codec",
|
|
7520
|
+
kind: "enum",
|
|
7521
|
+
T: proto3.getEnumType(VideoCodec)
|
|
7186
7522
|
}, {
|
|
7187
7523
|
no: 9,
|
|
7188
|
-
name: "
|
|
7189
|
-
kind: "scalar",
|
|
7190
|
-
T: 8,
|
|
7191
|
-
oneof: "scenario"
|
|
7192
|
-
}]);
|
|
7193
|
-
const Ping = /* @__PURE__ */proto3.makeMessageType("livekit.Ping", () => [{
|
|
7194
|
-
no: 1,
|
|
7195
|
-
name: "timestamp",
|
|
7524
|
+
name: "video_bitrate",
|
|
7196
7525
|
kind: "scalar",
|
|
7197
|
-
T:
|
|
7198
|
-
/* ScalarType.
|
|
7526
|
+
T: 5
|
|
7527
|
+
/* ScalarType.INT32 */
|
|
7199
7528
|
}, {
|
|
7200
|
-
no:
|
|
7201
|
-
name: "
|
|
7202
|
-
kind: "scalar",
|
|
7203
|
-
T: 3
|
|
7204
|
-
/* ScalarType.INT64 */
|
|
7205
|
-
}]);
|
|
7206
|
-
const Pong = /* @__PURE__ */proto3.makeMessageType("livekit.Pong", () => [{
|
|
7207
|
-
no: 1,
|
|
7208
|
-
name: "last_ping_timestamp",
|
|
7529
|
+
no: 12,
|
|
7530
|
+
name: "video_quality",
|
|
7209
7531
|
kind: "scalar",
|
|
7210
|
-
T:
|
|
7211
|
-
/* ScalarType.
|
|
7532
|
+
T: 5
|
|
7533
|
+
/* ScalarType.INT32 */
|
|
7212
7534
|
}, {
|
|
7213
|
-
no:
|
|
7214
|
-
name: "
|
|
7535
|
+
no: 10,
|
|
7536
|
+
name: "key_frame_interval",
|
|
7215
7537
|
kind: "scalar",
|
|
7216
|
-
T:
|
|
7217
|
-
/* ScalarType.
|
|
7218
|
-
}]);
|
|
7219
|
-
const RegionSettings = /* @__PURE__ */proto3.makeMessageType("livekit.RegionSettings", () => [{
|
|
7220
|
-
no: 1,
|
|
7221
|
-
name: "regions",
|
|
7222
|
-
kind: "message",
|
|
7223
|
-
T: RegionInfo,
|
|
7224
|
-
repeated: true
|
|
7538
|
+
T: 1
|
|
7539
|
+
/* ScalarType.DOUBLE */
|
|
7225
7540
|
}]);
|
|
7226
|
-
const
|
|
7541
|
+
const AutoParticipantEgress = /* @__PURE__ */proto3.makeMessageType("livekit.AutoParticipantEgress", () => [{
|
|
7227
7542
|
no: 1,
|
|
7228
|
-
name: "
|
|
7229
|
-
kind: "
|
|
7230
|
-
T:
|
|
7231
|
-
|
|
7543
|
+
name: "preset",
|
|
7544
|
+
kind: "enum",
|
|
7545
|
+
T: proto3.getEnumType(EncodingOptionsPreset),
|
|
7546
|
+
oneof: "options"
|
|
7232
7547
|
}, {
|
|
7233
7548
|
no: 2,
|
|
7234
|
-
name: "
|
|
7235
|
-
kind: "
|
|
7236
|
-
T:
|
|
7237
|
-
|
|
7549
|
+
name: "advanced",
|
|
7550
|
+
kind: "message",
|
|
7551
|
+
T: EncodingOptions,
|
|
7552
|
+
oneof: "options"
|
|
7238
7553
|
}, {
|
|
7239
7554
|
no: 3,
|
|
7240
|
-
name: "
|
|
7241
|
-
kind: "
|
|
7242
|
-
T:
|
|
7243
|
-
|
|
7555
|
+
name: "file_outputs",
|
|
7556
|
+
kind: "message",
|
|
7557
|
+
T: EncodedFileOutput,
|
|
7558
|
+
repeated: true
|
|
7559
|
+
}, {
|
|
7560
|
+
no: 4,
|
|
7561
|
+
name: "segment_outputs",
|
|
7562
|
+
kind: "message",
|
|
7563
|
+
T: SegmentedFileOutput,
|
|
7564
|
+
repeated: true
|
|
7244
7565
|
}]);
|
|
7245
|
-
const
|
|
7566
|
+
const AutoTrackEgress = /* @__PURE__ */proto3.makeMessageType("livekit.AutoTrackEgress", () => [{
|
|
7246
7567
|
no: 1,
|
|
7247
|
-
name: "
|
|
7568
|
+
name: "filepath",
|
|
7248
7569
|
kind: "scalar",
|
|
7249
7570
|
T: 9
|
|
7250
7571
|
/* ScalarType.STRING */
|
|
7251
7572
|
}, {
|
|
7252
|
-
no:
|
|
7253
|
-
name: "
|
|
7254
|
-
kind: "enum",
|
|
7255
|
-
T: proto3.getEnumType(SubscriptionError)
|
|
7256
|
-
}]);
|
|
7257
|
-
const RequestResponse = /* @__PURE__ */proto3.makeMessageType("livekit.RequestResponse", () => [{
|
|
7258
|
-
no: 1,
|
|
7259
|
-
name: "request_id",
|
|
7573
|
+
no: 5,
|
|
7574
|
+
name: "disable_manifest",
|
|
7260
7575
|
kind: "scalar",
|
|
7261
|
-
T:
|
|
7262
|
-
/* ScalarType.
|
|
7576
|
+
T: 8
|
|
7577
|
+
/* ScalarType.BOOL */
|
|
7263
7578
|
}, {
|
|
7264
7579
|
no: 2,
|
|
7265
|
-
name: "
|
|
7266
|
-
kind: "
|
|
7267
|
-
T:
|
|
7580
|
+
name: "s3",
|
|
7581
|
+
kind: "message",
|
|
7582
|
+
T: S3Upload,
|
|
7583
|
+
oneof: "output"
|
|
7268
7584
|
}, {
|
|
7269
7585
|
no: 3,
|
|
7270
|
-
name: "
|
|
7271
|
-
kind: "scalar",
|
|
7272
|
-
T: 9
|
|
7273
|
-
/* ScalarType.STRING */
|
|
7274
|
-
}, {
|
|
7275
|
-
no: 4,
|
|
7276
|
-
name: "trickle",
|
|
7586
|
+
name: "gcp",
|
|
7277
7587
|
kind: "message",
|
|
7278
|
-
T:
|
|
7279
|
-
oneof: "
|
|
7588
|
+
T: GCPUpload,
|
|
7589
|
+
oneof: "output"
|
|
7280
7590
|
}, {
|
|
7281
|
-
no:
|
|
7282
|
-
name: "
|
|
7591
|
+
no: 4,
|
|
7592
|
+
name: "azure",
|
|
7283
7593
|
kind: "message",
|
|
7284
|
-
T:
|
|
7285
|
-
oneof: "
|
|
7594
|
+
T: AzureBlobUpload,
|
|
7595
|
+
oneof: "output"
|
|
7286
7596
|
}, {
|
|
7287
7597
|
no: 6,
|
|
7288
|
-
name: "
|
|
7289
|
-
kind: "message",
|
|
7290
|
-
T: MuteTrackRequest,
|
|
7291
|
-
oneof: "request"
|
|
7292
|
-
}, {
|
|
7293
|
-
no: 7,
|
|
7294
|
-
name: "update_metadata",
|
|
7295
|
-
kind: "message",
|
|
7296
|
-
T: UpdateParticipantMetadata,
|
|
7297
|
-
oneof: "request"
|
|
7298
|
-
}, {
|
|
7299
|
-
no: 8,
|
|
7300
|
-
name: "update_audio_track",
|
|
7301
|
-
kind: "message",
|
|
7302
|
-
T: UpdateLocalAudioTrack,
|
|
7303
|
-
oneof: "request"
|
|
7304
|
-
}, {
|
|
7305
|
-
no: 9,
|
|
7306
|
-
name: "update_video_track",
|
|
7598
|
+
name: "aliOSS",
|
|
7307
7599
|
kind: "message",
|
|
7308
|
-
T:
|
|
7309
|
-
oneof: "
|
|
7600
|
+
T: AliOSSUpload,
|
|
7601
|
+
oneof: "output"
|
|
7310
7602
|
}]);
|
|
7311
|
-
const
|
|
7312
|
-
no: 0,
|
|
7313
|
-
name: "OK"
|
|
7314
|
-
}, {
|
|
7603
|
+
const RoomEgress = /* @__PURE__ */proto3.makeMessageType("livekit.RoomEgress", () => [{
|
|
7315
7604
|
no: 1,
|
|
7316
|
-
name: "
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
name: "NOT_ALLOWED"
|
|
7605
|
+
name: "room",
|
|
7606
|
+
kind: "message",
|
|
7607
|
+
T: RoomCompositeEgressRequest
|
|
7320
7608
|
}, {
|
|
7321
7609
|
no: 3,
|
|
7322
|
-
name: "
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
name: "QUEUED"
|
|
7326
|
-
}, {
|
|
7327
|
-
no: 5,
|
|
7328
|
-
name: "UNSUPPORTED_TYPE"
|
|
7610
|
+
name: "participant",
|
|
7611
|
+
kind: "message",
|
|
7612
|
+
T: AutoParticipantEgress
|
|
7329
7613
|
}, {
|
|
7330
|
-
no:
|
|
7331
|
-
name: "
|
|
7614
|
+
no: 2,
|
|
7615
|
+
name: "tracks",
|
|
7616
|
+
kind: "message",
|
|
7617
|
+
T: AutoTrackEgress
|
|
7332
7618
|
}]);
|
|
7333
|
-
const
|
|
7619
|
+
const RoomConfiguration = /* @__PURE__ */proto3.makeMessageType("livekit.RoomConfiguration", () => [{
|
|
7334
7620
|
no: 1,
|
|
7335
|
-
name: "
|
|
7621
|
+
name: "name",
|
|
7336
7622
|
kind: "scalar",
|
|
7337
7623
|
T: 9
|
|
7338
7624
|
/* ScalarType.STRING */
|
|
7339
|
-
}]);
|
|
7340
|
-
const ConnectionSettings = /* @__PURE__ */proto3.makeMessageType("livekit.ConnectionSettings", () => [{
|
|
7341
|
-
no: 1,
|
|
7342
|
-
name: "auto_subscribe",
|
|
7343
|
-
kind: "scalar",
|
|
7344
|
-
T: 8
|
|
7345
|
-
/* ScalarType.BOOL */
|
|
7346
7625
|
}, {
|
|
7347
7626
|
no: 2,
|
|
7348
|
-
name: "
|
|
7627
|
+
name: "empty_timeout",
|
|
7349
7628
|
kind: "scalar",
|
|
7350
|
-
T:
|
|
7351
|
-
/* ScalarType.
|
|
7629
|
+
T: 13
|
|
7630
|
+
/* ScalarType.UINT32 */
|
|
7352
7631
|
}, {
|
|
7353
7632
|
no: 3,
|
|
7354
|
-
name: "
|
|
7633
|
+
name: "departure_timeout",
|
|
7355
7634
|
kind: "scalar",
|
|
7356
|
-
T:
|
|
7357
|
-
|
|
7635
|
+
T: 13
|
|
7636
|
+
/* ScalarType.UINT32 */
|
|
7358
7637
|
}, {
|
|
7359
7638
|
no: 4,
|
|
7360
|
-
name: "
|
|
7639
|
+
name: "max_participants",
|
|
7361
7640
|
kind: "scalar",
|
|
7362
|
-
T:
|
|
7363
|
-
/* ScalarType.
|
|
7364
|
-
}]);
|
|
7365
|
-
const JoinRequest = /* @__PURE__ */proto3.makeMessageType("livekit.JoinRequest", () => [{
|
|
7366
|
-
no: 1,
|
|
7367
|
-
name: "client_info",
|
|
7368
|
-
kind: "message",
|
|
7369
|
-
T: ClientInfo
|
|
7370
|
-
}, {
|
|
7371
|
-
no: 2,
|
|
7372
|
-
name: "connection_settings",
|
|
7373
|
-
kind: "message",
|
|
7374
|
-
T: ConnectionSettings
|
|
7641
|
+
T: 13
|
|
7642
|
+
/* ScalarType.UINT32 */
|
|
7375
7643
|
}, {
|
|
7376
|
-
no:
|
|
7644
|
+
no: 11,
|
|
7377
7645
|
name: "metadata",
|
|
7378
7646
|
kind: "scalar",
|
|
7379
7647
|
T: 9
|
|
7380
7648
|
/* ScalarType.STRING */
|
|
7381
|
-
}, {
|
|
7382
|
-
no: 4,
|
|
7383
|
-
name: "participant_attributes",
|
|
7384
|
-
kind: "map",
|
|
7385
|
-
K: 9,
|
|
7386
|
-
V: {
|
|
7387
|
-
kind: "scalar",
|
|
7388
|
-
T: 9
|
|
7389
|
-
/* ScalarType.STRING */
|
|
7390
|
-
}
|
|
7391
7649
|
}, {
|
|
7392
7650
|
no: 5,
|
|
7393
|
-
name: "
|
|
7394
|
-
kind: "message",
|
|
7395
|
-
T: AddTrackRequest,
|
|
7396
|
-
repeated: true
|
|
7397
|
-
}, {
|
|
7398
|
-
no: 6,
|
|
7399
|
-
name: "publisher_offer",
|
|
7651
|
+
name: "egress",
|
|
7400
7652
|
kind: "message",
|
|
7401
|
-
T:
|
|
7653
|
+
T: RoomEgress
|
|
7402
7654
|
}, {
|
|
7403
7655
|
no: 7,
|
|
7404
|
-
name: "
|
|
7656
|
+
name: "min_playout_delay",
|
|
7405
7657
|
kind: "scalar",
|
|
7406
|
-
T:
|
|
7407
|
-
/* ScalarType.
|
|
7658
|
+
T: 13
|
|
7659
|
+
/* ScalarType.UINT32 */
|
|
7408
7660
|
}, {
|
|
7409
7661
|
no: 8,
|
|
7410
|
-
name: "
|
|
7411
|
-
kind: "
|
|
7412
|
-
T:
|
|
7662
|
+
name: "max_playout_delay",
|
|
7663
|
+
kind: "scalar",
|
|
7664
|
+
T: 13
|
|
7665
|
+
/* ScalarType.UINT32 */
|
|
7413
7666
|
}, {
|
|
7414
7667
|
no: 9,
|
|
7415
|
-
name: "
|
|
7668
|
+
name: "sync_streams",
|
|
7416
7669
|
kind: "scalar",
|
|
7417
|
-
T:
|
|
7418
|
-
/* ScalarType.
|
|
7670
|
+
T: 8
|
|
7671
|
+
/* ScalarType.BOOL */
|
|
7419
7672
|
}, {
|
|
7420
7673
|
no: 10,
|
|
7421
|
-
name: "
|
|
7674
|
+
name: "agents",
|
|
7422
7675
|
kind: "message",
|
|
7423
|
-
T:
|
|
7424
|
-
|
|
7425
|
-
const WrappedJoinRequest = /* @__PURE__ */proto3.makeMessageType("livekit.WrappedJoinRequest", () => [{
|
|
7426
|
-
no: 1,
|
|
7427
|
-
name: "compression",
|
|
7428
|
-
kind: "enum",
|
|
7429
|
-
T: proto3.getEnumType(WrappedJoinRequest_Compression)
|
|
7430
|
-
}, {
|
|
7431
|
-
no: 2,
|
|
7432
|
-
name: "join_request",
|
|
7433
|
-
kind: "scalar",
|
|
7434
|
-
T: 12
|
|
7435
|
-
/* ScalarType.BYTES */
|
|
7436
|
-
}]);
|
|
7437
|
-
const WrappedJoinRequest_Compression = /* @__PURE__ */proto3.makeEnum("livekit.WrappedJoinRequest.Compression", [{
|
|
7438
|
-
no: 0,
|
|
7439
|
-
name: "NONE"
|
|
7440
|
-
}, {
|
|
7441
|
-
no: 1,
|
|
7442
|
-
name: "GZIP"
|
|
7443
|
-
}]);
|
|
7444
|
-
const MediaSectionsRequirement = /* @__PURE__ */proto3.makeMessageType("livekit.MediaSectionsRequirement", () => [{
|
|
7445
|
-
no: 1,
|
|
7446
|
-
name: "num_audios",
|
|
7447
|
-
kind: "scalar",
|
|
7448
|
-
T: 13
|
|
7449
|
-
/* ScalarType.UINT32 */
|
|
7450
|
-
}, {
|
|
7451
|
-
no: 2,
|
|
7452
|
-
name: "num_videos",
|
|
7453
|
-
kind: "scalar",
|
|
7454
|
-
T: 13
|
|
7455
|
-
/* ScalarType.UINT32 */
|
|
7676
|
+
T: RoomAgentDispatch,
|
|
7677
|
+
repeated: true
|
|
7456
7678
|
}]);
|
|
7457
7679
|
const TokenSourceRequest = /* @__PURE__ */proto3.makeMessageType("livekit.TokenSourceRequest", () => [{
|
|
7458
7680
|
no: 1,
|
|
@@ -7851,6 +8073,7 @@ var LoggerNames;
|
|
|
7851
8073
|
LoggerNames["PCManager"] = "livekit-pc-manager";
|
|
7852
8074
|
LoggerNames["PCTransport"] = "livekit-pc-transport";
|
|
7853
8075
|
LoggerNames["E2EE"] = "lk-e2ee";
|
|
8076
|
+
LoggerNames["DataTracks"] = "livekit-data-tracks";
|
|
7854
8077
|
})(LoggerNames || (LoggerNames = {}));
|
|
7855
8078
|
let livekitLogger = loglevelExports.getLogger('livekit');
|
|
7856
8079
|
const livekitLoggers = Object.values(LoggerNames).map(name => loglevelExports.getLogger(name));
|
|
@@ -11295,7 +11518,8 @@ function adapterFactory() {
|
|
|
11295
11518
|
|
|
11296
11519
|
adapterFactory({
|
|
11297
11520
|
window: typeof window === 'undefined' ? undefined : window
|
|
11298
|
-
});
|
|
11521
|
+
});var _a, _b;
|
|
11522
|
+
class TypedPromise extends (_b = Promise) {
|
|
11299
11523
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
11300
11524
|
constructor(executor) {
|
|
11301
11525
|
super(executor);
|
|
@@ -11312,7 +11536,11 @@ adapterFactory({
|
|
|
11312
11536
|
static race(values) {
|
|
11313
11537
|
return super.race(values);
|
|
11314
11538
|
}
|
|
11315
|
-
}
|
|
11539
|
+
}
|
|
11540
|
+
_a = TypedPromise;
|
|
11541
|
+
TypedPromise.resolve = value => {
|
|
11542
|
+
return Reflect.get(_b, "resolve", _a).call(_a, value);
|
|
11543
|
+
};// tiny, simplified version of https://github.com/lancedikson/bowser/blob/master/src/parser-browsers.js
|
|
11316
11544
|
// reduced to only differentiate Chrome(ium) based browsers / Firefox / Safari
|
|
11317
11545
|
const commonVersionIdentifier = /version\/(\d+(\.?_?\d+)+)/i;
|
|
11318
11546
|
let browserDetails;
|
|
@@ -11378,14 +11606,23 @@ function getMatch(exp, ua) {
|
|
|
11378
11606
|
}
|
|
11379
11607
|
function getOSVersion(ua) {
|
|
11380
11608
|
return ua.includes('mac os') ? getMatch(/\(.+?(\d+_\d+(:?_\d+)?)/, ua, 1).replace(/_/g, '.') : undefined;
|
|
11381
|
-
}var version$1 = "2.17.
|
|
11382
|
-
const protocolVersion = 16
|
|
11383
|
-
|
|
11384
|
-
|
|
11609
|
+
}var version$1 = "2.17.2";const version = version$1;
|
|
11610
|
+
const protocolVersion = 16;/** Base error that all LiveKit specific custom errors inherit from. */
|
|
11611
|
+
class LivekitError extends Error {
|
|
11612
|
+
constructor(code, message, options) {
|
|
11613
|
+
super(message || 'an error has occurred');
|
|
11385
11614
|
this.name = 'LiveKitError';
|
|
11386
11615
|
this.code = code;
|
|
11616
|
+
if (typeof (options === null || options === void 0 ? void 0 : options.cause) !== 'undefined') {
|
|
11617
|
+
this.cause = options === null || options === void 0 ? void 0 : options.cause;
|
|
11618
|
+
}
|
|
11387
11619
|
}
|
|
11388
11620
|
}
|
|
11621
|
+
/**
|
|
11622
|
+
* LiveKit specific error type representing an error with an associated set of reasons.
|
|
11623
|
+
* Use this to represent an error with multiple different but contextually related variants.
|
|
11624
|
+
* */
|
|
11625
|
+
class LivekitReasonedError extends LivekitError {}
|
|
11389
11626
|
class SimulatedError extends LivekitError {
|
|
11390
11627
|
constructor() {
|
|
11391
11628
|
let message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Simulated failure';
|
|
@@ -11404,7 +11641,7 @@ var ConnectionErrorReason;
|
|
|
11404
11641
|
ConnectionErrorReason[ConnectionErrorReason["WebSocket"] = 6] = "WebSocket";
|
|
11405
11642
|
ConnectionErrorReason[ConnectionErrorReason["ServiceNotFound"] = 7] = "ServiceNotFound";
|
|
11406
11643
|
})(ConnectionErrorReason || (ConnectionErrorReason = {}));
|
|
11407
|
-
class ConnectionError extends
|
|
11644
|
+
class ConnectionError extends LivekitReasonedError {
|
|
11408
11645
|
constructor(message, reason, status, context) {
|
|
11409
11646
|
super(1, message);
|
|
11410
11647
|
this.name = 'ConnectionError';
|
|
@@ -11481,7 +11718,7 @@ class PublishTrackError extends LivekitError {
|
|
|
11481
11718
|
this.status = status;
|
|
11482
11719
|
}
|
|
11483
11720
|
}
|
|
11484
|
-
class SignalRequestError extends
|
|
11721
|
+
class SignalRequestError extends LivekitReasonedError {
|
|
11485
11722
|
constructor(message, reason) {
|
|
11486
11723
|
super(15, message);
|
|
11487
11724
|
this.name = 'SignalRequestError';
|
|
@@ -11507,7 +11744,7 @@ var DataStreamErrorReason;
|
|
|
11507
11744
|
// Encryption type mismatch.
|
|
11508
11745
|
DataStreamErrorReason[DataStreamErrorReason["EncryptionTypeMismatch"] = 8] = "EncryptionTypeMismatch";
|
|
11509
11746
|
})(DataStreamErrorReason || (DataStreamErrorReason = {}));
|
|
11510
|
-
class DataStreamError extends
|
|
11747
|
+
class DataStreamError extends LivekitReasonedError {
|
|
11511
11748
|
constructor(message, reason) {
|
|
11512
11749
|
super(16, message);
|
|
11513
11750
|
this.name = 'DataStreamError';
|
|
@@ -13883,8 +14120,10 @@ class ExternalE2EEKeyProvider extends BaseKeyProvider {
|
|
|
13883
14120
|
}
|
|
13884
14121
|
/**
|
|
13885
14122
|
* Accepts a passphrase that's used to create the crypto keys.
|
|
13886
|
-
* When passing in a string, PBKDF2 is used.
|
|
13887
|
-
* When passing in an
|
|
14123
|
+
* When passing in a string, PBKDF2 is used. (recommended for maximum compatibility across SDKs)
|
|
14124
|
+
* When passing in an ArrayBuffer of cryptographically random numbers, HKDF is used.
|
|
14125
|
+
*
|
|
14126
|
+
* Note: Not all client SDKS support HKDF.
|
|
13888
14127
|
* @param key
|
|
13889
14128
|
*/
|
|
13890
14129
|
setKey(key) {
|
|
@@ -16562,6 +16801,7 @@ class PCTransport extends eventsExports.EventEmitter {
|
|
|
16562
16801
|
yield this._pc.setRemoteDescription(currentSD);
|
|
16563
16802
|
} else {
|
|
16564
16803
|
this.renegotiate = true;
|
|
16804
|
+
this.log.debug('requesting renegotiation', Object.assign({}, this.logContext));
|
|
16565
16805
|
return;
|
|
16566
16806
|
}
|
|
16567
16807
|
} else if (!this._pc || this._pc.signalingState === 'closed') {
|
|
@@ -17162,25 +17402,41 @@ class PCTransportManager {
|
|
|
17162
17402
|
negotiate(abortController) {
|
|
17163
17403
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17164
17404
|
return new TypedPromise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
17165
|
-
|
|
17405
|
+
let negotiationTimeout = setTimeout(() => {
|
|
17166
17406
|
reject(new NegotiationError('negotiation timed out'));
|
|
17167
17407
|
}, this.peerConnectionTimeout);
|
|
17168
|
-
const
|
|
17408
|
+
const cleanup = () => {
|
|
17169
17409
|
clearTimeout(negotiationTimeout);
|
|
17410
|
+
this.publisher.off(PCEvents.NegotiationStarted, onNegotiationStarted);
|
|
17411
|
+
abortController.signal.removeEventListener('abort', abortHandler);
|
|
17412
|
+
};
|
|
17413
|
+
const abortHandler = () => {
|
|
17414
|
+
cleanup();
|
|
17170
17415
|
reject(new NegotiationError('negotiation aborted'));
|
|
17171
17416
|
};
|
|
17172
|
-
|
|
17173
|
-
|
|
17417
|
+
// Reset the timeout each time a renegotiation cycle starts. This
|
|
17418
|
+
// prevents premature timeouts when the negotiation machinery is
|
|
17419
|
+
// actively renegotiating (offers going out, answers coming back) but
|
|
17420
|
+
// NegotiationComplete hasn't fired yet because new requirements keep
|
|
17421
|
+
// arriving between offer/answer round-trips.
|
|
17422
|
+
const onNegotiationStarted = () => {
|
|
17174
17423
|
if (abortController.signal.aborted) {
|
|
17175
17424
|
return;
|
|
17176
17425
|
}
|
|
17177
|
-
|
|
17178
|
-
|
|
17179
|
-
|
|
17180
|
-
|
|
17426
|
+
clearTimeout(negotiationTimeout);
|
|
17427
|
+
negotiationTimeout = setTimeout(() => {
|
|
17428
|
+
cleanup();
|
|
17429
|
+
reject(new NegotiationError('negotiation timed out'));
|
|
17430
|
+
}, this.peerConnectionTimeout);
|
|
17431
|
+
};
|
|
17432
|
+
abortController.signal.addEventListener('abort', abortHandler);
|
|
17433
|
+
this.publisher.on(PCEvents.NegotiationStarted, onNegotiationStarted);
|
|
17434
|
+
this.publisher.once(PCEvents.NegotiationComplete, () => {
|
|
17435
|
+
cleanup();
|
|
17436
|
+
resolve();
|
|
17181
17437
|
});
|
|
17182
17438
|
yield this.publisher.negotiate(e => {
|
|
17183
|
-
|
|
17439
|
+
cleanup();
|
|
17184
17440
|
if (e instanceof Error) {
|
|
17185
17441
|
reject(e);
|
|
17186
17442
|
} else {
|
|
@@ -17676,6 +17932,7 @@ class LocalTrack extends Track {
|
|
|
17676
17932
|
let loggerOptions = arguments.length > 4 ? arguments[4] : undefined;
|
|
17677
17933
|
super(mediaTrack, kind, loggerOptions);
|
|
17678
17934
|
this.manuallyStopped = false;
|
|
17935
|
+
this.pendingDeviceChange = false;
|
|
17679
17936
|
this._isUpstreamPaused = false;
|
|
17680
17937
|
this.handleTrackMuteEvent = () => this.debouncedTrackMuteHandler().catch(() => this.log.debug('track mute bounce got cancelled by an unmute event', this.logContext));
|
|
17681
17938
|
this.debouncedTrackMuteHandler = r(() => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -17851,6 +18108,7 @@ class LocalTrack extends Track {
|
|
|
17851
18108
|
// when track is muted, underlying media stream track is stopped and
|
|
17852
18109
|
// will be restarted later
|
|
17853
18110
|
if (this.isMuted) {
|
|
18111
|
+
this.pendingDeviceChange = true;
|
|
17854
18112
|
return true;
|
|
17855
18113
|
}
|
|
17856
18114
|
yield this.restartTrack();
|
|
@@ -17970,6 +18228,7 @@ class LocalTrack extends Track {
|
|
|
17970
18228
|
this.log.debug('re-acquired MediaStreamTrack', this.logContext);
|
|
17971
18229
|
yield this.setMediaStreamTrack(newTrack);
|
|
17972
18230
|
this._constraints = constraints;
|
|
18231
|
+
this.pendingDeviceChange = false;
|
|
17973
18232
|
this.emit(TrackEvent.Restarted, this);
|
|
17974
18233
|
if (this.manuallyStopped) {
|
|
17975
18234
|
this.log.warn('track was stopped during a restart, stopping restarted track', this.logContext);
|
|
@@ -18348,8 +18607,7 @@ class LocalTrack extends Track {
|
|
|
18348
18607
|
this.log.debug('Track already unmuted', this.logContext);
|
|
18349
18608
|
return this;
|
|
18350
18609
|
}
|
|
18351
|
-
|
|
18352
|
-
if (this.source === Track.Source.Microphone && (this.stopOnMute || this._mediaStreamTrack.readyState === 'ended' || deviceHasChanged) && !this.isUserProvided) {
|
|
18610
|
+
if (this.source === Track.Source.Microphone && (this.stopOnMute || this._mediaStreamTrack.readyState === 'ended' || this.pendingDeviceChange) && !this.isUserProvided) {
|
|
18353
18611
|
this.log.debug('reacquiring mic track', this.logContext);
|
|
18354
18612
|
yield this.restartTrack();
|
|
18355
18613
|
}
|
|
@@ -20676,8 +20934,8 @@ class RTCEngine extends eventsExports.EventEmitter {
|
|
|
20676
20934
|
if (!this.pcManager) {
|
|
20677
20935
|
return false;
|
|
20678
20936
|
}
|
|
20679
|
-
|
|
20680
|
-
if (this.pcManager.currentState
|
|
20937
|
+
const allowedConnectionStates = [PCTransportState.CONNECTING, PCTransportState.CONNECTED];
|
|
20938
|
+
if (!allowedConnectionStates.includes(this.pcManager.currentState)) {
|
|
20681
20939
|
return false;
|
|
20682
20940
|
}
|
|
20683
20941
|
// ensure signal is connected
|
|
@@ -20711,6 +20969,7 @@ class RTCEngine extends eventsExports.EventEmitter {
|
|
|
20711
20969
|
reject(new NegotiationError('cannot negotiate on closed engine'));
|
|
20712
20970
|
}
|
|
20713
20971
|
this.on(EngineEvent.Closing, handleClosed);
|
|
20972
|
+
this.on(EngineEvent.Restarting, handleClosed);
|
|
20714
20973
|
this.pcManager.publisher.once(PCEvents.RTPVideoPayloadTypes, rtpTypes => {
|
|
20715
20974
|
const rtpMap = new Map();
|
|
20716
20975
|
rtpTypes.forEach(rtp => {
|
|
@@ -20725,6 +20984,12 @@ class RTCEngine extends eventsExports.EventEmitter {
|
|
|
20725
20984
|
yield this.pcManager.negotiate(abortController);
|
|
20726
20985
|
resolve();
|
|
20727
20986
|
} catch (e) {
|
|
20987
|
+
if (abortController.signal.aborted) {
|
|
20988
|
+
// negotiation was aborted due to engine close or restart, resolve
|
|
20989
|
+
// cleanly to avoid triggering a cascading reconnect loop
|
|
20990
|
+
resolve();
|
|
20991
|
+
return;
|
|
20992
|
+
}
|
|
20728
20993
|
if (e instanceof NegotiationError) {
|
|
20729
20994
|
this.fullReconnectOnNext = true;
|
|
20730
20995
|
}
|
|
@@ -20736,6 +21001,7 @@ class RTCEngine extends eventsExports.EventEmitter {
|
|
|
20736
21001
|
}
|
|
20737
21002
|
} finally {
|
|
20738
21003
|
this.off(EngineEvent.Closing, handleClosed);
|
|
21004
|
+
this.off(EngineEvent.Restarting, handleClosed);
|
|
20739
21005
|
}
|
|
20740
21006
|
}));
|
|
20741
21007
|
});
|
|
@@ -21290,7 +21556,8 @@ class TextStreamReader extends BaseStreamReader {
|
|
|
21290
21556
|
topic: streamHeader.topic,
|
|
21291
21557
|
timestamp: Number(streamHeader.timestamp),
|
|
21292
21558
|
attributes: streamHeader.attributes,
|
|
21293
|
-
encryptionType
|
|
21559
|
+
encryptionType,
|
|
21560
|
+
attachedStreamIds: streamHeader.contentHeader.value.attachedStreamIds
|
|
21294
21561
|
};
|
|
21295
21562
|
const stream = new ReadableStream({
|
|
21296
21563
|
start: controller => {
|
|
@@ -21443,7 +21710,8 @@ class OutgoingDataStreamManager {
|
|
|
21443
21710
|
topic: (_b = options === null || options === void 0 ? void 0 : options.topic) !== null && _b !== void 0 ? _b : '',
|
|
21444
21711
|
size: options === null || options === void 0 ? void 0 : options.totalSize,
|
|
21445
21712
|
attributes: options === null || options === void 0 ? void 0 : options.attributes,
|
|
21446
|
-
encryptionType: ((_c = this.engine.e2eeManager) === null || _c === void 0 ? void 0 : _c.isDataChannelEncryptionEnabled) ? Encryption_Type.GCM : Encryption_Type.NONE
|
|
21713
|
+
encryptionType: ((_c = this.engine.e2eeManager) === null || _c === void 0 ? void 0 : _c.isDataChannelEncryptionEnabled) ? Encryption_Type.GCM : Encryption_Type.NONE,
|
|
21714
|
+
attachedStreamIds: options === null || options === void 0 ? void 0 : options.attachedStreamIds
|
|
21447
21715
|
};
|
|
21448
21716
|
const header = new DataStream_Header({
|
|
21449
21717
|
streamId,
|
|
@@ -21456,7 +21724,7 @@ class OutgoingDataStreamManager {
|
|
|
21456
21724
|
case: 'textHeader',
|
|
21457
21725
|
value: new DataStream_TextHeader({
|
|
21458
21726
|
version: options === null || options === void 0 ? void 0 : options.version,
|
|
21459
|
-
attachedStreamIds:
|
|
21727
|
+
attachedStreamIds: info.attachedStreamIds,
|
|
21460
21728
|
replyToStreamId: options === null || options === void 0 ? void 0 : options.replyToStreamId,
|
|
21461
21729
|
operationType: (options === null || options === void 0 ? void 0 : options.type) === 'update' ? DataStream_OperationType.UPDATE : DataStream_OperationType.CREATE
|
|
21462
21730
|
})
|
|
@@ -26983,7 +27251,7 @@ class Room extends eventsExports.EventEmitter {
|
|
|
26983
27251
|
numFailures: consecutiveFailures,
|
|
26984
27252
|
engine: this.engine ? {
|
|
26985
27253
|
closed: this.engine.isClosed,
|
|
26986
|
-
|
|
27254
|
+
transportsConnectedOrConnecting: this.engine.verifyTransport()
|
|
26987
27255
|
} : undefined
|
|
26988
27256
|
}));
|
|
26989
27257
|
if (consecutiveFailures >= 3) {
|
|
@@ -27201,7 +27469,659 @@ class Convert {
|
|
|
27201
27469
|
static transcriptionAttributesToJson(value) {
|
|
27202
27470
|
return JSON.stringify(value);
|
|
27203
27471
|
}
|
|
27204
|
-
}var attributeTypings=/*#__PURE__*/Object.freeze({__proto__:null,Convert:Convert});
|
|
27472
|
+
}var attributeTypings=/*#__PURE__*/Object.freeze({__proto__:null,Convert:Convert});const U16_MAX_SIZE = 0xffff;
|
|
27473
|
+
const U32_MAX_SIZE = 0xffffffff;
|
|
27474
|
+
/**
|
|
27475
|
+
* A number of fields withing the data tracks packet specification assume wrap around behavior when
|
|
27476
|
+
* an unsigned type is incremented beyond its max size (ie, the packet `sequence` field). This
|
|
27477
|
+
* wrapper type manually reimplements this wrap around behavior given javascript's lack of fixed
|
|
27478
|
+
* size integer types.
|
|
27479
|
+
*/
|
|
27480
|
+
class WrapAroundUnsignedInt {
|
|
27481
|
+
static u16(raw) {
|
|
27482
|
+
return new WrapAroundUnsignedInt(raw, U16_MAX_SIZE);
|
|
27483
|
+
}
|
|
27484
|
+
static u32(raw) {
|
|
27485
|
+
return new WrapAroundUnsignedInt(raw, U32_MAX_SIZE);
|
|
27486
|
+
}
|
|
27487
|
+
constructor(raw, maxSize) {
|
|
27488
|
+
this.value = raw;
|
|
27489
|
+
if (raw < 0) {
|
|
27490
|
+
throw new Error('WrapAroundUnsignedInt: cannot faithfully represent an integer smaller than 0');
|
|
27491
|
+
}
|
|
27492
|
+
if (maxSize > Number.MAX_SAFE_INTEGER) {
|
|
27493
|
+
throw new Error('WrapAroundUnsignedInt: cannot faithfully represent an integer bigger than MAX_SAFE_INTEGER.');
|
|
27494
|
+
}
|
|
27495
|
+
this.maxSize = maxSize;
|
|
27496
|
+
this.clamp();
|
|
27497
|
+
}
|
|
27498
|
+
/** Manually clamp the given containing value according to the wrap around max size bounds. Use
|
|
27499
|
+
* this after out of bounds modification to the contained value by external code. */
|
|
27500
|
+
clamp() {
|
|
27501
|
+
while (this.value > this.maxSize) {
|
|
27502
|
+
this.value -= this.maxSize + 1;
|
|
27503
|
+
}
|
|
27504
|
+
while (this.value < 0) {
|
|
27505
|
+
this.value += this.maxSize + 1;
|
|
27506
|
+
}
|
|
27507
|
+
}
|
|
27508
|
+
clone() {
|
|
27509
|
+
return new WrapAroundUnsignedInt(this.value, this.maxSize);
|
|
27510
|
+
}
|
|
27511
|
+
/** When called, maps the containing value to a new containing value. After mapping, the wrap
|
|
27512
|
+
* around external max size bounds are applied. Note that this is a mutative operation. */
|
|
27513
|
+
update(updateFn) {
|
|
27514
|
+
this.value = updateFn(this.value);
|
|
27515
|
+
this.clamp();
|
|
27516
|
+
}
|
|
27517
|
+
/** Increments the given `n` to the inner value. Note that this is a mutative operation. */
|
|
27518
|
+
increment() {
|
|
27519
|
+
let n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
27520
|
+
this.update(value => value + n);
|
|
27521
|
+
}
|
|
27522
|
+
/** Decrements the given `n` from the inner value. Note that this is a mutative operation. */
|
|
27523
|
+
decrement() {
|
|
27524
|
+
let n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
27525
|
+
this.update(value => value - n);
|
|
27526
|
+
}
|
|
27527
|
+
getThenIncrement() {
|
|
27528
|
+
const previousValue = this.value;
|
|
27529
|
+
this.increment();
|
|
27530
|
+
return new WrapAroundUnsignedInt(previousValue, this.maxSize);
|
|
27531
|
+
}
|
|
27532
|
+
/** Returns true if {@link this} is before the passed other {@link WrapAroundUnsignedInt}. */
|
|
27533
|
+
isBefore(other) {
|
|
27534
|
+
const a = this.value >>> 0;
|
|
27535
|
+
const b = other.value >>> 0;
|
|
27536
|
+
const diff = b - a >>> 0;
|
|
27537
|
+
return diff !== 0 && diff < this.maxSize + 1;
|
|
27538
|
+
}
|
|
27539
|
+
}
|
|
27540
|
+
class DataTrackTimestamp {
|
|
27541
|
+
static fromRtpTicks(rtpTicks) {
|
|
27542
|
+
return new DataTrackTimestamp(rtpTicks, 90000);
|
|
27543
|
+
}
|
|
27544
|
+
/** Generates a timestamp initialized to a non cryptographically secure random value, so that
|
|
27545
|
+
* different streams are more difficult to correlate in packet capture. */
|
|
27546
|
+
static rtpRandom() {
|
|
27547
|
+
const randomValue = Math.round(Math.random() * U32_MAX_SIZE);
|
|
27548
|
+
return DataTrackTimestamp.fromRtpTicks(randomValue);
|
|
27549
|
+
}
|
|
27550
|
+
constructor(raw, rateInHz) {
|
|
27551
|
+
this.timestamp = WrapAroundUnsignedInt.u32(raw);
|
|
27552
|
+
this.rateInHz = rateInHz;
|
|
27553
|
+
}
|
|
27554
|
+
asTicks() {
|
|
27555
|
+
return this.timestamp.value;
|
|
27556
|
+
}
|
|
27557
|
+
clone() {
|
|
27558
|
+
return new DataTrackTimestamp(this.timestamp.value, this.rateInHz);
|
|
27559
|
+
}
|
|
27560
|
+
wrappingAdd(n) {
|
|
27561
|
+
this.timestamp.increment(n);
|
|
27562
|
+
}
|
|
27563
|
+
/** Returns true if {@link this} is before the passed other {@link DataTrackTimestamp}. */
|
|
27564
|
+
isBefore(other) {
|
|
27565
|
+
return this.timestamp.isBefore(other.timestamp);
|
|
27566
|
+
}
|
|
27567
|
+
}
|
|
27568
|
+
function coerceToDataView(input) {
|
|
27569
|
+
if (input instanceof DataView) {
|
|
27570
|
+
return input;
|
|
27571
|
+
} else if (input instanceof ArrayBuffer) {
|
|
27572
|
+
return new DataView(input);
|
|
27573
|
+
} else if (input instanceof Uint8Array) {
|
|
27574
|
+
return new DataView(input.buffer, input.byteOffset, input.byteLength);
|
|
27575
|
+
} else {
|
|
27576
|
+
throw new Error("Error coercing ".concat(input, " to DataView - input was not DataView, ArrayBuffer, or Uint8Array."));
|
|
27577
|
+
}
|
|
27578
|
+
}// Number type sizes
|
|
27579
|
+
const U8_LENGTH_BYTES = 1;
|
|
27580
|
+
const U16_LENGTH_BYTES = 2;
|
|
27581
|
+
const U32_LENGTH_BYTES = 4;
|
|
27582
|
+
const U64_LENGTH_BYTES = 8;
|
|
27583
|
+
/// Constants used for serialization and deserialization.
|
|
27584
|
+
const SUPPORTED_VERSION = 0;
|
|
27585
|
+
const BASE_HEADER_LEN = 12;
|
|
27586
|
+
// Bitfield shifts and masks for header flags
|
|
27587
|
+
const VERSION_SHIFT = 5;
|
|
27588
|
+
const VERSION_MASK = 0x07;
|
|
27589
|
+
const FRAME_MARKER_SHIFT = 3;
|
|
27590
|
+
const FRAME_MARKER_MASK = 0x3;
|
|
27591
|
+
const FRAME_MARKER_START = 0x2;
|
|
27592
|
+
const FRAME_MARKER_FINAL = 0x1;
|
|
27593
|
+
const FRAME_MARKER_INTER = 0x0;
|
|
27594
|
+
const FRAME_MARKER_SINGLE = 0x3;
|
|
27595
|
+
const EXT_WORDS_INDICATOR_SIZE = 2;
|
|
27596
|
+
const EXT_FLAG_SHIFT = 0x2;
|
|
27597
|
+
const EXT_FLAG_MASK = 0x1;
|
|
27598
|
+
const EXT_TAG_PADDING = 0;var DataTrackDeserializeErrorReason;
|
|
27599
|
+
(function (DataTrackDeserializeErrorReason) {
|
|
27600
|
+
DataTrackDeserializeErrorReason[DataTrackDeserializeErrorReason["TooShort"] = 0] = "TooShort";
|
|
27601
|
+
DataTrackDeserializeErrorReason[DataTrackDeserializeErrorReason["HeaderOverrun"] = 1] = "HeaderOverrun";
|
|
27602
|
+
DataTrackDeserializeErrorReason[DataTrackDeserializeErrorReason["MissingExtWords"] = 2] = "MissingExtWords";
|
|
27603
|
+
DataTrackDeserializeErrorReason[DataTrackDeserializeErrorReason["UnsupportedVersion"] = 3] = "UnsupportedVersion";
|
|
27604
|
+
DataTrackDeserializeErrorReason[DataTrackDeserializeErrorReason["InvalidHandle"] = 4] = "InvalidHandle";
|
|
27605
|
+
DataTrackDeserializeErrorReason[DataTrackDeserializeErrorReason["MalformedExt"] = 5] = "MalformedExt";
|
|
27606
|
+
})(DataTrackDeserializeErrorReason || (DataTrackDeserializeErrorReason = {}));
|
|
27607
|
+
class DataTrackDeserializeError extends LivekitReasonedError {
|
|
27608
|
+
constructor(message, reason, options) {
|
|
27609
|
+
super(19, message, options);
|
|
27610
|
+
this.name = 'DataTrackDeserializeError';
|
|
27611
|
+
this.reason = reason;
|
|
27612
|
+
this.reasonName = DataTrackDeserializeErrorReason[reason];
|
|
27613
|
+
}
|
|
27614
|
+
static tooShort() {
|
|
27615
|
+
return new DataTrackDeserializeError('Too short to contain a valid header', DataTrackDeserializeErrorReason.TooShort);
|
|
27616
|
+
}
|
|
27617
|
+
static headerOverrun() {
|
|
27618
|
+
return new DataTrackDeserializeError('Header exceeds total packet length', DataTrackDeserializeErrorReason.HeaderOverrun);
|
|
27619
|
+
}
|
|
27620
|
+
static missingExtWords() {
|
|
27621
|
+
return new DataTrackDeserializeError('Extension word indicator is missing', DataTrackDeserializeErrorReason.MissingExtWords);
|
|
27622
|
+
}
|
|
27623
|
+
static unsupportedVersion(version) {
|
|
27624
|
+
return new DataTrackDeserializeError("Unsupported version ".concat(version), DataTrackDeserializeErrorReason.UnsupportedVersion);
|
|
27625
|
+
}
|
|
27626
|
+
static invalidHandle(cause) {
|
|
27627
|
+
return new DataTrackDeserializeError("invalid track handle: ".concat(cause.message), DataTrackDeserializeErrorReason.InvalidHandle, {
|
|
27628
|
+
cause
|
|
27629
|
+
});
|
|
27630
|
+
}
|
|
27631
|
+
static malformedExt(tag) {
|
|
27632
|
+
return new DataTrackDeserializeError("Extension with tag ".concat(tag, " is malformed"), DataTrackDeserializeErrorReason.MalformedExt);
|
|
27633
|
+
}
|
|
27634
|
+
}
|
|
27635
|
+
var DataTrackSerializeErrorReason;
|
|
27636
|
+
(function (DataTrackSerializeErrorReason) {
|
|
27637
|
+
DataTrackSerializeErrorReason[DataTrackSerializeErrorReason["TooSmallForHeader"] = 0] = "TooSmallForHeader";
|
|
27638
|
+
DataTrackSerializeErrorReason[DataTrackSerializeErrorReason["TooSmallForPayload"] = 1] = "TooSmallForPayload";
|
|
27639
|
+
})(DataTrackSerializeErrorReason || (DataTrackSerializeErrorReason = {}));
|
|
27640
|
+
class DataTrackSerializeError extends LivekitReasonedError {
|
|
27641
|
+
constructor(message, reason, options) {
|
|
27642
|
+
super(19, message, options);
|
|
27643
|
+
this.name = 'DataTrackSerializeError';
|
|
27644
|
+
this.reason = reason;
|
|
27645
|
+
this.reasonName = DataTrackSerializeErrorReason[reason];
|
|
27646
|
+
}
|
|
27647
|
+
static tooSmallForHeader() {
|
|
27648
|
+
return new DataTrackSerializeError('Buffer cannot fit header', DataTrackSerializeErrorReason.TooSmallForHeader);
|
|
27649
|
+
}
|
|
27650
|
+
static tooSmallForPayload() {
|
|
27651
|
+
return new DataTrackSerializeError('Buffer cannot fit payload', DataTrackSerializeErrorReason.TooSmallForPayload);
|
|
27652
|
+
}
|
|
27653
|
+
}/** An abstract class implementing common behavior related to data track binary serialization. */
|
|
27654
|
+
class Serializable {
|
|
27655
|
+
/** Encodes the instance as binary and returns the data as a Uint8Array. */
|
|
27656
|
+
toBinary() {
|
|
27657
|
+
const lengthBytes = this.toBinaryLengthBytes();
|
|
27658
|
+
const output = new ArrayBuffer(lengthBytes);
|
|
27659
|
+
const view = new DataView(output);
|
|
27660
|
+
const writtenBytes = this.toBinaryInto(view);
|
|
27661
|
+
if (lengthBytes !== writtenBytes) {
|
|
27662
|
+
// @throws-transformer ignore - this should be treated as a "panic" and not be caught
|
|
27663
|
+
throw new Error("".concat(this.constructor.name, ".toBinary: written bytes (").concat(writtenBytes, " bytes) not equal to allocated array buffer length (").concat(lengthBytes, " bytes)."));
|
|
27664
|
+
}
|
|
27665
|
+
return new Uint8Array(output);
|
|
27666
|
+
}
|
|
27667
|
+
}var DataTrackExtensionTag;
|
|
27668
|
+
(function (DataTrackExtensionTag) {
|
|
27669
|
+
DataTrackExtensionTag[DataTrackExtensionTag["UserTimestamp"] = 2] = "UserTimestamp";
|
|
27670
|
+
DataTrackExtensionTag[DataTrackExtensionTag["E2ee"] = 1] = "E2ee";
|
|
27671
|
+
})(DataTrackExtensionTag || (DataTrackExtensionTag = {}));
|
|
27672
|
+
class DataTrackExtension extends Serializable {}
|
|
27673
|
+
class DataTrackUserTimestampExtension extends DataTrackExtension {
|
|
27674
|
+
constructor(timestamp) {
|
|
27675
|
+
super();
|
|
27676
|
+
this.timestamp = timestamp;
|
|
27677
|
+
}
|
|
27678
|
+
toBinaryLengthBytes() {
|
|
27679
|
+
return U16_LENGTH_BYTES /* tag */ + U16_LENGTH_BYTES /* length */ + DataTrackUserTimestampExtension.lengthBytes;
|
|
27680
|
+
}
|
|
27681
|
+
toBinaryInto(dataView) {
|
|
27682
|
+
let byteIndex = 0;
|
|
27683
|
+
dataView.setUint16(byteIndex, DataTrackUserTimestampExtension.tag);
|
|
27684
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27685
|
+
const rtpOrientedLength = DataTrackUserTimestampExtension.lengthBytes - 1;
|
|
27686
|
+
dataView.setUint16(byteIndex, rtpOrientedLength);
|
|
27687
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27688
|
+
dataView.setBigUint64(byteIndex, this.timestamp);
|
|
27689
|
+
byteIndex += U64_LENGTH_BYTES;
|
|
27690
|
+
const totalLengthBytes = this.toBinaryLengthBytes();
|
|
27691
|
+
if (byteIndex !== totalLengthBytes) {
|
|
27692
|
+
// @throws-transformer ignore - this should be treated as a "panic" and not be caught
|
|
27693
|
+
throw new Error("DataTrackUserTimestampExtension.toBinaryInto: Wrote ".concat(byteIndex, " bytes but expected length was ").concat(totalLengthBytes, " bytes"));
|
|
27694
|
+
}
|
|
27695
|
+
return byteIndex;
|
|
27696
|
+
}
|
|
27697
|
+
toJSON() {
|
|
27698
|
+
return {
|
|
27699
|
+
tag: DataTrackUserTimestampExtension.tag,
|
|
27700
|
+
lengthBytes: DataTrackUserTimestampExtension.lengthBytes,
|
|
27701
|
+
timestamp: this.timestamp
|
|
27702
|
+
};
|
|
27703
|
+
}
|
|
27704
|
+
}
|
|
27705
|
+
DataTrackUserTimestampExtension.tag = DataTrackExtensionTag.UserTimestamp;
|
|
27706
|
+
DataTrackUserTimestampExtension.lengthBytes = 8;
|
|
27707
|
+
class DataTrackE2eeExtension extends DataTrackExtension {
|
|
27708
|
+
constructor(keyIndex, iv) {
|
|
27709
|
+
super();
|
|
27710
|
+
this.keyIndex = keyIndex;
|
|
27711
|
+
this.iv = iv;
|
|
27712
|
+
}
|
|
27713
|
+
toBinaryLengthBytes() {
|
|
27714
|
+
return U16_LENGTH_BYTES /* tag */ + U16_LENGTH_BYTES /* length */ + DataTrackE2eeExtension.lengthBytes;
|
|
27715
|
+
}
|
|
27716
|
+
toBinaryInto(dataView) {
|
|
27717
|
+
let byteIndex = 0;
|
|
27718
|
+
dataView.setUint16(byteIndex, DataTrackE2eeExtension.tag);
|
|
27719
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27720
|
+
const rtpOrientedLength = DataTrackE2eeExtension.lengthBytes - 1;
|
|
27721
|
+
dataView.setUint16(byteIndex, rtpOrientedLength);
|
|
27722
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27723
|
+
dataView.setUint8(byteIndex, this.keyIndex);
|
|
27724
|
+
byteIndex += U8_LENGTH_BYTES;
|
|
27725
|
+
for (let i = 0; i < this.iv.length; i += 1) {
|
|
27726
|
+
dataView.setUint8(byteIndex, this.iv[i]);
|
|
27727
|
+
byteIndex += U8_LENGTH_BYTES;
|
|
27728
|
+
}
|
|
27729
|
+
const totalLengthBytes = this.toBinaryLengthBytes();
|
|
27730
|
+
if (byteIndex !== totalLengthBytes) {
|
|
27731
|
+
// @throws-transformer ignore - this should be treated as a "panic" and not be caught
|
|
27732
|
+
throw new Error("DataTrackE2eeExtension.toBinaryInto: Wrote ".concat(byteIndex, " bytes but expected length was ").concat(totalLengthBytes, " bytes"));
|
|
27733
|
+
}
|
|
27734
|
+
return byteIndex;
|
|
27735
|
+
}
|
|
27736
|
+
toJSON() {
|
|
27737
|
+
return {
|
|
27738
|
+
tag: DataTrackE2eeExtension.tag,
|
|
27739
|
+
lengthBytes: DataTrackE2eeExtension.lengthBytes,
|
|
27740
|
+
keyIndex: this.keyIndex,
|
|
27741
|
+
iv: this.iv
|
|
27742
|
+
};
|
|
27743
|
+
}
|
|
27744
|
+
}
|
|
27745
|
+
DataTrackE2eeExtension.tag = DataTrackExtensionTag.E2ee;
|
|
27746
|
+
DataTrackE2eeExtension.lengthBytes = 13;
|
|
27747
|
+
class DataTrackExtensions extends Serializable {
|
|
27748
|
+
constructor() {
|
|
27749
|
+
let opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27750
|
+
super();
|
|
27751
|
+
this.userTimestamp = opts.userTimestamp;
|
|
27752
|
+
this.e2ee = opts.e2ee;
|
|
27753
|
+
}
|
|
27754
|
+
toBinaryLengthBytes() {
|
|
27755
|
+
let lengthBytes = 0;
|
|
27756
|
+
if (this.userTimestamp) {
|
|
27757
|
+
lengthBytes += this.userTimestamp.toBinaryLengthBytes();
|
|
27758
|
+
}
|
|
27759
|
+
if (this.e2ee) {
|
|
27760
|
+
lengthBytes += this.e2ee.toBinaryLengthBytes();
|
|
27761
|
+
}
|
|
27762
|
+
return lengthBytes;
|
|
27763
|
+
}
|
|
27764
|
+
toBinaryInto(dataView) {
|
|
27765
|
+
let byteIndex = 0;
|
|
27766
|
+
if (this.e2ee) {
|
|
27767
|
+
const e2eeBytes = this.e2ee.toBinaryInto(dataView);
|
|
27768
|
+
byteIndex += e2eeBytes;
|
|
27769
|
+
}
|
|
27770
|
+
if (this.userTimestamp) {
|
|
27771
|
+
const userTimestampBytes = this.userTimestamp.toBinaryInto(new DataView(dataView.buffer, dataView.byteOffset + byteIndex));
|
|
27772
|
+
byteIndex += userTimestampBytes;
|
|
27773
|
+
}
|
|
27774
|
+
const totalLengthBytes = this.toBinaryLengthBytes();
|
|
27775
|
+
if (byteIndex !== totalLengthBytes) {
|
|
27776
|
+
// @throws-transformer ignore - this should be treated as a "panic" and not be caught
|
|
27777
|
+
throw new Error("DataTrackExtensions.toBinaryInto: Wrote ".concat(byteIndex, " bytes but expected length was ").concat(totalLengthBytes, " bytes"));
|
|
27778
|
+
}
|
|
27779
|
+
return byteIndex;
|
|
27780
|
+
}
|
|
27781
|
+
static fromBinary(input) {
|
|
27782
|
+
const dataView = coerceToDataView(input);
|
|
27783
|
+
let userTimestamp;
|
|
27784
|
+
let e2ee;
|
|
27785
|
+
let byteIndex = 0;
|
|
27786
|
+
while (dataView.byteLength - byteIndex >= U16_LENGTH_BYTES + U16_LENGTH_BYTES) {
|
|
27787
|
+
const tag = dataView.getUint16(byteIndex);
|
|
27788
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27789
|
+
const rtpOrientedLength = dataView.getUint16(byteIndex);
|
|
27790
|
+
const lengthBytes = rtpOrientedLength + 1;
|
|
27791
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27792
|
+
if (tag === EXT_TAG_PADDING) {
|
|
27793
|
+
// Skip padding
|
|
27794
|
+
continue;
|
|
27795
|
+
}
|
|
27796
|
+
switch (tag) {
|
|
27797
|
+
case DataTrackExtensionTag.UserTimestamp:
|
|
27798
|
+
if (dataView.byteLength - byteIndex < DataTrackUserTimestampExtension.lengthBytes) {
|
|
27799
|
+
throw DataTrackDeserializeError.malformedExt(tag);
|
|
27800
|
+
}
|
|
27801
|
+
userTimestamp = new DataTrackUserTimestampExtension(dataView.getBigUint64(byteIndex));
|
|
27802
|
+
byteIndex += lengthBytes;
|
|
27803
|
+
break;
|
|
27804
|
+
case DataTrackExtensionTag.E2ee:
|
|
27805
|
+
if (dataView.byteLength - byteIndex < DataTrackE2eeExtension.lengthBytes) {
|
|
27806
|
+
throw DataTrackDeserializeError.malformedExt(tag);
|
|
27807
|
+
}
|
|
27808
|
+
const keyIndex = dataView.getUint8(byteIndex);
|
|
27809
|
+
const iv = new Uint8Array(12);
|
|
27810
|
+
for (let i = 0; i < iv.length; i += 1) {
|
|
27811
|
+
let byteIndexForIv = byteIndex;
|
|
27812
|
+
byteIndexForIv += U8_LENGTH_BYTES; // key index
|
|
27813
|
+
byteIndexForIv += i * U8_LENGTH_BYTES; // Index into iv array
|
|
27814
|
+
iv[i] = dataView.getUint8(byteIndexForIv);
|
|
27815
|
+
}
|
|
27816
|
+
e2ee = new DataTrackE2eeExtension(keyIndex, iv);
|
|
27817
|
+
byteIndex += lengthBytes;
|
|
27818
|
+
break;
|
|
27819
|
+
default:
|
|
27820
|
+
// Skip over unknown extensions (forward compatible).
|
|
27821
|
+
if (dataView.byteLength - byteIndex < lengthBytes) {
|
|
27822
|
+
throw DataTrackDeserializeError.malformedExt(tag);
|
|
27823
|
+
}
|
|
27824
|
+
byteIndex += lengthBytes;
|
|
27825
|
+
break;
|
|
27826
|
+
}
|
|
27827
|
+
}
|
|
27828
|
+
// NOTE: padding bytes after extension data is intentionally not being processed
|
|
27829
|
+
return [new DataTrackExtensions({
|
|
27830
|
+
userTimestamp,
|
|
27831
|
+
e2ee
|
|
27832
|
+
}), dataView.byteLength];
|
|
27833
|
+
}
|
|
27834
|
+
toJSON() {
|
|
27835
|
+
var _a, _b, _c, _d;
|
|
27836
|
+
return {
|
|
27837
|
+
userTimestamp: (_b = (_a = this.userTimestamp) === null || _a === void 0 ? void 0 : _a.toJSON()) !== null && _b !== void 0 ? _b : null,
|
|
27838
|
+
e2ee: (_d = (_c = this.e2ee) === null || _c === void 0 ? void 0 : _c.toJSON()) !== null && _d !== void 0 ? _d : null
|
|
27839
|
+
};
|
|
27840
|
+
}
|
|
27841
|
+
}var DataTrackHandleErrorReason;
|
|
27842
|
+
(function (DataTrackHandleErrorReason) {
|
|
27843
|
+
DataTrackHandleErrorReason[DataTrackHandleErrorReason["Reserved"] = 0] = "Reserved";
|
|
27844
|
+
DataTrackHandleErrorReason[DataTrackHandleErrorReason["TooLarge"] = 1] = "TooLarge";
|
|
27845
|
+
})(DataTrackHandleErrorReason || (DataTrackHandleErrorReason = {}));
|
|
27846
|
+
class DataTrackHandleError extends LivekitReasonedError {
|
|
27847
|
+
constructor(message, reason) {
|
|
27848
|
+
super(19, message);
|
|
27849
|
+
this.name = 'DataTrackHandleError';
|
|
27850
|
+
this.reason = reason;
|
|
27851
|
+
this.reasonName = DataTrackHandleErrorReason[reason];
|
|
27852
|
+
}
|
|
27853
|
+
isReason(reason) {
|
|
27854
|
+
return this.reason === reason;
|
|
27855
|
+
}
|
|
27856
|
+
static tooLarge() {
|
|
27857
|
+
return new DataTrackHandleError('Value too large to be a valid track handle', DataTrackHandleErrorReason.TooLarge);
|
|
27858
|
+
}
|
|
27859
|
+
static reserved(value) {
|
|
27860
|
+
return new DataTrackHandleError("0x".concat(value.toString(16), " is a reserved value."), DataTrackHandleErrorReason.Reserved);
|
|
27861
|
+
}
|
|
27862
|
+
}
|
|
27863
|
+
class DataTrackHandle {
|
|
27864
|
+
static fromNumber(raw) {
|
|
27865
|
+
if (raw === 0) {
|
|
27866
|
+
throw DataTrackHandleError.reserved(raw);
|
|
27867
|
+
}
|
|
27868
|
+
if (raw > U16_MAX_SIZE) {
|
|
27869
|
+
throw DataTrackHandleError.tooLarge();
|
|
27870
|
+
}
|
|
27871
|
+
return new DataTrackHandle(raw);
|
|
27872
|
+
}
|
|
27873
|
+
constructor(raw) {
|
|
27874
|
+
this.value = raw;
|
|
27875
|
+
}
|
|
27876
|
+
}/** A class for serializing / deserializing data track packet header sections. */
|
|
27877
|
+
class DataTrackPacketHeader extends Serializable {
|
|
27878
|
+
constructor(opts) {
|
|
27879
|
+
var _a;
|
|
27880
|
+
super();
|
|
27881
|
+
this.marker = opts.marker;
|
|
27882
|
+
this.trackHandle = opts.trackHandle;
|
|
27883
|
+
this.sequence = opts.sequence;
|
|
27884
|
+
this.frameNumber = opts.frameNumber;
|
|
27885
|
+
this.timestamp = opts.timestamp;
|
|
27886
|
+
this.extensions = (_a = opts.extensions) !== null && _a !== void 0 ? _a : new DataTrackExtensions();
|
|
27887
|
+
}
|
|
27888
|
+
extensionsMetrics() {
|
|
27889
|
+
const lengthBytes = this.extensions.toBinaryLengthBytes();
|
|
27890
|
+
const lengthWords = Math.ceil(lengthBytes / 4);
|
|
27891
|
+
const paddingLengthBytes = lengthWords * 4 - lengthBytes;
|
|
27892
|
+
return {
|
|
27893
|
+
lengthBytes,
|
|
27894
|
+
lengthWords,
|
|
27895
|
+
paddingLengthBytes
|
|
27896
|
+
};
|
|
27897
|
+
}
|
|
27898
|
+
toBinaryLengthBytes() {
|
|
27899
|
+
const {
|
|
27900
|
+
lengthBytes: extLengthBytes,
|
|
27901
|
+
paddingLengthBytes: extPaddingLengthBytes
|
|
27902
|
+
} = this.extensionsMetrics();
|
|
27903
|
+
let totalLengthBytes = BASE_HEADER_LEN;
|
|
27904
|
+
if (extLengthBytes > 0) {
|
|
27905
|
+
totalLengthBytes += EXT_WORDS_INDICATOR_SIZE + extLengthBytes + extPaddingLengthBytes;
|
|
27906
|
+
}
|
|
27907
|
+
return totalLengthBytes;
|
|
27908
|
+
}
|
|
27909
|
+
toBinaryInto(dataView) {
|
|
27910
|
+
if (dataView.byteLength < this.toBinaryLengthBytes()) {
|
|
27911
|
+
throw DataTrackSerializeError.tooSmallForHeader();
|
|
27912
|
+
}
|
|
27913
|
+
let initial = SUPPORTED_VERSION << VERSION_SHIFT;
|
|
27914
|
+
let marker;
|
|
27915
|
+
switch (this.marker) {
|
|
27916
|
+
case FrameMarker.Inter:
|
|
27917
|
+
marker = FRAME_MARKER_INTER;
|
|
27918
|
+
break;
|
|
27919
|
+
case FrameMarker.Final:
|
|
27920
|
+
marker = FRAME_MARKER_FINAL;
|
|
27921
|
+
break;
|
|
27922
|
+
case FrameMarker.Start:
|
|
27923
|
+
marker = FRAME_MARKER_START;
|
|
27924
|
+
break;
|
|
27925
|
+
case FrameMarker.Single:
|
|
27926
|
+
marker = FRAME_MARKER_SINGLE;
|
|
27927
|
+
break;
|
|
27928
|
+
}
|
|
27929
|
+
initial |= marker << FRAME_MARKER_SHIFT;
|
|
27930
|
+
const {
|
|
27931
|
+
lengthBytes: extensionsLengthBytes,
|
|
27932
|
+
lengthWords: extensionsLengthWords,
|
|
27933
|
+
paddingLengthBytes: extensionsPaddingLengthBytes
|
|
27934
|
+
} = this.extensionsMetrics();
|
|
27935
|
+
if (extensionsLengthBytes > 0) {
|
|
27936
|
+
initial |= 1 << EXT_FLAG_SHIFT;
|
|
27937
|
+
}
|
|
27938
|
+
let byteIndex = 0;
|
|
27939
|
+
dataView.setUint8(byteIndex, initial);
|
|
27940
|
+
byteIndex += U8_LENGTH_BYTES;
|
|
27941
|
+
dataView.setUint8(byteIndex, 0); // Reserved
|
|
27942
|
+
byteIndex += U8_LENGTH_BYTES;
|
|
27943
|
+
dataView.setUint16(byteIndex, this.trackHandle.value);
|
|
27944
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27945
|
+
dataView.setUint16(byteIndex, this.sequence.value);
|
|
27946
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27947
|
+
dataView.setUint16(byteIndex, this.frameNumber.value);
|
|
27948
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27949
|
+
dataView.setUint32(byteIndex, this.timestamp.asTicks());
|
|
27950
|
+
byteIndex += U32_LENGTH_BYTES;
|
|
27951
|
+
if (extensionsLengthBytes > 0) {
|
|
27952
|
+
// NOTE: The protocol is implemented in a way where if the extension bit is set, any
|
|
27953
|
+
// deserializer assumes the extensions section is at least one byte long, and the "length"
|
|
27954
|
+
// field represents the "number of additional bytes" long the extensions section is. This is
|
|
27955
|
+
// potentially unintuitive so I wanted to call it out.
|
|
27956
|
+
const rtpOrientedExtensionLengthWords = extensionsLengthWords - 1;
|
|
27957
|
+
dataView.setUint16(byteIndex, rtpOrientedExtensionLengthWords);
|
|
27958
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
27959
|
+
const extensionBytes = this.extensions.toBinaryInto(new DataView(dataView.buffer, dataView.byteOffset + byteIndex));
|
|
27960
|
+
byteIndex += extensionBytes;
|
|
27961
|
+
for (let i = 0; i < extensionsPaddingLengthBytes; i += 1) {
|
|
27962
|
+
dataView.setUint8(byteIndex, 0);
|
|
27963
|
+
byteIndex += U8_LENGTH_BYTES;
|
|
27964
|
+
}
|
|
27965
|
+
}
|
|
27966
|
+
const totalLengthBytes = this.toBinaryLengthBytes();
|
|
27967
|
+
if (byteIndex !== totalLengthBytes) {
|
|
27968
|
+
// @throws-transformer ignore - this should be treated as a "panic" and not be caught
|
|
27969
|
+
throw new Error("DataTrackPacketHeader.toBinaryInto: Wrote ".concat(byteIndex, " bytes but expected length was ").concat(totalLengthBytes, " bytes"));
|
|
27970
|
+
}
|
|
27971
|
+
return totalLengthBytes;
|
|
27972
|
+
}
|
|
27973
|
+
static fromBinary(input) {
|
|
27974
|
+
const dataView = coerceToDataView(input);
|
|
27975
|
+
if (dataView.byteLength < BASE_HEADER_LEN) {
|
|
27976
|
+
throw DataTrackDeserializeError.tooShort();
|
|
27977
|
+
}
|
|
27978
|
+
let byteIndex = 0;
|
|
27979
|
+
const initial = dataView.getUint8(byteIndex);
|
|
27980
|
+
byteIndex += U8_LENGTH_BYTES;
|
|
27981
|
+
const version = initial >> VERSION_SHIFT & VERSION_MASK;
|
|
27982
|
+
if (version > SUPPORTED_VERSION) {
|
|
27983
|
+
throw DataTrackDeserializeError.unsupportedVersion(version);
|
|
27984
|
+
}
|
|
27985
|
+
let marker;
|
|
27986
|
+
switch (initial >> FRAME_MARKER_SHIFT & FRAME_MARKER_MASK) {
|
|
27987
|
+
case FRAME_MARKER_START:
|
|
27988
|
+
marker = FrameMarker.Start;
|
|
27989
|
+
break;
|
|
27990
|
+
case FRAME_MARKER_FINAL:
|
|
27991
|
+
marker = FrameMarker.Final;
|
|
27992
|
+
break;
|
|
27993
|
+
case FRAME_MARKER_SINGLE:
|
|
27994
|
+
marker = FrameMarker.Single;
|
|
27995
|
+
break;
|
|
27996
|
+
case FRAME_MARKER_INTER:
|
|
27997
|
+
default:
|
|
27998
|
+
marker = FrameMarker.Inter;
|
|
27999
|
+
break;
|
|
28000
|
+
}
|
|
28001
|
+
const extensionsFlag = (initial >> EXT_FLAG_SHIFT & EXT_FLAG_MASK) > 0;
|
|
28002
|
+
byteIndex += U8_LENGTH_BYTES; // Reserved
|
|
28003
|
+
let trackHandle;
|
|
28004
|
+
try {
|
|
28005
|
+
trackHandle = DataTrackHandle.fromNumber(dataView.getUint16(byteIndex));
|
|
28006
|
+
} catch (e) {
|
|
28007
|
+
if (e instanceof DataTrackHandleError && (e.isReason(DataTrackHandleErrorReason.Reserved) || e.isReason(DataTrackHandleErrorReason.TooLarge))) {
|
|
28008
|
+
throw DataTrackDeserializeError.invalidHandle(e);
|
|
28009
|
+
} else {
|
|
28010
|
+
throw e;
|
|
28011
|
+
}
|
|
28012
|
+
}
|
|
28013
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
28014
|
+
const sequence = WrapAroundUnsignedInt.u16(dataView.getUint16(byteIndex));
|
|
28015
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
28016
|
+
const frameNumber = WrapAroundUnsignedInt.u16(dataView.getUint16(byteIndex));
|
|
28017
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
28018
|
+
const timestamp = DataTrackTimestamp.fromRtpTicks(dataView.getUint32(byteIndex));
|
|
28019
|
+
byteIndex += U32_LENGTH_BYTES;
|
|
28020
|
+
let extensions = new DataTrackExtensions();
|
|
28021
|
+
if (extensionsFlag) {
|
|
28022
|
+
if (dataView.byteLength - byteIndex < U16_LENGTH_BYTES) {
|
|
28023
|
+
throw DataTrackDeserializeError.missingExtWords();
|
|
28024
|
+
}
|
|
28025
|
+
let rtpOrientedExtensionWords = dataView.getUint16(byteIndex);
|
|
28026
|
+
byteIndex += U16_LENGTH_BYTES;
|
|
28027
|
+
// NOTE: The protocol is implemented in a way where if the extension bit is set, any
|
|
28028
|
+
// deserializer assumes the extensions section is at least one byte long, and the "length"
|
|
28029
|
+
// field represents the "number of additional bytes" long the extensions section is. This is
|
|
28030
|
+
// potentially unintuitive so I wanted to call it out.
|
|
28031
|
+
const extensionWords = rtpOrientedExtensionWords + 1;
|
|
28032
|
+
let extensionLengthBytes = 4 * extensionWords;
|
|
28033
|
+
if (byteIndex + extensionLengthBytes > dataView.byteLength) {
|
|
28034
|
+
throw DataTrackDeserializeError.headerOverrun();
|
|
28035
|
+
}
|
|
28036
|
+
let extensionDataView = new DataView(dataView.buffer, dataView.byteOffset + byteIndex, extensionLengthBytes);
|
|
28037
|
+
const [result, readBytes] = DataTrackExtensions.fromBinary(extensionDataView);
|
|
28038
|
+
extensions = result;
|
|
28039
|
+
byteIndex += readBytes;
|
|
28040
|
+
}
|
|
28041
|
+
return [new DataTrackPacketHeader({
|
|
28042
|
+
marker,
|
|
28043
|
+
trackHandle: trackHandle,
|
|
28044
|
+
sequence,
|
|
28045
|
+
frameNumber,
|
|
28046
|
+
timestamp,
|
|
28047
|
+
extensions
|
|
28048
|
+
}), byteIndex];
|
|
28049
|
+
}
|
|
28050
|
+
toJSON() {
|
|
28051
|
+
return {
|
|
28052
|
+
marker: this.marker,
|
|
28053
|
+
trackHandle: this.trackHandle.value,
|
|
28054
|
+
sequence: this.sequence.value,
|
|
28055
|
+
frameNumber: this.frameNumber.value,
|
|
28056
|
+
timestamp: this.timestamp.asTicks(),
|
|
28057
|
+
extensions: this.extensions.toJSON()
|
|
28058
|
+
};
|
|
28059
|
+
}
|
|
28060
|
+
}
|
|
28061
|
+
/** Marker indicating a packet's position in relation to a frame. */
|
|
28062
|
+
var FrameMarker;
|
|
28063
|
+
(function (FrameMarker) {
|
|
28064
|
+
/** Packet is the first in a frame. */
|
|
28065
|
+
FrameMarker[FrameMarker["Start"] = 0] = "Start";
|
|
28066
|
+
/** Packet is within a frame. */
|
|
28067
|
+
FrameMarker[FrameMarker["Inter"] = 1] = "Inter";
|
|
28068
|
+
/** Packet is the last in a frame. */
|
|
28069
|
+
FrameMarker[FrameMarker["Final"] = 2] = "Final";
|
|
28070
|
+
/** Packet is the only one in a frame. */
|
|
28071
|
+
FrameMarker[FrameMarker["Single"] = 3] = "Single";
|
|
28072
|
+
})(FrameMarker || (FrameMarker = {}));
|
|
28073
|
+
/** A class for serializing / deserializing data track packets. */
|
|
28074
|
+
class DataTrackPacket extends Serializable {
|
|
28075
|
+
constructor(header, payload) {
|
|
28076
|
+
super();
|
|
28077
|
+
this.header = header;
|
|
28078
|
+
this.payload = payload;
|
|
28079
|
+
}
|
|
28080
|
+
toBinaryLengthBytes() {
|
|
28081
|
+
return this.header.toBinaryLengthBytes() + this.payload.byteLength;
|
|
28082
|
+
}
|
|
28083
|
+
toBinaryInto(dataView) {
|
|
28084
|
+
let byteIndex = 0;
|
|
28085
|
+
const headerLengthBytes = this.header.toBinaryInto(dataView);
|
|
28086
|
+
byteIndex += headerLengthBytes;
|
|
28087
|
+
if (dataView.byteLength - byteIndex < this.payload.byteLength) {
|
|
28088
|
+
throw DataTrackSerializeError.tooSmallForPayload();
|
|
28089
|
+
}
|
|
28090
|
+
for (let index = 0; index < this.payload.length; index += 1) {
|
|
28091
|
+
dataView.setUint8(byteIndex, this.payload[index]);
|
|
28092
|
+
byteIndex += U8_LENGTH_BYTES;
|
|
28093
|
+
}
|
|
28094
|
+
const totalLengthBytes = this.toBinaryLengthBytes();
|
|
28095
|
+
if (byteIndex !== totalLengthBytes) {
|
|
28096
|
+
// @throws-transformer ignore - this should be treated as a "panic" and not be caught
|
|
28097
|
+
throw new Error("DataTrackPacket.toBinaryInto: Wrote ".concat(byteIndex, " bytes but expected length was ").concat(totalLengthBytes, " bytes"));
|
|
28098
|
+
}
|
|
28099
|
+
return totalLengthBytes;
|
|
28100
|
+
}
|
|
28101
|
+
static fromBinary(input) {
|
|
28102
|
+
const dataView = coerceToDataView(input);
|
|
28103
|
+
const [header, headerByteLength] = DataTrackPacketHeader.fromBinary(dataView);
|
|
28104
|
+
const payload = dataView.buffer.slice(dataView.byteOffset + headerByteLength, dataView.byteOffset + dataView.byteLength);
|
|
28105
|
+
return [new DataTrackPacket(header, new Uint8Array(payload)), dataView.byteLength];
|
|
28106
|
+
}
|
|
28107
|
+
toJSON() {
|
|
28108
|
+
return {
|
|
28109
|
+
header: this.header.toJSON(),
|
|
28110
|
+
payload: this.payload
|
|
28111
|
+
};
|
|
28112
|
+
}
|
|
28113
|
+
}var DataTrackPacketizerReason;
|
|
28114
|
+
(function (DataTrackPacketizerReason) {
|
|
28115
|
+
DataTrackPacketizerReason[DataTrackPacketizerReason["MtuTooShort"] = 0] = "MtuTooShort";
|
|
28116
|
+
})(DataTrackPacketizerReason || (DataTrackPacketizerReason = {}));getLogger(LoggerNames.DataTracks);
|
|
28117
|
+
/** Reason why a frame was dropped. */
|
|
28118
|
+
var DataTrackDepacketizerDropReason;
|
|
28119
|
+
(function (DataTrackDepacketizerDropReason) {
|
|
28120
|
+
DataTrackDepacketizerDropReason[DataTrackDepacketizerDropReason["Interrupted"] = 0] = "Interrupted";
|
|
28121
|
+
DataTrackDepacketizerDropReason[DataTrackDepacketizerDropReason["UnknownFrame"] = 1] = "UnknownFrame";
|
|
28122
|
+
DataTrackDepacketizerDropReason[DataTrackDepacketizerDropReason["BufferFull"] = 2] = "BufferFull";
|
|
28123
|
+
DataTrackDepacketizerDropReason[DataTrackDepacketizerDropReason["Incomplete"] = 3] = "Incomplete";
|
|
28124
|
+
})(DataTrackDepacketizerDropReason || (DataTrackDepacketizerDropReason = {}));var CheckStatus;
|
|
27205
28125
|
(function (CheckStatus) {
|
|
27206
28126
|
CheckStatus[CheckStatus["IDLE"] = 0] = "IDLE";
|
|
27207
28127
|
CheckStatus[CheckStatus["RUNNING"] = 1] = "RUNNING";
|
|
@@ -28546,4 +29466,4 @@ function facingModeFromDeviceLabel(deviceLabel) {
|
|
|
28546
29466
|
function isFacingModeValue(item) {
|
|
28547
29467
|
const allowedValues = ['user', 'environment', 'left', 'right'];
|
|
28548
29468
|
return item === undefined || allowedValues.includes(item);
|
|
28549
|
-
}export{AudioPresets,BackupCodecPolicy,BaseKeyProvider,CheckStatus,Checker,ConnectionCheck,ConnectionError,ConnectionErrorReason,ConnectionQuality,ConnectionState,CriticalTimers,CryptorError,CryptorErrorReason,CryptorEvent,DataPacket_Kind,DataStreamError,DataStreamErrorReason,DefaultReconnectPolicy,DeviceUnsupportedError,DisconnectReason,EncryptionEvent,Encryption_Type,EngineEvent,ExternalE2EEKeyProvider,KeyHandlerEvent,KeyProviderEvent,LivekitError,LocalAudioTrack,LocalParticipant,LocalTrack,LocalTrackPublication,LocalTrackRecorder,LocalVideoTrack,LogLevel,LoggerNames,MediaDeviceFailure,_ as Mutex,NegotiationError,Participant,ParticipantEvent,ParticipantInfo_Kind as ParticipantKind,PublishDataError,PublishTrackError,RemoteAudioTrack,RemoteParticipant,RemoteTrack,RemoteTrackPublication,RemoteVideoTrack,Room,RoomEvent,RpcError,ScreenSharePresets,SignalReconnectError,SignalRequestError,SimulatedError,SubscriptionError,TokenSource,TokenSourceConfigurable,TokenSourceFixed,Track,TrackEvent,TrackInvalidError,TrackPublication,TrackType,UnexpectedConnectionState,UnsupportedServer,VideoPreset,VideoPresets,VideoPresets43,VideoQuality,areTokenSourceFetchOptionsEqual,asEncryptablePacket,attachToElement,attributeTypings as attributes,audioCodecs,compareVersions,createAudioAnalyser,createE2EEKey,createKeyMaterialFromBuffer,createKeyMaterialFromString,createLocalAudioTrack,createLocalScreenTracks,createLocalTracks,createLocalVideoTrack,decodeTokenPayload,deriveKeys,detachTrack,facingModeFromDeviceLabel,facingModeFromLocalTrack,getBrowser,getEmptyAudioStreamTrack,getEmptyVideoStreamTrack,getLogger,importKey,isAudioCodec,isAudioTrack,isBackupCodec,isBackupVideoCodec,isBrowserSupported,isE2EESupported,isInsertableStreamSupported,isLocalParticipant,isLocalTrack,isRemoteParticipant,isRemoteTrack,isScriptTransformSupported,isVideoCodec,isVideoFrame,isVideoTrack,needsRbspUnescaping,parseRbsp,protocolVersion,ratchet,setLogExtension,setLogLevel,supportsAV1,supportsAdaptiveStream,supportsAudioOutputSelection,supportsDynacast,supportsVP9,version,videoCodecs,writeRbsp};//# sourceMappingURL=livekit-client.esm.mjs.map
|
|
29469
|
+
}export{AudioPresets,BackupCodecPolicy,BaseKeyProvider,CheckStatus,Checker,ConnectionCheck,ConnectionError,ConnectionErrorReason,ConnectionQuality,ConnectionState,CriticalTimers,CryptorError,CryptorErrorReason,CryptorEvent,DataPacket_Kind,DataStreamError,DataStreamErrorReason,DataTrackPacket,DefaultReconnectPolicy,DeviceUnsupportedError,DisconnectReason,EncryptionEvent,Encryption_Type,EngineEvent,ExternalE2EEKeyProvider,KeyHandlerEvent,KeyProviderEvent,LivekitError,LivekitReasonedError,LocalAudioTrack,LocalParticipant,LocalTrack,LocalTrackPublication,LocalTrackRecorder,LocalVideoTrack,LogLevel,LoggerNames,MediaDeviceFailure,_ as Mutex,NegotiationError,Participant,ParticipantEvent,ParticipantInfo_Kind as ParticipantKind,PublishDataError,PublishTrackError,RemoteAudioTrack,RemoteParticipant,RemoteTrack,RemoteTrackPublication,RemoteVideoTrack,Room,RoomEvent,RpcError,ScreenSharePresets,SignalReconnectError,SignalRequestError,SimulatedError,SubscriptionError,TokenSource,TokenSourceConfigurable,TokenSourceFixed,Track,TrackEvent,TrackInvalidError,TrackPublication,TrackType,UnexpectedConnectionState,UnsupportedServer,VideoPreset,VideoPresets,VideoPresets43,VideoQuality,areTokenSourceFetchOptionsEqual,asEncryptablePacket,attachToElement,attributeTypings as attributes,audioCodecs,compareVersions,createAudioAnalyser,createE2EEKey,createKeyMaterialFromBuffer,createKeyMaterialFromString,createLocalAudioTrack,createLocalScreenTracks,createLocalTracks,createLocalVideoTrack,decodeTokenPayload,deriveKeys,detachTrack,facingModeFromDeviceLabel,facingModeFromLocalTrack,getBrowser,getEmptyAudioStreamTrack,getEmptyVideoStreamTrack,getLogger,importKey,isAudioCodec,isAudioTrack,isBackupCodec,isBackupVideoCodec,isBrowserSupported,isE2EESupported,isInsertableStreamSupported,isLocalParticipant,isLocalTrack,isRemoteParticipant,isRemoteTrack,isScriptTransformSupported,isVideoCodec,isVideoFrame,isVideoTrack,needsRbspUnescaping,parseRbsp,protocolVersion,ratchet,setLogExtension,setLogLevel,supportsAV1,supportsAdaptiveStream,supportsAudioOutputSelection,supportsDynacast,supportsVP9,version,videoCodecs,writeRbsp};//# sourceMappingURL=livekit-client.esm.mjs.map
|