livekit-client 1.7.1 → 1.8.0
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/README.md +20 -1
- package/dist/livekit-client.esm.mjs +2178 -1060
- 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/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/src/proto/livekit_models.d.ts +32 -0
- package/dist/src/proto/livekit_models.d.ts.map +1 -1
- package/dist/src/proto/livekit_rtc.d.ts +315 -75
- package/dist/src/proto/livekit_rtc.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +8 -1
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/ReconnectPolicy.d.ts +1 -0
- package/dist/src/room/ReconnectPolicy.d.ts.map +1 -1
- package/dist/src/room/RegionUrlProvider.d.ts +14 -0
- package/dist/src/room/RegionUrlProvider.d.ts.map +1 -0
- package/dist/src/room/Room.d.ts +4 -0
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/errors.d.ts +2 -1
- package/dist/src/room/errors.d.ts.map +1 -1
- package/dist/src/room/events.d.ts +8 -2
- package/dist/src/room/events.d.ts.map +1 -1
- package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +3 -2
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/Track.d.ts +3 -1
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/src/room/types.d.ts +4 -0
- package/dist/src/room/types.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +4 -0
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/ts4.2/src/index.d.ts +3 -1
- package/dist/ts4.2/src/proto/livekit_models.d.ts +32 -0
- package/dist/ts4.2/src/proto/livekit_rtc.d.ts +348 -84
- package/dist/ts4.2/src/room/RTCEngine.d.ts +8 -1
- package/dist/ts4.2/src/room/ReconnectPolicy.d.ts +1 -0
- package/dist/ts4.2/src/room/RegionUrlProvider.d.ts +14 -0
- package/dist/ts4.2/src/room/Room.d.ts +4 -0
- package/dist/ts4.2/src/room/errors.d.ts +2 -1
- package/dist/ts4.2/src/room/events.d.ts +8 -2
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +3 -2
- package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/RemoteVideoTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/Track.d.ts +3 -1
- package/dist/ts4.2/src/room/types.d.ts +4 -0
- package/dist/ts4.2/src/room/utils.d.ts +4 -0
- package/package.json +19 -19
- package/src/api/SignalClient.ts +4 -4
- package/src/index.ts +3 -0
- package/src/proto/google/protobuf/timestamp.ts +15 -6
- package/src/proto/livekit_models.ts +903 -222
- package/src/proto/livekit_rtc.ts +1053 -279
- package/src/room/RTCEngine.ts +143 -40
- package/src/room/ReconnectPolicy.ts +2 -0
- package/src/room/RegionUrlProvider.ts +73 -0
- package/src/room/Room.ts +201 -132
- package/src/room/errors.ts +1 -0
- package/src/room/events.ts +7 -0
- package/src/room/track/LocalAudioTrack.ts +13 -6
- package/src/room/track/LocalTrack.ts +22 -8
- package/src/room/track/LocalVideoTrack.ts +12 -6
- package/src/room/track/RemoteTrackPublication.ts +4 -3
- package/src/room/track/RemoteVideoTrack.ts +5 -4
- package/src/room/track/Track.ts +46 -31
- package/src/room/types.ts +6 -0
- package/src/room/utils.ts +53 -0
package/src/proto/livekit_rtc.ts
CHANGED
@@ -310,6 +310,7 @@ export interface UpdateVideoLayers {
|
|
310
310
|
|
311
311
|
export interface UpdateParticipantMetadata {
|
312
312
|
metadata: string;
|
313
|
+
name: string;
|
313
314
|
}
|
314
315
|
|
315
316
|
export interface ICEServer {
|
@@ -403,7 +404,8 @@ export interface SimulateScenario {
|
|
403
404
|
| { $case: "nodeFailure"; nodeFailure: boolean }
|
404
405
|
| { $case: "migration"; migration: boolean }
|
405
406
|
| { $case: "serverLeave"; serverLeave: boolean }
|
406
|
-
| { $case: "switchCandidateProtocol"; switchCandidateProtocol: CandidateProtocol }
|
407
|
+
| { $case: "switchCandidateProtocol"; switchCandidateProtocol: CandidateProtocol }
|
408
|
+
| { $case: "subscriberBandwidth"; subscriberBandwidth: number };
|
407
409
|
}
|
408
410
|
|
409
411
|
export interface Ping {
|
@@ -418,6 +420,16 @@ export interface Pong {
|
|
418
420
|
timestamp: number;
|
419
421
|
}
|
420
422
|
|
423
|
+
export interface RegionSettings {
|
424
|
+
regions: RegionInfo[];
|
425
|
+
}
|
426
|
+
|
427
|
+
export interface RegionInfo {
|
428
|
+
region: string;
|
429
|
+
url: string;
|
430
|
+
distance: number;
|
431
|
+
}
|
432
|
+
|
421
433
|
function createBaseSignalRequest(): SignalRequest {
|
422
434
|
return { message: undefined };
|
423
435
|
}
|
@@ -475,70 +487,131 @@ export const SignalRequest = {
|
|
475
487
|
},
|
476
488
|
|
477
489
|
decode(input: _m0.Reader | Uint8Array, length?: number): SignalRequest {
|
478
|
-
const reader = input instanceof _m0.Reader ? input :
|
490
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
479
491
|
let end = length === undefined ? reader.len : reader.pos + length;
|
480
492
|
const message = createBaseSignalRequest();
|
481
493
|
while (reader.pos < end) {
|
482
494
|
const tag = reader.uint32();
|
483
495
|
switch (tag >>> 3) {
|
484
496
|
case 1:
|
497
|
+
if (tag != 10) {
|
498
|
+
break;
|
499
|
+
}
|
500
|
+
|
485
501
|
message.message = { $case: "offer", offer: SessionDescription.decode(reader, reader.uint32()) };
|
486
|
-
|
502
|
+
continue;
|
487
503
|
case 2:
|
504
|
+
if (tag != 18) {
|
505
|
+
break;
|
506
|
+
}
|
507
|
+
|
488
508
|
message.message = { $case: "answer", answer: SessionDescription.decode(reader, reader.uint32()) };
|
489
|
-
|
509
|
+
continue;
|
490
510
|
case 3:
|
511
|
+
if (tag != 26) {
|
512
|
+
break;
|
513
|
+
}
|
514
|
+
|
491
515
|
message.message = { $case: "trickle", trickle: TrickleRequest.decode(reader, reader.uint32()) };
|
492
|
-
|
516
|
+
continue;
|
493
517
|
case 4:
|
518
|
+
if (tag != 34) {
|
519
|
+
break;
|
520
|
+
}
|
521
|
+
|
494
522
|
message.message = { $case: "addTrack", addTrack: AddTrackRequest.decode(reader, reader.uint32()) };
|
495
|
-
|
523
|
+
continue;
|
496
524
|
case 5:
|
525
|
+
if (tag != 42) {
|
526
|
+
break;
|
527
|
+
}
|
528
|
+
|
497
529
|
message.message = { $case: "mute", mute: MuteTrackRequest.decode(reader, reader.uint32()) };
|
498
|
-
|
530
|
+
continue;
|
499
531
|
case 6:
|
532
|
+
if (tag != 50) {
|
533
|
+
break;
|
534
|
+
}
|
535
|
+
|
500
536
|
message.message = { $case: "subscription", subscription: UpdateSubscription.decode(reader, reader.uint32()) };
|
501
|
-
|
537
|
+
continue;
|
502
538
|
case 7:
|
539
|
+
if (tag != 58) {
|
540
|
+
break;
|
541
|
+
}
|
542
|
+
|
503
543
|
message.message = {
|
504
544
|
$case: "trackSetting",
|
505
545
|
trackSetting: UpdateTrackSettings.decode(reader, reader.uint32()),
|
506
546
|
};
|
507
|
-
|
547
|
+
continue;
|
508
548
|
case 8:
|
549
|
+
if (tag != 66) {
|
550
|
+
break;
|
551
|
+
}
|
552
|
+
|
509
553
|
message.message = { $case: "leave", leave: LeaveRequest.decode(reader, reader.uint32()) };
|
510
|
-
|
554
|
+
continue;
|
511
555
|
case 10:
|
556
|
+
if (tag != 82) {
|
557
|
+
break;
|
558
|
+
}
|
559
|
+
|
512
560
|
message.message = { $case: "updateLayers", updateLayers: UpdateVideoLayers.decode(reader, reader.uint32()) };
|
513
|
-
|
561
|
+
continue;
|
514
562
|
case 11:
|
563
|
+
if (tag != 90) {
|
564
|
+
break;
|
565
|
+
}
|
566
|
+
|
515
567
|
message.message = {
|
516
568
|
$case: "subscriptionPermission",
|
517
569
|
subscriptionPermission: SubscriptionPermission.decode(reader, reader.uint32()),
|
518
570
|
};
|
519
|
-
|
571
|
+
continue;
|
520
572
|
case 12:
|
573
|
+
if (tag != 98) {
|
574
|
+
break;
|
575
|
+
}
|
576
|
+
|
521
577
|
message.message = { $case: "syncState", syncState: SyncState.decode(reader, reader.uint32()) };
|
522
|
-
|
578
|
+
continue;
|
523
579
|
case 13:
|
580
|
+
if (tag != 106) {
|
581
|
+
break;
|
582
|
+
}
|
583
|
+
|
524
584
|
message.message = { $case: "simulate", simulate: SimulateScenario.decode(reader, reader.uint32()) };
|
525
|
-
|
585
|
+
continue;
|
526
586
|
case 14:
|
587
|
+
if (tag != 112) {
|
588
|
+
break;
|
589
|
+
}
|
590
|
+
|
527
591
|
message.message = { $case: "ping", ping: longToNumber(reader.int64() as Long) };
|
528
|
-
|
592
|
+
continue;
|
529
593
|
case 15:
|
594
|
+
if (tag != 122) {
|
595
|
+
break;
|
596
|
+
}
|
597
|
+
|
530
598
|
message.message = {
|
531
599
|
$case: "updateMetadata",
|
532
600
|
updateMetadata: UpdateParticipantMetadata.decode(reader, reader.uint32()),
|
533
601
|
};
|
534
|
-
|
602
|
+
continue;
|
535
603
|
case 16:
|
604
|
+
if (tag != 130) {
|
605
|
+
break;
|
606
|
+
}
|
607
|
+
|
536
608
|
message.message = { $case: "pingReq", pingReq: Ping.decode(reader, reader.uint32()) };
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
609
|
+
continue;
|
610
|
+
}
|
611
|
+
if ((tag & 7) == 4 || tag == 0) {
|
612
|
+
break;
|
541
613
|
}
|
614
|
+
reader.skipType(tag & 7);
|
542
615
|
}
|
543
616
|
return message;
|
544
617
|
},
|
@@ -798,94 +871,171 @@ export const SignalResponse = {
|
|
798
871
|
},
|
799
872
|
|
800
873
|
decode(input: _m0.Reader | Uint8Array, length?: number): SignalResponse {
|
801
|
-
const reader = input instanceof _m0.Reader ? input :
|
874
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
802
875
|
let end = length === undefined ? reader.len : reader.pos + length;
|
803
876
|
const message = createBaseSignalResponse();
|
804
877
|
while (reader.pos < end) {
|
805
878
|
const tag = reader.uint32();
|
806
879
|
switch (tag >>> 3) {
|
807
880
|
case 1:
|
881
|
+
if (tag != 10) {
|
882
|
+
break;
|
883
|
+
}
|
884
|
+
|
808
885
|
message.message = { $case: "join", join: JoinResponse.decode(reader, reader.uint32()) };
|
809
|
-
|
886
|
+
continue;
|
810
887
|
case 2:
|
888
|
+
if (tag != 18) {
|
889
|
+
break;
|
890
|
+
}
|
891
|
+
|
811
892
|
message.message = { $case: "answer", answer: SessionDescription.decode(reader, reader.uint32()) };
|
812
|
-
|
893
|
+
continue;
|
813
894
|
case 3:
|
895
|
+
if (tag != 26) {
|
896
|
+
break;
|
897
|
+
}
|
898
|
+
|
814
899
|
message.message = { $case: "offer", offer: SessionDescription.decode(reader, reader.uint32()) };
|
815
|
-
|
900
|
+
continue;
|
816
901
|
case 4:
|
902
|
+
if (tag != 34) {
|
903
|
+
break;
|
904
|
+
}
|
905
|
+
|
817
906
|
message.message = { $case: "trickle", trickle: TrickleRequest.decode(reader, reader.uint32()) };
|
818
|
-
|
907
|
+
continue;
|
819
908
|
case 5:
|
909
|
+
if (tag != 42) {
|
910
|
+
break;
|
911
|
+
}
|
912
|
+
|
820
913
|
message.message = { $case: "update", update: ParticipantUpdate.decode(reader, reader.uint32()) };
|
821
|
-
|
914
|
+
continue;
|
822
915
|
case 6:
|
916
|
+
if (tag != 50) {
|
917
|
+
break;
|
918
|
+
}
|
919
|
+
|
823
920
|
message.message = {
|
824
921
|
$case: "trackPublished",
|
825
922
|
trackPublished: TrackPublishedResponse.decode(reader, reader.uint32()),
|
826
923
|
};
|
827
|
-
|
924
|
+
continue;
|
828
925
|
case 8:
|
926
|
+
if (tag != 66) {
|
927
|
+
break;
|
928
|
+
}
|
929
|
+
|
829
930
|
message.message = { $case: "leave", leave: LeaveRequest.decode(reader, reader.uint32()) };
|
830
|
-
|
931
|
+
continue;
|
831
932
|
case 9:
|
933
|
+
if (tag != 74) {
|
934
|
+
break;
|
935
|
+
}
|
936
|
+
|
832
937
|
message.message = { $case: "mute", mute: MuteTrackRequest.decode(reader, reader.uint32()) };
|
833
|
-
|
938
|
+
continue;
|
834
939
|
case 10:
|
940
|
+
if (tag != 82) {
|
941
|
+
break;
|
942
|
+
}
|
943
|
+
|
835
944
|
message.message = {
|
836
945
|
$case: "speakersChanged",
|
837
946
|
speakersChanged: SpeakersChanged.decode(reader, reader.uint32()),
|
838
947
|
};
|
839
|
-
|
948
|
+
continue;
|
840
949
|
case 11:
|
950
|
+
if (tag != 90) {
|
951
|
+
break;
|
952
|
+
}
|
953
|
+
|
841
954
|
message.message = { $case: "roomUpdate", roomUpdate: RoomUpdate.decode(reader, reader.uint32()) };
|
842
|
-
|
955
|
+
continue;
|
843
956
|
case 12:
|
957
|
+
if (tag != 98) {
|
958
|
+
break;
|
959
|
+
}
|
960
|
+
|
844
961
|
message.message = {
|
845
962
|
$case: "connectionQuality",
|
846
963
|
connectionQuality: ConnectionQualityUpdate.decode(reader, reader.uint32()),
|
847
964
|
};
|
848
|
-
|
965
|
+
continue;
|
849
966
|
case 13:
|
967
|
+
if (tag != 106) {
|
968
|
+
break;
|
969
|
+
}
|
970
|
+
|
850
971
|
message.message = {
|
851
972
|
$case: "streamStateUpdate",
|
852
973
|
streamStateUpdate: StreamStateUpdate.decode(reader, reader.uint32()),
|
853
974
|
};
|
854
|
-
|
975
|
+
continue;
|
855
976
|
case 14:
|
977
|
+
if (tag != 114) {
|
978
|
+
break;
|
979
|
+
}
|
980
|
+
|
856
981
|
message.message = {
|
857
982
|
$case: "subscribedQualityUpdate",
|
858
983
|
subscribedQualityUpdate: SubscribedQualityUpdate.decode(reader, reader.uint32()),
|
859
984
|
};
|
860
|
-
|
985
|
+
continue;
|
861
986
|
case 15:
|
987
|
+
if (tag != 122) {
|
988
|
+
break;
|
989
|
+
}
|
990
|
+
|
862
991
|
message.message = {
|
863
992
|
$case: "subscriptionPermissionUpdate",
|
864
993
|
subscriptionPermissionUpdate: SubscriptionPermissionUpdate.decode(reader, reader.uint32()),
|
865
994
|
};
|
866
|
-
|
995
|
+
continue;
|
867
996
|
case 16:
|
997
|
+
if (tag != 130) {
|
998
|
+
break;
|
999
|
+
}
|
1000
|
+
|
868
1001
|
message.message = { $case: "refreshToken", refreshToken: reader.string() };
|
869
|
-
|
1002
|
+
continue;
|
870
1003
|
case 17:
|
1004
|
+
if (tag != 138) {
|
1005
|
+
break;
|
1006
|
+
}
|
1007
|
+
|
871
1008
|
message.message = {
|
872
1009
|
$case: "trackUnpublished",
|
873
1010
|
trackUnpublished: TrackUnpublishedResponse.decode(reader, reader.uint32()),
|
874
1011
|
};
|
875
|
-
|
1012
|
+
continue;
|
876
1013
|
case 18:
|
1014
|
+
if (tag != 144) {
|
1015
|
+
break;
|
1016
|
+
}
|
1017
|
+
|
877
1018
|
message.message = { $case: "pong", pong: longToNumber(reader.int64() as Long) };
|
878
|
-
|
1019
|
+
continue;
|
879
1020
|
case 19:
|
1021
|
+
if (tag != 154) {
|
1022
|
+
break;
|
1023
|
+
}
|
1024
|
+
|
880
1025
|
message.message = { $case: "reconnect", reconnect: ReconnectResponse.decode(reader, reader.uint32()) };
|
881
|
-
|
1026
|
+
continue;
|
882
1027
|
case 20:
|
1028
|
+
if (tag != 162) {
|
1029
|
+
break;
|
1030
|
+
}
|
1031
|
+
|
883
1032
|
message.message = { $case: "pongResp", pongResp: Pong.decode(reader, reader.uint32()) };
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
1033
|
+
continue;
|
1034
|
+
}
|
1035
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1036
|
+
break;
|
888
1037
|
}
|
1038
|
+
reader.skipType(tag & 7);
|
889
1039
|
}
|
890
1040
|
return message;
|
891
1041
|
},
|
@@ -1145,25 +1295,38 @@ export const SimulcastCodec = {
|
|
1145
1295
|
},
|
1146
1296
|
|
1147
1297
|
decode(input: _m0.Reader | Uint8Array, length?: number): SimulcastCodec {
|
1148
|
-
const reader = input instanceof _m0.Reader ? input :
|
1298
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1149
1299
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1150
1300
|
const message = createBaseSimulcastCodec();
|
1151
1301
|
while (reader.pos < end) {
|
1152
1302
|
const tag = reader.uint32();
|
1153
1303
|
switch (tag >>> 3) {
|
1154
1304
|
case 1:
|
1305
|
+
if (tag != 10) {
|
1306
|
+
break;
|
1307
|
+
}
|
1308
|
+
|
1155
1309
|
message.codec = reader.string();
|
1156
|
-
|
1310
|
+
continue;
|
1157
1311
|
case 2:
|
1312
|
+
if (tag != 18) {
|
1313
|
+
break;
|
1314
|
+
}
|
1315
|
+
|
1158
1316
|
message.cid = reader.string();
|
1159
|
-
|
1317
|
+
continue;
|
1160
1318
|
case 3:
|
1319
|
+
if (tag != 24) {
|
1320
|
+
break;
|
1321
|
+
}
|
1322
|
+
|
1161
1323
|
message.enableSimulcastLayers = reader.bool();
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1324
|
+
continue;
|
1325
|
+
}
|
1326
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1327
|
+
break;
|
1166
1328
|
}
|
1329
|
+
reader.skipType(tag & 7);
|
1167
1330
|
}
|
1168
1331
|
return message;
|
1169
1332
|
},
|
@@ -1264,58 +1427,115 @@ export const AddTrackRequest = {
|
|
1264
1427
|
},
|
1265
1428
|
|
1266
1429
|
decode(input: _m0.Reader | Uint8Array, length?: number): AddTrackRequest {
|
1267
|
-
const reader = input instanceof _m0.Reader ? input :
|
1430
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1268
1431
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1269
1432
|
const message = createBaseAddTrackRequest();
|
1270
1433
|
while (reader.pos < end) {
|
1271
1434
|
const tag = reader.uint32();
|
1272
1435
|
switch (tag >>> 3) {
|
1273
1436
|
case 1:
|
1437
|
+
if (tag != 10) {
|
1438
|
+
break;
|
1439
|
+
}
|
1440
|
+
|
1274
1441
|
message.cid = reader.string();
|
1275
|
-
|
1442
|
+
continue;
|
1276
1443
|
case 2:
|
1444
|
+
if (tag != 18) {
|
1445
|
+
break;
|
1446
|
+
}
|
1447
|
+
|
1277
1448
|
message.name = reader.string();
|
1278
|
-
|
1449
|
+
continue;
|
1279
1450
|
case 3:
|
1451
|
+
if (tag != 24) {
|
1452
|
+
break;
|
1453
|
+
}
|
1454
|
+
|
1280
1455
|
message.type = reader.int32() as any;
|
1281
|
-
|
1456
|
+
continue;
|
1282
1457
|
case 4:
|
1458
|
+
if (tag != 32) {
|
1459
|
+
break;
|
1460
|
+
}
|
1461
|
+
|
1283
1462
|
message.width = reader.uint32();
|
1284
|
-
|
1463
|
+
continue;
|
1285
1464
|
case 5:
|
1465
|
+
if (tag != 40) {
|
1466
|
+
break;
|
1467
|
+
}
|
1468
|
+
|
1286
1469
|
message.height = reader.uint32();
|
1287
|
-
|
1470
|
+
continue;
|
1288
1471
|
case 6:
|
1472
|
+
if (tag != 48) {
|
1473
|
+
break;
|
1474
|
+
}
|
1475
|
+
|
1289
1476
|
message.muted = reader.bool();
|
1290
|
-
|
1477
|
+
continue;
|
1291
1478
|
case 7:
|
1479
|
+
if (tag != 56) {
|
1480
|
+
break;
|
1481
|
+
}
|
1482
|
+
|
1292
1483
|
message.disableDtx = reader.bool();
|
1293
|
-
|
1484
|
+
continue;
|
1294
1485
|
case 8:
|
1486
|
+
if (tag != 64) {
|
1487
|
+
break;
|
1488
|
+
}
|
1489
|
+
|
1295
1490
|
message.source = reader.int32() as any;
|
1296
|
-
|
1491
|
+
continue;
|
1297
1492
|
case 9:
|
1493
|
+
if (tag != 74) {
|
1494
|
+
break;
|
1495
|
+
}
|
1496
|
+
|
1298
1497
|
message.layers.push(VideoLayer.decode(reader, reader.uint32()));
|
1299
|
-
|
1498
|
+
continue;
|
1300
1499
|
case 10:
|
1500
|
+
if (tag != 82) {
|
1501
|
+
break;
|
1502
|
+
}
|
1503
|
+
|
1301
1504
|
message.simulcastCodecs.push(SimulcastCodec.decode(reader, reader.uint32()));
|
1302
|
-
|
1505
|
+
continue;
|
1303
1506
|
case 11:
|
1507
|
+
if (tag != 90) {
|
1508
|
+
break;
|
1509
|
+
}
|
1510
|
+
|
1304
1511
|
message.sid = reader.string();
|
1305
|
-
|
1512
|
+
continue;
|
1306
1513
|
case 12:
|
1514
|
+
if (tag != 96) {
|
1515
|
+
break;
|
1516
|
+
}
|
1517
|
+
|
1307
1518
|
message.stereo = reader.bool();
|
1308
|
-
|
1519
|
+
continue;
|
1309
1520
|
case 13:
|
1521
|
+
if (tag != 104) {
|
1522
|
+
break;
|
1523
|
+
}
|
1524
|
+
|
1310
1525
|
message.disableRed = reader.bool();
|
1311
|
-
|
1526
|
+
continue;
|
1312
1527
|
case 14:
|
1528
|
+
if (tag != 112) {
|
1529
|
+
break;
|
1530
|
+
}
|
1531
|
+
|
1313
1532
|
message.encryption = reader.int32() as any;
|
1314
|
-
|
1315
|
-
default:
|
1316
|
-
reader.skipType(tag & 7);
|
1317
|
-
break;
|
1533
|
+
continue;
|
1318
1534
|
}
|
1535
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1536
|
+
break;
|
1537
|
+
}
|
1538
|
+
reader.skipType(tag & 7);
|
1319
1539
|
}
|
1320
1540
|
return message;
|
1321
1541
|
},
|
@@ -1408,22 +1628,31 @@ export const TrickleRequest = {
|
|
1408
1628
|
},
|
1409
1629
|
|
1410
1630
|
decode(input: _m0.Reader | Uint8Array, length?: number): TrickleRequest {
|
1411
|
-
const reader = input instanceof _m0.Reader ? input :
|
1631
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1412
1632
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1413
1633
|
const message = createBaseTrickleRequest();
|
1414
1634
|
while (reader.pos < end) {
|
1415
1635
|
const tag = reader.uint32();
|
1416
1636
|
switch (tag >>> 3) {
|
1417
1637
|
case 1:
|
1638
|
+
if (tag != 10) {
|
1639
|
+
break;
|
1640
|
+
}
|
1641
|
+
|
1418
1642
|
message.candidateInit = reader.string();
|
1419
|
-
|
1643
|
+
continue;
|
1420
1644
|
case 2:
|
1645
|
+
if (tag != 16) {
|
1646
|
+
break;
|
1647
|
+
}
|
1648
|
+
|
1421
1649
|
message.target = reader.int32() as any;
|
1422
|
-
|
1423
|
-
default:
|
1424
|
-
reader.skipType(tag & 7);
|
1425
|
-
break;
|
1650
|
+
continue;
|
1426
1651
|
}
|
1652
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1653
|
+
break;
|
1654
|
+
}
|
1655
|
+
reader.skipType(tag & 7);
|
1427
1656
|
}
|
1428
1657
|
return message;
|
1429
1658
|
},
|
@@ -1470,22 +1699,31 @@ export const MuteTrackRequest = {
|
|
1470
1699
|
},
|
1471
1700
|
|
1472
1701
|
decode(input: _m0.Reader | Uint8Array, length?: number): MuteTrackRequest {
|
1473
|
-
const reader = input instanceof _m0.Reader ? input :
|
1702
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1474
1703
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1475
1704
|
const message = createBaseMuteTrackRequest();
|
1476
1705
|
while (reader.pos < end) {
|
1477
1706
|
const tag = reader.uint32();
|
1478
1707
|
switch (tag >>> 3) {
|
1479
1708
|
case 1:
|
1709
|
+
if (tag != 10) {
|
1710
|
+
break;
|
1711
|
+
}
|
1712
|
+
|
1480
1713
|
message.sid = reader.string();
|
1481
|
-
|
1714
|
+
continue;
|
1482
1715
|
case 2:
|
1716
|
+
if (tag != 16) {
|
1717
|
+
break;
|
1718
|
+
}
|
1719
|
+
|
1483
1720
|
message.muted = reader.bool();
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1721
|
+
continue;
|
1722
|
+
}
|
1723
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1724
|
+
break;
|
1488
1725
|
}
|
1726
|
+
reader.skipType(tag & 7);
|
1489
1727
|
}
|
1490
1728
|
return message;
|
1491
1729
|
},
|
@@ -1575,52 +1813,101 @@ export const JoinResponse = {
|
|
1575
1813
|
},
|
1576
1814
|
|
1577
1815
|
decode(input: _m0.Reader | Uint8Array, length?: number): JoinResponse {
|
1578
|
-
const reader = input instanceof _m0.Reader ? input :
|
1816
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1579
1817
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1580
1818
|
const message = createBaseJoinResponse();
|
1581
1819
|
while (reader.pos < end) {
|
1582
1820
|
const tag = reader.uint32();
|
1583
1821
|
switch (tag >>> 3) {
|
1584
1822
|
case 1:
|
1823
|
+
if (tag != 10) {
|
1824
|
+
break;
|
1825
|
+
}
|
1826
|
+
|
1585
1827
|
message.room = Room.decode(reader, reader.uint32());
|
1586
|
-
|
1828
|
+
continue;
|
1587
1829
|
case 2:
|
1830
|
+
if (tag != 18) {
|
1831
|
+
break;
|
1832
|
+
}
|
1833
|
+
|
1588
1834
|
message.participant = ParticipantInfo.decode(reader, reader.uint32());
|
1589
|
-
|
1835
|
+
continue;
|
1590
1836
|
case 3:
|
1837
|
+
if (tag != 26) {
|
1838
|
+
break;
|
1839
|
+
}
|
1840
|
+
|
1591
1841
|
message.otherParticipants.push(ParticipantInfo.decode(reader, reader.uint32()));
|
1592
|
-
|
1842
|
+
continue;
|
1593
1843
|
case 4:
|
1844
|
+
if (tag != 34) {
|
1845
|
+
break;
|
1846
|
+
}
|
1847
|
+
|
1594
1848
|
message.serverVersion = reader.string();
|
1595
|
-
|
1849
|
+
continue;
|
1596
1850
|
case 5:
|
1851
|
+
if (tag != 42) {
|
1852
|
+
break;
|
1853
|
+
}
|
1854
|
+
|
1597
1855
|
message.iceServers.push(ICEServer.decode(reader, reader.uint32()));
|
1598
|
-
|
1856
|
+
continue;
|
1599
1857
|
case 6:
|
1858
|
+
if (tag != 48) {
|
1859
|
+
break;
|
1860
|
+
}
|
1861
|
+
|
1600
1862
|
message.subscriberPrimary = reader.bool();
|
1601
|
-
|
1863
|
+
continue;
|
1602
1864
|
case 7:
|
1865
|
+
if (tag != 58) {
|
1866
|
+
break;
|
1867
|
+
}
|
1868
|
+
|
1603
1869
|
message.alternativeUrl = reader.string();
|
1604
|
-
|
1870
|
+
continue;
|
1605
1871
|
case 8:
|
1872
|
+
if (tag != 66) {
|
1873
|
+
break;
|
1874
|
+
}
|
1875
|
+
|
1606
1876
|
message.clientConfiguration = ClientConfiguration.decode(reader, reader.uint32());
|
1607
|
-
|
1877
|
+
continue;
|
1608
1878
|
case 9:
|
1879
|
+
if (tag != 74) {
|
1880
|
+
break;
|
1881
|
+
}
|
1882
|
+
|
1609
1883
|
message.serverRegion = reader.string();
|
1610
|
-
|
1884
|
+
continue;
|
1611
1885
|
case 10:
|
1886
|
+
if (tag != 80) {
|
1887
|
+
break;
|
1888
|
+
}
|
1889
|
+
|
1612
1890
|
message.pingTimeout = reader.int32();
|
1613
|
-
|
1891
|
+
continue;
|
1614
1892
|
case 11:
|
1893
|
+
if (tag != 88) {
|
1894
|
+
break;
|
1895
|
+
}
|
1896
|
+
|
1615
1897
|
message.pingInterval = reader.int32();
|
1616
|
-
|
1898
|
+
continue;
|
1617
1899
|
case 12:
|
1900
|
+
if (tag != 98) {
|
1901
|
+
break;
|
1902
|
+
}
|
1903
|
+
|
1618
1904
|
message.serverInfo = ServerInfo.decode(reader, reader.uint32());
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1905
|
+
continue;
|
1906
|
+
}
|
1907
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1908
|
+
break;
|
1623
1909
|
}
|
1910
|
+
reader.skipType(tag & 7);
|
1624
1911
|
}
|
1625
1912
|
return message;
|
1626
1913
|
},
|
@@ -1719,22 +2006,31 @@ export const ReconnectResponse = {
|
|
1719
2006
|
},
|
1720
2007
|
|
1721
2008
|
decode(input: _m0.Reader | Uint8Array, length?: number): ReconnectResponse {
|
1722
|
-
const reader = input instanceof _m0.Reader ? input :
|
2009
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1723
2010
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1724
2011
|
const message = createBaseReconnectResponse();
|
1725
2012
|
while (reader.pos < end) {
|
1726
2013
|
const tag = reader.uint32();
|
1727
2014
|
switch (tag >>> 3) {
|
1728
2015
|
case 1:
|
2016
|
+
if (tag != 10) {
|
2017
|
+
break;
|
2018
|
+
}
|
2019
|
+
|
1729
2020
|
message.iceServers.push(ICEServer.decode(reader, reader.uint32()));
|
1730
|
-
|
2021
|
+
continue;
|
1731
2022
|
case 2:
|
2023
|
+
if (tag != 18) {
|
2024
|
+
break;
|
2025
|
+
}
|
2026
|
+
|
1732
2027
|
message.clientConfiguration = ClientConfiguration.decode(reader, reader.uint32());
|
1733
|
-
|
1734
|
-
default:
|
1735
|
-
reader.skipType(tag & 7);
|
1736
|
-
break;
|
2028
|
+
continue;
|
1737
2029
|
}
|
2030
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2031
|
+
break;
|
2032
|
+
}
|
2033
|
+
reader.skipType(tag & 7);
|
1738
2034
|
}
|
1739
2035
|
return message;
|
1740
2036
|
},
|
@@ -1791,22 +2087,31 @@ export const TrackPublishedResponse = {
|
|
1791
2087
|
},
|
1792
2088
|
|
1793
2089
|
decode(input: _m0.Reader | Uint8Array, length?: number): TrackPublishedResponse {
|
1794
|
-
const reader = input instanceof _m0.Reader ? input :
|
2090
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1795
2091
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1796
2092
|
const message = createBaseTrackPublishedResponse();
|
1797
2093
|
while (reader.pos < end) {
|
1798
2094
|
const tag = reader.uint32();
|
1799
2095
|
switch (tag >>> 3) {
|
1800
2096
|
case 1:
|
2097
|
+
if (tag != 10) {
|
2098
|
+
break;
|
2099
|
+
}
|
2100
|
+
|
1801
2101
|
message.cid = reader.string();
|
1802
|
-
|
2102
|
+
continue;
|
1803
2103
|
case 2:
|
2104
|
+
if (tag != 18) {
|
2105
|
+
break;
|
2106
|
+
}
|
2107
|
+
|
1804
2108
|
message.track = TrackInfo.decode(reader, reader.uint32());
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
2109
|
+
continue;
|
2110
|
+
}
|
2111
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2112
|
+
break;
|
1809
2113
|
}
|
2114
|
+
reader.skipType(tag & 7);
|
1810
2115
|
}
|
1811
2116
|
return message;
|
1812
2117
|
},
|
@@ -1852,19 +2157,24 @@ export const TrackUnpublishedResponse = {
|
|
1852
2157
|
},
|
1853
2158
|
|
1854
2159
|
decode(input: _m0.Reader | Uint8Array, length?: number): TrackUnpublishedResponse {
|
1855
|
-
const reader = input instanceof _m0.Reader ? input :
|
2160
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1856
2161
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1857
2162
|
const message = createBaseTrackUnpublishedResponse();
|
1858
2163
|
while (reader.pos < end) {
|
1859
2164
|
const tag = reader.uint32();
|
1860
2165
|
switch (tag >>> 3) {
|
1861
2166
|
case 1:
|
2167
|
+
if (tag != 10) {
|
2168
|
+
break;
|
2169
|
+
}
|
2170
|
+
|
1862
2171
|
message.trackSid = reader.string();
|
1863
|
-
|
1864
|
-
default:
|
1865
|
-
reader.skipType(tag & 7);
|
1866
|
-
break;
|
2172
|
+
continue;
|
1867
2173
|
}
|
2174
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2175
|
+
break;
|
2176
|
+
}
|
2177
|
+
reader.skipType(tag & 7);
|
1868
2178
|
}
|
1869
2179
|
return message;
|
1870
2180
|
},
|
@@ -1906,22 +2216,31 @@ export const SessionDescription = {
|
|
1906
2216
|
},
|
1907
2217
|
|
1908
2218
|
decode(input: _m0.Reader | Uint8Array, length?: number): SessionDescription {
|
1909
|
-
const reader = input instanceof _m0.Reader ? input :
|
2219
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1910
2220
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1911
2221
|
const message = createBaseSessionDescription();
|
1912
2222
|
while (reader.pos < end) {
|
1913
2223
|
const tag = reader.uint32();
|
1914
2224
|
switch (tag >>> 3) {
|
1915
2225
|
case 1:
|
2226
|
+
if (tag != 10) {
|
2227
|
+
break;
|
2228
|
+
}
|
2229
|
+
|
1916
2230
|
message.type = reader.string();
|
1917
|
-
|
2231
|
+
continue;
|
1918
2232
|
case 2:
|
2233
|
+
if (tag != 18) {
|
2234
|
+
break;
|
2235
|
+
}
|
2236
|
+
|
1919
2237
|
message.sdp = reader.string();
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
2238
|
+
continue;
|
2239
|
+
}
|
2240
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2241
|
+
break;
|
1924
2242
|
}
|
2243
|
+
reader.skipType(tag & 7);
|
1925
2244
|
}
|
1926
2245
|
return message;
|
1927
2246
|
},
|
@@ -1962,19 +2281,24 @@ export const ParticipantUpdate = {
|
|
1962
2281
|
},
|
1963
2282
|
|
1964
2283
|
decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantUpdate {
|
1965
|
-
const reader = input instanceof _m0.Reader ? input :
|
2284
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1966
2285
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1967
2286
|
const message = createBaseParticipantUpdate();
|
1968
2287
|
while (reader.pos < end) {
|
1969
2288
|
const tag = reader.uint32();
|
1970
2289
|
switch (tag >>> 3) {
|
1971
2290
|
case 1:
|
2291
|
+
if (tag != 10) {
|
2292
|
+
break;
|
2293
|
+
}
|
2294
|
+
|
1972
2295
|
message.participants.push(ParticipantInfo.decode(reader, reader.uint32()));
|
1973
|
-
|
1974
|
-
default:
|
1975
|
-
reader.skipType(tag & 7);
|
1976
|
-
break;
|
2296
|
+
continue;
|
1977
2297
|
}
|
2298
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2299
|
+
break;
|
2300
|
+
}
|
2301
|
+
reader.skipType(tag & 7);
|
1978
2302
|
}
|
1979
2303
|
return message;
|
1980
2304
|
},
|
@@ -2027,25 +2351,38 @@ export const UpdateSubscription = {
|
|
2027
2351
|
},
|
2028
2352
|
|
2029
2353
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateSubscription {
|
2030
|
-
const reader = input instanceof _m0.Reader ? input :
|
2354
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2031
2355
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2032
2356
|
const message = createBaseUpdateSubscription();
|
2033
2357
|
while (reader.pos < end) {
|
2034
2358
|
const tag = reader.uint32();
|
2035
2359
|
switch (tag >>> 3) {
|
2036
2360
|
case 1:
|
2361
|
+
if (tag != 10) {
|
2362
|
+
break;
|
2363
|
+
}
|
2364
|
+
|
2037
2365
|
message.trackSids.push(reader.string());
|
2038
|
-
|
2366
|
+
continue;
|
2039
2367
|
case 2:
|
2368
|
+
if (tag != 16) {
|
2369
|
+
break;
|
2370
|
+
}
|
2371
|
+
|
2040
2372
|
message.subscribe = reader.bool();
|
2041
|
-
|
2373
|
+
continue;
|
2042
2374
|
case 3:
|
2375
|
+
if (tag != 26) {
|
2376
|
+
break;
|
2377
|
+
}
|
2378
|
+
|
2043
2379
|
message.participantTracks.push(ParticipantTracks.decode(reader, reader.uint32()));
|
2044
|
-
|
2045
|
-
default:
|
2046
|
-
reader.skipType(tag & 7);
|
2047
|
-
break;
|
2380
|
+
continue;
|
2048
2381
|
}
|
2382
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2383
|
+
break;
|
2384
|
+
}
|
2385
|
+
reader.skipType(tag & 7);
|
2049
2386
|
}
|
2050
2387
|
return message;
|
2051
2388
|
},
|
@@ -2120,37 +2457,66 @@ export const UpdateTrackSettings = {
|
|
2120
2457
|
},
|
2121
2458
|
|
2122
2459
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateTrackSettings {
|
2123
|
-
const reader = input instanceof _m0.Reader ? input :
|
2460
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2124
2461
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2125
2462
|
const message = createBaseUpdateTrackSettings();
|
2126
2463
|
while (reader.pos < end) {
|
2127
2464
|
const tag = reader.uint32();
|
2128
2465
|
switch (tag >>> 3) {
|
2129
2466
|
case 1:
|
2467
|
+
if (tag != 10) {
|
2468
|
+
break;
|
2469
|
+
}
|
2470
|
+
|
2130
2471
|
message.trackSids.push(reader.string());
|
2131
|
-
|
2472
|
+
continue;
|
2132
2473
|
case 3:
|
2474
|
+
if (tag != 24) {
|
2475
|
+
break;
|
2476
|
+
}
|
2477
|
+
|
2133
2478
|
message.disabled = reader.bool();
|
2134
|
-
|
2479
|
+
continue;
|
2135
2480
|
case 4:
|
2481
|
+
if (tag != 32) {
|
2482
|
+
break;
|
2483
|
+
}
|
2484
|
+
|
2136
2485
|
message.quality = reader.int32() as any;
|
2137
|
-
|
2486
|
+
continue;
|
2138
2487
|
case 5:
|
2488
|
+
if (tag != 40) {
|
2489
|
+
break;
|
2490
|
+
}
|
2491
|
+
|
2139
2492
|
message.width = reader.uint32();
|
2140
|
-
|
2493
|
+
continue;
|
2141
2494
|
case 6:
|
2495
|
+
if (tag != 48) {
|
2496
|
+
break;
|
2497
|
+
}
|
2498
|
+
|
2142
2499
|
message.height = reader.uint32();
|
2143
|
-
|
2500
|
+
continue;
|
2144
2501
|
case 7:
|
2502
|
+
if (tag != 56) {
|
2503
|
+
break;
|
2504
|
+
}
|
2505
|
+
|
2145
2506
|
message.fps = reader.uint32();
|
2146
|
-
|
2507
|
+
continue;
|
2147
2508
|
case 8:
|
2509
|
+
if (tag != 64) {
|
2510
|
+
break;
|
2511
|
+
}
|
2512
|
+
|
2148
2513
|
message.priority = reader.uint32();
|
2149
|
-
|
2150
|
-
default:
|
2151
|
-
reader.skipType(tag & 7);
|
2152
|
-
break;
|
2514
|
+
continue;
|
2153
2515
|
}
|
2516
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2517
|
+
break;
|
2518
|
+
}
|
2519
|
+
reader.skipType(tag & 7);
|
2154
2520
|
}
|
2155
2521
|
return message;
|
2156
2522
|
},
|
@@ -2216,22 +2582,31 @@ export const LeaveRequest = {
|
|
2216
2582
|
},
|
2217
2583
|
|
2218
2584
|
decode(input: _m0.Reader | Uint8Array, length?: number): LeaveRequest {
|
2219
|
-
const reader = input instanceof _m0.Reader ? input :
|
2585
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2220
2586
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2221
2587
|
const message = createBaseLeaveRequest();
|
2222
2588
|
while (reader.pos < end) {
|
2223
2589
|
const tag = reader.uint32();
|
2224
2590
|
switch (tag >>> 3) {
|
2225
2591
|
case 1:
|
2592
|
+
if (tag != 8) {
|
2593
|
+
break;
|
2594
|
+
}
|
2595
|
+
|
2226
2596
|
message.canReconnect = reader.bool();
|
2227
|
-
|
2597
|
+
continue;
|
2228
2598
|
case 2:
|
2599
|
+
if (tag != 16) {
|
2600
|
+
break;
|
2601
|
+
}
|
2602
|
+
|
2229
2603
|
message.reason = reader.int32() as any;
|
2230
|
-
|
2231
|
-
|
2232
|
-
|
2233
|
-
|
2604
|
+
continue;
|
2605
|
+
}
|
2606
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2607
|
+
break;
|
2234
2608
|
}
|
2609
|
+
reader.skipType(tag & 7);
|
2235
2610
|
}
|
2236
2611
|
return message;
|
2237
2612
|
},
|
@@ -2278,22 +2653,31 @@ export const UpdateVideoLayers = {
|
|
2278
2653
|
},
|
2279
2654
|
|
2280
2655
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateVideoLayers {
|
2281
|
-
const reader = input instanceof _m0.Reader ? input :
|
2656
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2282
2657
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2283
2658
|
const message = createBaseUpdateVideoLayers();
|
2284
2659
|
while (reader.pos < end) {
|
2285
2660
|
const tag = reader.uint32();
|
2286
2661
|
switch (tag >>> 3) {
|
2287
2662
|
case 1:
|
2663
|
+
if (tag != 10) {
|
2664
|
+
break;
|
2665
|
+
}
|
2666
|
+
|
2288
2667
|
message.trackSid = reader.string();
|
2289
|
-
|
2668
|
+
continue;
|
2290
2669
|
case 2:
|
2670
|
+
if (tag != 18) {
|
2671
|
+
break;
|
2672
|
+
}
|
2673
|
+
|
2291
2674
|
message.layers.push(VideoLayer.decode(reader, reader.uint32()));
|
2292
|
-
|
2293
|
-
default:
|
2294
|
-
reader.skipType(tag & 7);
|
2295
|
-
break;
|
2675
|
+
continue;
|
2296
2676
|
}
|
2677
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2678
|
+
break;
|
2679
|
+
}
|
2680
|
+
reader.skipType(tag & 7);
|
2297
2681
|
}
|
2298
2682
|
return message;
|
2299
2683
|
},
|
@@ -2329,7 +2713,7 @@ export const UpdateVideoLayers = {
|
|
2329
2713
|
};
|
2330
2714
|
|
2331
2715
|
function createBaseUpdateParticipantMetadata(): UpdateParticipantMetadata {
|
2332
|
-
return { metadata: "" };
|
2716
|
+
return { metadata: "", name: "" };
|
2333
2717
|
}
|
2334
2718
|
|
2335
2719
|
export const UpdateParticipantMetadata = {
|
@@ -2337,34 +2721,53 @@ export const UpdateParticipantMetadata = {
|
|
2337
2721
|
if (message.metadata !== "") {
|
2338
2722
|
writer.uint32(10).string(message.metadata);
|
2339
2723
|
}
|
2724
|
+
if (message.name !== "") {
|
2725
|
+
writer.uint32(18).string(message.name);
|
2726
|
+
}
|
2340
2727
|
return writer;
|
2341
2728
|
},
|
2342
2729
|
|
2343
2730
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateParticipantMetadata {
|
2344
|
-
const reader = input instanceof _m0.Reader ? input :
|
2731
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2345
2732
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2346
2733
|
const message = createBaseUpdateParticipantMetadata();
|
2347
2734
|
while (reader.pos < end) {
|
2348
2735
|
const tag = reader.uint32();
|
2349
2736
|
switch (tag >>> 3) {
|
2350
2737
|
case 1:
|
2738
|
+
if (tag != 10) {
|
2739
|
+
break;
|
2740
|
+
}
|
2741
|
+
|
2351
2742
|
message.metadata = reader.string();
|
2352
|
-
|
2353
|
-
|
2354
|
-
|
2355
|
-
|
2743
|
+
continue;
|
2744
|
+
case 2:
|
2745
|
+
if (tag != 18) {
|
2746
|
+
break;
|
2747
|
+
}
|
2748
|
+
|
2749
|
+
message.name = reader.string();
|
2750
|
+
continue;
|
2356
2751
|
}
|
2752
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2753
|
+
break;
|
2754
|
+
}
|
2755
|
+
reader.skipType(tag & 7);
|
2357
2756
|
}
|
2358
2757
|
return message;
|
2359
2758
|
},
|
2360
2759
|
|
2361
2760
|
fromJSON(object: any): UpdateParticipantMetadata {
|
2362
|
-
return {
|
2761
|
+
return {
|
2762
|
+
metadata: isSet(object.metadata) ? String(object.metadata) : "",
|
2763
|
+
name: isSet(object.name) ? String(object.name) : "",
|
2764
|
+
};
|
2363
2765
|
},
|
2364
2766
|
|
2365
2767
|
toJSON(message: UpdateParticipantMetadata): unknown {
|
2366
2768
|
const obj: any = {};
|
2367
2769
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
2770
|
+
message.name !== undefined && (obj.name = message.name);
|
2368
2771
|
return obj;
|
2369
2772
|
},
|
2370
2773
|
|
@@ -2375,6 +2778,7 @@ export const UpdateParticipantMetadata = {
|
|
2375
2778
|
fromPartial<I extends Exact<DeepPartial<UpdateParticipantMetadata>, I>>(object: I): UpdateParticipantMetadata {
|
2376
2779
|
const message = createBaseUpdateParticipantMetadata();
|
2377
2780
|
message.metadata = object.metadata ?? "";
|
2781
|
+
message.name = object.name ?? "";
|
2378
2782
|
return message;
|
2379
2783
|
},
|
2380
2784
|
};
|
@@ -2398,25 +2802,38 @@ export const ICEServer = {
|
|
2398
2802
|
},
|
2399
2803
|
|
2400
2804
|
decode(input: _m0.Reader | Uint8Array, length?: number): ICEServer {
|
2401
|
-
const reader = input instanceof _m0.Reader ? input :
|
2805
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2402
2806
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2403
2807
|
const message = createBaseICEServer();
|
2404
2808
|
while (reader.pos < end) {
|
2405
2809
|
const tag = reader.uint32();
|
2406
2810
|
switch (tag >>> 3) {
|
2407
2811
|
case 1:
|
2812
|
+
if (tag != 10) {
|
2813
|
+
break;
|
2814
|
+
}
|
2815
|
+
|
2408
2816
|
message.urls.push(reader.string());
|
2409
|
-
|
2817
|
+
continue;
|
2410
2818
|
case 2:
|
2819
|
+
if (tag != 18) {
|
2820
|
+
break;
|
2821
|
+
}
|
2822
|
+
|
2411
2823
|
message.username = reader.string();
|
2412
|
-
|
2824
|
+
continue;
|
2413
2825
|
case 3:
|
2826
|
+
if (tag != 26) {
|
2827
|
+
break;
|
2828
|
+
}
|
2829
|
+
|
2414
2830
|
message.credential = reader.string();
|
2415
|
-
|
2416
|
-
|
2417
|
-
|
2418
|
-
|
2831
|
+
continue;
|
2832
|
+
}
|
2833
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2834
|
+
break;
|
2419
2835
|
}
|
2836
|
+
reader.skipType(tag & 7);
|
2420
2837
|
}
|
2421
2838
|
return message;
|
2422
2839
|
},
|
@@ -2467,19 +2884,24 @@ export const SpeakersChanged = {
|
|
2467
2884
|
},
|
2468
2885
|
|
2469
2886
|
decode(input: _m0.Reader | Uint8Array, length?: number): SpeakersChanged {
|
2470
|
-
const reader = input instanceof _m0.Reader ? input :
|
2887
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2471
2888
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2472
2889
|
const message = createBaseSpeakersChanged();
|
2473
2890
|
while (reader.pos < end) {
|
2474
2891
|
const tag = reader.uint32();
|
2475
2892
|
switch (tag >>> 3) {
|
2476
2893
|
case 1:
|
2894
|
+
if (tag != 10) {
|
2895
|
+
break;
|
2896
|
+
}
|
2897
|
+
|
2477
2898
|
message.speakers.push(SpeakerInfo.decode(reader, reader.uint32()));
|
2478
|
-
|
2479
|
-
default:
|
2480
|
-
reader.skipType(tag & 7);
|
2481
|
-
break;
|
2899
|
+
continue;
|
2482
2900
|
}
|
2901
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2902
|
+
break;
|
2903
|
+
}
|
2904
|
+
reader.skipType(tag & 7);
|
2483
2905
|
}
|
2484
2906
|
return message;
|
2485
2907
|
},
|
@@ -2524,19 +2946,24 @@ export const RoomUpdate = {
|
|
2524
2946
|
},
|
2525
2947
|
|
2526
2948
|
decode(input: _m0.Reader | Uint8Array, length?: number): RoomUpdate {
|
2527
|
-
const reader = input instanceof _m0.Reader ? input :
|
2949
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2528
2950
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2529
2951
|
const message = createBaseRoomUpdate();
|
2530
2952
|
while (reader.pos < end) {
|
2531
2953
|
const tag = reader.uint32();
|
2532
2954
|
switch (tag >>> 3) {
|
2533
2955
|
case 1:
|
2956
|
+
if (tag != 10) {
|
2957
|
+
break;
|
2958
|
+
}
|
2959
|
+
|
2534
2960
|
message.room = Room.decode(reader, reader.uint32());
|
2535
|
-
|
2536
|
-
|
2537
|
-
|
2538
|
-
|
2961
|
+
continue;
|
2962
|
+
}
|
2963
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2964
|
+
break;
|
2539
2965
|
}
|
2966
|
+
reader.skipType(tag & 7);
|
2540
2967
|
}
|
2541
2968
|
return message;
|
2542
2969
|
},
|
@@ -2581,25 +3008,38 @@ export const ConnectionQualityInfo = {
|
|
2581
3008
|
},
|
2582
3009
|
|
2583
3010
|
decode(input: _m0.Reader | Uint8Array, length?: number): ConnectionQualityInfo {
|
2584
|
-
const reader = input instanceof _m0.Reader ? input :
|
3011
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2585
3012
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2586
3013
|
const message = createBaseConnectionQualityInfo();
|
2587
3014
|
while (reader.pos < end) {
|
2588
3015
|
const tag = reader.uint32();
|
2589
3016
|
switch (tag >>> 3) {
|
2590
3017
|
case 1:
|
3018
|
+
if (tag != 10) {
|
3019
|
+
break;
|
3020
|
+
}
|
3021
|
+
|
2591
3022
|
message.participantSid = reader.string();
|
2592
|
-
|
3023
|
+
continue;
|
2593
3024
|
case 2:
|
3025
|
+
if (tag != 16) {
|
3026
|
+
break;
|
3027
|
+
}
|
3028
|
+
|
2594
3029
|
message.quality = reader.int32() as any;
|
2595
|
-
|
3030
|
+
continue;
|
2596
3031
|
case 3:
|
3032
|
+
if (tag != 29) {
|
3033
|
+
break;
|
3034
|
+
}
|
3035
|
+
|
2597
3036
|
message.score = reader.float();
|
2598
|
-
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
3037
|
+
continue;
|
3038
|
+
}
|
3039
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3040
|
+
break;
|
2602
3041
|
}
|
3042
|
+
reader.skipType(tag & 7);
|
2603
3043
|
}
|
2604
3044
|
return message;
|
2605
3045
|
},
|
@@ -2646,19 +3086,24 @@ export const ConnectionQualityUpdate = {
|
|
2646
3086
|
},
|
2647
3087
|
|
2648
3088
|
decode(input: _m0.Reader | Uint8Array, length?: number): ConnectionQualityUpdate {
|
2649
|
-
const reader = input instanceof _m0.Reader ? input :
|
3089
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2650
3090
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2651
3091
|
const message = createBaseConnectionQualityUpdate();
|
2652
3092
|
while (reader.pos < end) {
|
2653
3093
|
const tag = reader.uint32();
|
2654
3094
|
switch (tag >>> 3) {
|
2655
3095
|
case 1:
|
3096
|
+
if (tag != 10) {
|
3097
|
+
break;
|
3098
|
+
}
|
3099
|
+
|
2656
3100
|
message.updates.push(ConnectionQualityInfo.decode(reader, reader.uint32()));
|
2657
|
-
|
2658
|
-
|
2659
|
-
|
2660
|
-
|
3101
|
+
continue;
|
3102
|
+
}
|
3103
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3104
|
+
break;
|
2661
3105
|
}
|
3106
|
+
reader.skipType(tag & 7);
|
2662
3107
|
}
|
2663
3108
|
return message;
|
2664
3109
|
},
|
@@ -2709,25 +3154,38 @@ export const StreamStateInfo = {
|
|
2709
3154
|
},
|
2710
3155
|
|
2711
3156
|
decode(input: _m0.Reader | Uint8Array, length?: number): StreamStateInfo {
|
2712
|
-
const reader = input instanceof _m0.Reader ? input :
|
3157
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2713
3158
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2714
3159
|
const message = createBaseStreamStateInfo();
|
2715
3160
|
while (reader.pos < end) {
|
2716
3161
|
const tag = reader.uint32();
|
2717
3162
|
switch (tag >>> 3) {
|
2718
3163
|
case 1:
|
3164
|
+
if (tag != 10) {
|
3165
|
+
break;
|
3166
|
+
}
|
3167
|
+
|
2719
3168
|
message.participantSid = reader.string();
|
2720
|
-
|
3169
|
+
continue;
|
2721
3170
|
case 2:
|
3171
|
+
if (tag != 18) {
|
3172
|
+
break;
|
3173
|
+
}
|
3174
|
+
|
2722
3175
|
message.trackSid = reader.string();
|
2723
|
-
|
3176
|
+
continue;
|
2724
3177
|
case 3:
|
3178
|
+
if (tag != 24) {
|
3179
|
+
break;
|
3180
|
+
}
|
3181
|
+
|
2725
3182
|
message.state = reader.int32() as any;
|
2726
|
-
|
2727
|
-
|
2728
|
-
|
2729
|
-
|
3183
|
+
continue;
|
3184
|
+
}
|
3185
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3186
|
+
break;
|
2730
3187
|
}
|
3188
|
+
reader.skipType(tag & 7);
|
2731
3189
|
}
|
2732
3190
|
return message;
|
2733
3191
|
},
|
@@ -2774,19 +3232,24 @@ export const StreamStateUpdate = {
|
|
2774
3232
|
},
|
2775
3233
|
|
2776
3234
|
decode(input: _m0.Reader | Uint8Array, length?: number): StreamStateUpdate {
|
2777
|
-
const reader = input instanceof _m0.Reader ? input :
|
3235
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2778
3236
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2779
3237
|
const message = createBaseStreamStateUpdate();
|
2780
3238
|
while (reader.pos < end) {
|
2781
3239
|
const tag = reader.uint32();
|
2782
3240
|
switch (tag >>> 3) {
|
2783
3241
|
case 1:
|
3242
|
+
if (tag != 10) {
|
3243
|
+
break;
|
3244
|
+
}
|
3245
|
+
|
2784
3246
|
message.streamStates.push(StreamStateInfo.decode(reader, reader.uint32()));
|
2785
|
-
|
2786
|
-
default:
|
2787
|
-
reader.skipType(tag & 7);
|
2788
|
-
break;
|
3247
|
+
continue;
|
2789
3248
|
}
|
3249
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3250
|
+
break;
|
3251
|
+
}
|
3252
|
+
reader.skipType(tag & 7);
|
2790
3253
|
}
|
2791
3254
|
return message;
|
2792
3255
|
},
|
@@ -2836,22 +3299,31 @@ export const SubscribedQuality = {
|
|
2836
3299
|
},
|
2837
3300
|
|
2838
3301
|
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribedQuality {
|
2839
|
-
const reader = input instanceof _m0.Reader ? input :
|
3302
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2840
3303
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2841
3304
|
const message = createBaseSubscribedQuality();
|
2842
3305
|
while (reader.pos < end) {
|
2843
3306
|
const tag = reader.uint32();
|
2844
3307
|
switch (tag >>> 3) {
|
2845
3308
|
case 1:
|
3309
|
+
if (tag != 8) {
|
3310
|
+
break;
|
3311
|
+
}
|
3312
|
+
|
2846
3313
|
message.quality = reader.int32() as any;
|
2847
|
-
|
3314
|
+
continue;
|
2848
3315
|
case 2:
|
3316
|
+
if (tag != 16) {
|
3317
|
+
break;
|
3318
|
+
}
|
3319
|
+
|
2849
3320
|
message.enabled = reader.bool();
|
2850
|
-
|
2851
|
-
|
2852
|
-
|
2853
|
-
|
3321
|
+
continue;
|
3322
|
+
}
|
3323
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3324
|
+
break;
|
2854
3325
|
}
|
3326
|
+
reader.skipType(tag & 7);
|
2855
3327
|
}
|
2856
3328
|
return message;
|
2857
3329
|
},
|
@@ -2898,22 +3370,31 @@ export const SubscribedCodec = {
|
|
2898
3370
|
},
|
2899
3371
|
|
2900
3372
|
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribedCodec {
|
2901
|
-
const reader = input instanceof _m0.Reader ? input :
|
3373
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2902
3374
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2903
3375
|
const message = createBaseSubscribedCodec();
|
2904
3376
|
while (reader.pos < end) {
|
2905
3377
|
const tag = reader.uint32();
|
2906
3378
|
switch (tag >>> 3) {
|
2907
3379
|
case 1:
|
3380
|
+
if (tag != 10) {
|
3381
|
+
break;
|
3382
|
+
}
|
3383
|
+
|
2908
3384
|
message.codec = reader.string();
|
2909
|
-
|
3385
|
+
continue;
|
2910
3386
|
case 2:
|
3387
|
+
if (tag != 18) {
|
3388
|
+
break;
|
3389
|
+
}
|
3390
|
+
|
2911
3391
|
message.qualities.push(SubscribedQuality.decode(reader, reader.uint32()));
|
2912
|
-
|
2913
|
-
|
2914
|
-
|
2915
|
-
|
3392
|
+
continue;
|
3393
|
+
}
|
3394
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3395
|
+
break;
|
2916
3396
|
}
|
3397
|
+
reader.skipType(tag & 7);
|
2917
3398
|
}
|
2918
3399
|
return message;
|
2919
3400
|
},
|
@@ -2969,25 +3450,38 @@ export const SubscribedQualityUpdate = {
|
|
2969
3450
|
},
|
2970
3451
|
|
2971
3452
|
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribedQualityUpdate {
|
2972
|
-
const reader = input instanceof _m0.Reader ? input :
|
3453
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2973
3454
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2974
3455
|
const message = createBaseSubscribedQualityUpdate();
|
2975
3456
|
while (reader.pos < end) {
|
2976
3457
|
const tag = reader.uint32();
|
2977
3458
|
switch (tag >>> 3) {
|
2978
3459
|
case 1:
|
3460
|
+
if (tag != 10) {
|
3461
|
+
break;
|
3462
|
+
}
|
3463
|
+
|
2979
3464
|
message.trackSid = reader.string();
|
2980
|
-
|
3465
|
+
continue;
|
2981
3466
|
case 2:
|
3467
|
+
if (tag != 18) {
|
3468
|
+
break;
|
3469
|
+
}
|
3470
|
+
|
2982
3471
|
message.subscribedQualities.push(SubscribedQuality.decode(reader, reader.uint32()));
|
2983
|
-
|
3472
|
+
continue;
|
2984
3473
|
case 3:
|
3474
|
+
if (tag != 26) {
|
3475
|
+
break;
|
3476
|
+
}
|
3477
|
+
|
2985
3478
|
message.subscribedCodecs.push(SubscribedCodec.decode(reader, reader.uint32()));
|
2986
|
-
|
2987
|
-
|
2988
|
-
|
2989
|
-
|
3479
|
+
continue;
|
3480
|
+
}
|
3481
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3482
|
+
break;
|
2990
3483
|
}
|
3484
|
+
reader.skipType(tag & 7);
|
2991
3485
|
}
|
2992
3486
|
return message;
|
2993
3487
|
},
|
@@ -3055,28 +3549,45 @@ export const TrackPermission = {
|
|
3055
3549
|
},
|
3056
3550
|
|
3057
3551
|
decode(input: _m0.Reader | Uint8Array, length?: number): TrackPermission {
|
3058
|
-
const reader = input instanceof _m0.Reader ? input :
|
3552
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3059
3553
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3060
3554
|
const message = createBaseTrackPermission();
|
3061
3555
|
while (reader.pos < end) {
|
3062
3556
|
const tag = reader.uint32();
|
3063
3557
|
switch (tag >>> 3) {
|
3064
3558
|
case 1:
|
3559
|
+
if (tag != 10) {
|
3560
|
+
break;
|
3561
|
+
}
|
3562
|
+
|
3065
3563
|
message.participantSid = reader.string();
|
3066
|
-
|
3564
|
+
continue;
|
3067
3565
|
case 2:
|
3566
|
+
if (tag != 16) {
|
3567
|
+
break;
|
3568
|
+
}
|
3569
|
+
|
3068
3570
|
message.allTracks = reader.bool();
|
3069
|
-
|
3571
|
+
continue;
|
3070
3572
|
case 3:
|
3573
|
+
if (tag != 26) {
|
3574
|
+
break;
|
3575
|
+
}
|
3576
|
+
|
3071
3577
|
message.trackSids.push(reader.string());
|
3072
|
-
|
3578
|
+
continue;
|
3073
3579
|
case 4:
|
3580
|
+
if (tag != 34) {
|
3581
|
+
break;
|
3582
|
+
}
|
3583
|
+
|
3074
3584
|
message.participantIdentity = reader.string();
|
3075
|
-
|
3076
|
-
default:
|
3077
|
-
reader.skipType(tag & 7);
|
3078
|
-
break;
|
3585
|
+
continue;
|
3079
3586
|
}
|
3587
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3588
|
+
break;
|
3589
|
+
}
|
3590
|
+
reader.skipType(tag & 7);
|
3080
3591
|
}
|
3081
3592
|
return message;
|
3082
3593
|
},
|
@@ -3133,22 +3644,31 @@ export const SubscriptionPermission = {
|
|
3133
3644
|
},
|
3134
3645
|
|
3135
3646
|
decode(input: _m0.Reader | Uint8Array, length?: number): SubscriptionPermission {
|
3136
|
-
const reader = input instanceof _m0.Reader ? input :
|
3647
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3137
3648
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3138
3649
|
const message = createBaseSubscriptionPermission();
|
3139
3650
|
while (reader.pos < end) {
|
3140
3651
|
const tag = reader.uint32();
|
3141
3652
|
switch (tag >>> 3) {
|
3142
3653
|
case 1:
|
3654
|
+
if (tag != 8) {
|
3655
|
+
break;
|
3656
|
+
}
|
3657
|
+
|
3143
3658
|
message.allParticipants = reader.bool();
|
3144
|
-
|
3659
|
+
continue;
|
3145
3660
|
case 2:
|
3661
|
+
if (tag != 18) {
|
3662
|
+
break;
|
3663
|
+
}
|
3664
|
+
|
3146
3665
|
message.trackPermissions.push(TrackPermission.decode(reader, reader.uint32()));
|
3147
|
-
|
3148
|
-
default:
|
3149
|
-
reader.skipType(tag & 7);
|
3150
|
-
break;
|
3666
|
+
continue;
|
3151
3667
|
}
|
3668
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3669
|
+
break;
|
3670
|
+
}
|
3671
|
+
reader.skipType(tag & 7);
|
3152
3672
|
}
|
3153
3673
|
return message;
|
3154
3674
|
},
|
@@ -3204,25 +3724,38 @@ export const SubscriptionPermissionUpdate = {
|
|
3204
3724
|
},
|
3205
3725
|
|
3206
3726
|
decode(input: _m0.Reader | Uint8Array, length?: number): SubscriptionPermissionUpdate {
|
3207
|
-
const reader = input instanceof _m0.Reader ? input :
|
3727
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3208
3728
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3209
3729
|
const message = createBaseSubscriptionPermissionUpdate();
|
3210
3730
|
while (reader.pos < end) {
|
3211
3731
|
const tag = reader.uint32();
|
3212
3732
|
switch (tag >>> 3) {
|
3213
3733
|
case 1:
|
3734
|
+
if (tag != 10) {
|
3735
|
+
break;
|
3736
|
+
}
|
3737
|
+
|
3214
3738
|
message.participantSid = reader.string();
|
3215
|
-
|
3739
|
+
continue;
|
3216
3740
|
case 2:
|
3741
|
+
if (tag != 18) {
|
3742
|
+
break;
|
3743
|
+
}
|
3744
|
+
|
3217
3745
|
message.trackSid = reader.string();
|
3218
|
-
|
3746
|
+
continue;
|
3219
3747
|
case 3:
|
3748
|
+
if (tag != 24) {
|
3749
|
+
break;
|
3750
|
+
}
|
3751
|
+
|
3220
3752
|
message.allowed = reader.bool();
|
3221
|
-
|
3222
|
-
|
3223
|
-
|
3224
|
-
|
3753
|
+
continue;
|
3754
|
+
}
|
3755
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3756
|
+
break;
|
3225
3757
|
}
|
3758
|
+
reader.skipType(tag & 7);
|
3226
3759
|
}
|
3227
3760
|
return message;
|
3228
3761
|
},
|
@@ -3281,31 +3814,52 @@ export const SyncState = {
|
|
3281
3814
|
},
|
3282
3815
|
|
3283
3816
|
decode(input: _m0.Reader | Uint8Array, length?: number): SyncState {
|
3284
|
-
const reader = input instanceof _m0.Reader ? input :
|
3817
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3285
3818
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3286
3819
|
const message = createBaseSyncState();
|
3287
3820
|
while (reader.pos < end) {
|
3288
3821
|
const tag = reader.uint32();
|
3289
3822
|
switch (tag >>> 3) {
|
3290
3823
|
case 1:
|
3824
|
+
if (tag != 10) {
|
3825
|
+
break;
|
3826
|
+
}
|
3827
|
+
|
3291
3828
|
message.answer = SessionDescription.decode(reader, reader.uint32());
|
3292
|
-
|
3829
|
+
continue;
|
3293
3830
|
case 2:
|
3831
|
+
if (tag != 18) {
|
3832
|
+
break;
|
3833
|
+
}
|
3834
|
+
|
3294
3835
|
message.subscription = UpdateSubscription.decode(reader, reader.uint32());
|
3295
|
-
|
3836
|
+
continue;
|
3296
3837
|
case 3:
|
3838
|
+
if (tag != 26) {
|
3839
|
+
break;
|
3840
|
+
}
|
3841
|
+
|
3297
3842
|
message.publishTracks.push(TrackPublishedResponse.decode(reader, reader.uint32()));
|
3298
|
-
|
3843
|
+
continue;
|
3299
3844
|
case 4:
|
3845
|
+
if (tag != 34) {
|
3846
|
+
break;
|
3847
|
+
}
|
3848
|
+
|
3300
3849
|
message.dataChannels.push(DataChannelInfo.decode(reader, reader.uint32()));
|
3301
|
-
|
3850
|
+
continue;
|
3302
3851
|
case 5:
|
3852
|
+
if (tag != 42) {
|
3853
|
+
break;
|
3854
|
+
}
|
3855
|
+
|
3303
3856
|
message.offer = SessionDescription.decode(reader, reader.uint32());
|
3304
|
-
|
3305
|
-
|
3306
|
-
|
3307
|
-
|
3857
|
+
continue;
|
3858
|
+
}
|
3859
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3860
|
+
break;
|
3308
3861
|
}
|
3862
|
+
reader.skipType(tag & 7);
|
3309
3863
|
}
|
3310
3864
|
return message;
|
3311
3865
|
},
|
@@ -3384,25 +3938,38 @@ export const DataChannelInfo = {
|
|
3384
3938
|
},
|
3385
3939
|
|
3386
3940
|
decode(input: _m0.Reader | Uint8Array, length?: number): DataChannelInfo {
|
3387
|
-
const reader = input instanceof _m0.Reader ? input :
|
3941
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3388
3942
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3389
3943
|
const message = createBaseDataChannelInfo();
|
3390
3944
|
while (reader.pos < end) {
|
3391
3945
|
const tag = reader.uint32();
|
3392
3946
|
switch (tag >>> 3) {
|
3393
3947
|
case 1:
|
3948
|
+
if (tag != 10) {
|
3949
|
+
break;
|
3950
|
+
}
|
3951
|
+
|
3394
3952
|
message.label = reader.string();
|
3395
|
-
|
3953
|
+
continue;
|
3396
3954
|
case 2:
|
3955
|
+
if (tag != 16) {
|
3956
|
+
break;
|
3957
|
+
}
|
3958
|
+
|
3397
3959
|
message.id = reader.uint32();
|
3398
|
-
|
3960
|
+
continue;
|
3399
3961
|
case 3:
|
3962
|
+
if (tag != 24) {
|
3963
|
+
break;
|
3964
|
+
}
|
3965
|
+
|
3400
3966
|
message.target = reader.int32() as any;
|
3401
|
-
|
3402
|
-
|
3403
|
-
|
3404
|
-
|
3967
|
+
continue;
|
3968
|
+
}
|
3969
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3970
|
+
break;
|
3405
3971
|
}
|
3972
|
+
reader.skipType(tag & 7);
|
3406
3973
|
}
|
3407
3974
|
return message;
|
3408
3975
|
},
|
@@ -3458,36 +4025,70 @@ export const SimulateScenario = {
|
|
3458
4025
|
case "switchCandidateProtocol":
|
3459
4026
|
writer.uint32(40).int32(message.scenario.switchCandidateProtocol);
|
3460
4027
|
break;
|
4028
|
+
case "subscriberBandwidth":
|
4029
|
+
writer.uint32(48).int64(message.scenario.subscriberBandwidth);
|
4030
|
+
break;
|
3461
4031
|
}
|
3462
4032
|
return writer;
|
3463
4033
|
},
|
3464
4034
|
|
3465
4035
|
decode(input: _m0.Reader | Uint8Array, length?: number): SimulateScenario {
|
3466
|
-
const reader = input instanceof _m0.Reader ? input :
|
4036
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3467
4037
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3468
4038
|
const message = createBaseSimulateScenario();
|
3469
4039
|
while (reader.pos < end) {
|
3470
4040
|
const tag = reader.uint32();
|
3471
4041
|
switch (tag >>> 3) {
|
3472
4042
|
case 1:
|
4043
|
+
if (tag != 8) {
|
4044
|
+
break;
|
4045
|
+
}
|
4046
|
+
|
3473
4047
|
message.scenario = { $case: "speakerUpdate", speakerUpdate: reader.int32() };
|
3474
|
-
|
4048
|
+
continue;
|
3475
4049
|
case 2:
|
4050
|
+
if (tag != 16) {
|
4051
|
+
break;
|
4052
|
+
}
|
4053
|
+
|
3476
4054
|
message.scenario = { $case: "nodeFailure", nodeFailure: reader.bool() };
|
3477
|
-
|
4055
|
+
continue;
|
3478
4056
|
case 3:
|
4057
|
+
if (tag != 24) {
|
4058
|
+
break;
|
4059
|
+
}
|
4060
|
+
|
3479
4061
|
message.scenario = { $case: "migration", migration: reader.bool() };
|
3480
|
-
|
4062
|
+
continue;
|
3481
4063
|
case 4:
|
4064
|
+
if (tag != 32) {
|
4065
|
+
break;
|
4066
|
+
}
|
4067
|
+
|
3482
4068
|
message.scenario = { $case: "serverLeave", serverLeave: reader.bool() };
|
3483
|
-
|
4069
|
+
continue;
|
3484
4070
|
case 5:
|
4071
|
+
if (tag != 40) {
|
4072
|
+
break;
|
4073
|
+
}
|
4074
|
+
|
3485
4075
|
message.scenario = { $case: "switchCandidateProtocol", switchCandidateProtocol: reader.int32() as any };
|
3486
|
-
|
3487
|
-
|
3488
|
-
|
3489
|
-
|
4076
|
+
continue;
|
4077
|
+
case 6:
|
4078
|
+
if (tag != 48) {
|
4079
|
+
break;
|
4080
|
+
}
|
4081
|
+
|
4082
|
+
message.scenario = {
|
4083
|
+
$case: "subscriberBandwidth",
|
4084
|
+
subscriberBandwidth: longToNumber(reader.int64() as Long),
|
4085
|
+
};
|
4086
|
+
continue;
|
4087
|
+
}
|
4088
|
+
if ((tag & 7) == 4 || tag == 0) {
|
4089
|
+
break;
|
3490
4090
|
}
|
4091
|
+
reader.skipType(tag & 7);
|
3491
4092
|
}
|
3492
4093
|
return message;
|
3493
4094
|
},
|
@@ -3507,6 +4108,8 @@ export const SimulateScenario = {
|
|
3507
4108
|
$case: "switchCandidateProtocol",
|
3508
4109
|
switchCandidateProtocol: candidateProtocolFromJSON(object.switchCandidateProtocol),
|
3509
4110
|
}
|
4111
|
+
: isSet(object.subscriberBandwidth)
|
4112
|
+
? { $case: "subscriberBandwidth", subscriberBandwidth: Number(object.subscriberBandwidth) }
|
3510
4113
|
: undefined,
|
3511
4114
|
};
|
3512
4115
|
},
|
@@ -3521,6 +4124,8 @@ export const SimulateScenario = {
|
|
3521
4124
|
(obj.switchCandidateProtocol = message.scenario?.switchCandidateProtocol !== undefined
|
3522
4125
|
? candidateProtocolToJSON(message.scenario?.switchCandidateProtocol)
|
3523
4126
|
: undefined);
|
4127
|
+
message.scenario?.$case === "subscriberBandwidth" &&
|
4128
|
+
(obj.subscriberBandwidth = Math.round(message.scenario?.subscriberBandwidth));
|
3524
4129
|
return obj;
|
3525
4130
|
},
|
3526
4131
|
|
@@ -3568,6 +4173,13 @@ export const SimulateScenario = {
|
|
3568
4173
|
switchCandidateProtocol: object.scenario.switchCandidateProtocol,
|
3569
4174
|
};
|
3570
4175
|
}
|
4176
|
+
if (
|
4177
|
+
object.scenario?.$case === "subscriberBandwidth" &&
|
4178
|
+
object.scenario?.subscriberBandwidth !== undefined &&
|
4179
|
+
object.scenario?.subscriberBandwidth !== null
|
4180
|
+
) {
|
4181
|
+
message.scenario = { $case: "subscriberBandwidth", subscriberBandwidth: object.scenario.subscriberBandwidth };
|
4182
|
+
}
|
3571
4183
|
return message;
|
3572
4184
|
},
|
3573
4185
|
};
|
@@ -3588,22 +4200,31 @@ export const Ping = {
|
|
3588
4200
|
},
|
3589
4201
|
|
3590
4202
|
decode(input: _m0.Reader | Uint8Array, length?: number): Ping {
|
3591
|
-
const reader = input instanceof _m0.Reader ? input :
|
4203
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3592
4204
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3593
4205
|
const message = createBasePing();
|
3594
4206
|
while (reader.pos < end) {
|
3595
4207
|
const tag = reader.uint32();
|
3596
4208
|
switch (tag >>> 3) {
|
3597
4209
|
case 1:
|
4210
|
+
if (tag != 8) {
|
4211
|
+
break;
|
4212
|
+
}
|
4213
|
+
|
3598
4214
|
message.timestamp = longToNumber(reader.int64() as Long);
|
3599
|
-
|
4215
|
+
continue;
|
3600
4216
|
case 2:
|
4217
|
+
if (tag != 16) {
|
4218
|
+
break;
|
4219
|
+
}
|
4220
|
+
|
3601
4221
|
message.rtt = longToNumber(reader.int64() as Long);
|
3602
|
-
|
3603
|
-
|
3604
|
-
|
3605
|
-
|
4222
|
+
continue;
|
4223
|
+
}
|
4224
|
+
if ((tag & 7) == 4 || tag == 0) {
|
4225
|
+
break;
|
3606
4226
|
}
|
4227
|
+
reader.skipType(tag & 7);
|
3607
4228
|
}
|
3608
4229
|
return message;
|
3609
4230
|
},
|
@@ -3650,22 +4271,31 @@ export const Pong = {
|
|
3650
4271
|
},
|
3651
4272
|
|
3652
4273
|
decode(input: _m0.Reader | Uint8Array, length?: number): Pong {
|
3653
|
-
const reader = input instanceof _m0.Reader ? input :
|
4274
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3654
4275
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3655
4276
|
const message = createBasePong();
|
3656
4277
|
while (reader.pos < end) {
|
3657
4278
|
const tag = reader.uint32();
|
3658
4279
|
switch (tag >>> 3) {
|
3659
4280
|
case 1:
|
4281
|
+
if (tag != 8) {
|
4282
|
+
break;
|
4283
|
+
}
|
4284
|
+
|
3660
4285
|
message.lastPingTimestamp = longToNumber(reader.int64() as Long);
|
3661
|
-
|
4286
|
+
continue;
|
3662
4287
|
case 2:
|
4288
|
+
if (tag != 16) {
|
4289
|
+
break;
|
4290
|
+
}
|
4291
|
+
|
3663
4292
|
message.timestamp = longToNumber(reader.int64() as Long);
|
3664
|
-
|
3665
|
-
|
3666
|
-
|
3667
|
-
|
4293
|
+
continue;
|
4294
|
+
}
|
4295
|
+
if ((tag & 7) == 4 || tag == 0) {
|
4296
|
+
break;
|
3668
4297
|
}
|
4298
|
+
reader.skipType(tag & 7);
|
3669
4299
|
}
|
3670
4300
|
return message;
|
3671
4301
|
},
|
@@ -3696,6 +4326,150 @@ export const Pong = {
|
|
3696
4326
|
},
|
3697
4327
|
};
|
3698
4328
|
|
4329
|
+
function createBaseRegionSettings(): RegionSettings {
|
4330
|
+
return { regions: [] };
|
4331
|
+
}
|
4332
|
+
|
4333
|
+
export const RegionSettings = {
|
4334
|
+
encode(message: RegionSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
4335
|
+
for (const v of message.regions) {
|
4336
|
+
RegionInfo.encode(v!, writer.uint32(10).fork()).ldelim();
|
4337
|
+
}
|
4338
|
+
return writer;
|
4339
|
+
},
|
4340
|
+
|
4341
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RegionSettings {
|
4342
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
4343
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
4344
|
+
const message = createBaseRegionSettings();
|
4345
|
+
while (reader.pos < end) {
|
4346
|
+
const tag = reader.uint32();
|
4347
|
+
switch (tag >>> 3) {
|
4348
|
+
case 1:
|
4349
|
+
if (tag != 10) {
|
4350
|
+
break;
|
4351
|
+
}
|
4352
|
+
|
4353
|
+
message.regions.push(RegionInfo.decode(reader, reader.uint32()));
|
4354
|
+
continue;
|
4355
|
+
}
|
4356
|
+
if ((tag & 7) == 4 || tag == 0) {
|
4357
|
+
break;
|
4358
|
+
}
|
4359
|
+
reader.skipType(tag & 7);
|
4360
|
+
}
|
4361
|
+
return message;
|
4362
|
+
},
|
4363
|
+
|
4364
|
+
fromJSON(object: any): RegionSettings {
|
4365
|
+
return { regions: Array.isArray(object?.regions) ? object.regions.map((e: any) => RegionInfo.fromJSON(e)) : [] };
|
4366
|
+
},
|
4367
|
+
|
4368
|
+
toJSON(message: RegionSettings): unknown {
|
4369
|
+
const obj: any = {};
|
4370
|
+
if (message.regions) {
|
4371
|
+
obj.regions = message.regions.map((e) => e ? RegionInfo.toJSON(e) : undefined);
|
4372
|
+
} else {
|
4373
|
+
obj.regions = [];
|
4374
|
+
}
|
4375
|
+
return obj;
|
4376
|
+
},
|
4377
|
+
|
4378
|
+
create<I extends Exact<DeepPartial<RegionSettings>, I>>(base?: I): RegionSettings {
|
4379
|
+
return RegionSettings.fromPartial(base ?? {});
|
4380
|
+
},
|
4381
|
+
|
4382
|
+
fromPartial<I extends Exact<DeepPartial<RegionSettings>, I>>(object: I): RegionSettings {
|
4383
|
+
const message = createBaseRegionSettings();
|
4384
|
+
message.regions = object.regions?.map((e) => RegionInfo.fromPartial(e)) || [];
|
4385
|
+
return message;
|
4386
|
+
},
|
4387
|
+
};
|
4388
|
+
|
4389
|
+
function createBaseRegionInfo(): RegionInfo {
|
4390
|
+
return { region: "", url: "", distance: 0 };
|
4391
|
+
}
|
4392
|
+
|
4393
|
+
export const RegionInfo = {
|
4394
|
+
encode(message: RegionInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
4395
|
+
if (message.region !== "") {
|
4396
|
+
writer.uint32(10).string(message.region);
|
4397
|
+
}
|
4398
|
+
if (message.url !== "") {
|
4399
|
+
writer.uint32(18).string(message.url);
|
4400
|
+
}
|
4401
|
+
if (message.distance !== 0) {
|
4402
|
+
writer.uint32(24).int64(message.distance);
|
4403
|
+
}
|
4404
|
+
return writer;
|
4405
|
+
},
|
4406
|
+
|
4407
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RegionInfo {
|
4408
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
4409
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
4410
|
+
const message = createBaseRegionInfo();
|
4411
|
+
while (reader.pos < end) {
|
4412
|
+
const tag = reader.uint32();
|
4413
|
+
switch (tag >>> 3) {
|
4414
|
+
case 1:
|
4415
|
+
if (tag != 10) {
|
4416
|
+
break;
|
4417
|
+
}
|
4418
|
+
|
4419
|
+
message.region = reader.string();
|
4420
|
+
continue;
|
4421
|
+
case 2:
|
4422
|
+
if (tag != 18) {
|
4423
|
+
break;
|
4424
|
+
}
|
4425
|
+
|
4426
|
+
message.url = reader.string();
|
4427
|
+
continue;
|
4428
|
+
case 3:
|
4429
|
+
if (tag != 24) {
|
4430
|
+
break;
|
4431
|
+
}
|
4432
|
+
|
4433
|
+
message.distance = longToNumber(reader.int64() as Long);
|
4434
|
+
continue;
|
4435
|
+
}
|
4436
|
+
if ((tag & 7) == 4 || tag == 0) {
|
4437
|
+
break;
|
4438
|
+
}
|
4439
|
+
reader.skipType(tag & 7);
|
4440
|
+
}
|
4441
|
+
return message;
|
4442
|
+
},
|
4443
|
+
|
4444
|
+
fromJSON(object: any): RegionInfo {
|
4445
|
+
return {
|
4446
|
+
region: isSet(object.region) ? String(object.region) : "",
|
4447
|
+
url: isSet(object.url) ? String(object.url) : "",
|
4448
|
+
distance: isSet(object.distance) ? Number(object.distance) : 0,
|
4449
|
+
};
|
4450
|
+
},
|
4451
|
+
|
4452
|
+
toJSON(message: RegionInfo): unknown {
|
4453
|
+
const obj: any = {};
|
4454
|
+
message.region !== undefined && (obj.region = message.region);
|
4455
|
+
message.url !== undefined && (obj.url = message.url);
|
4456
|
+
message.distance !== undefined && (obj.distance = Math.round(message.distance));
|
4457
|
+
return obj;
|
4458
|
+
},
|
4459
|
+
|
4460
|
+
create<I extends Exact<DeepPartial<RegionInfo>, I>>(base?: I): RegionInfo {
|
4461
|
+
return RegionInfo.fromPartial(base ?? {});
|
4462
|
+
},
|
4463
|
+
|
4464
|
+
fromPartial<I extends Exact<DeepPartial<RegionInfo>, I>>(object: I): RegionInfo {
|
4465
|
+
const message = createBaseRegionInfo();
|
4466
|
+
message.region = object.region ?? "";
|
4467
|
+
message.url = object.url ?? "";
|
4468
|
+
message.distance = object.distance ?? 0;
|
4469
|
+
return message;
|
4470
|
+
},
|
4471
|
+
};
|
4472
|
+
|
3699
4473
|
declare var self: any | undefined;
|
3700
4474
|
declare var window: any | undefined;
|
3701
4475
|
declare var global: any | undefined;
|