@stinkycomputing/sesame-api-client 1.5.7 → 1.5.9

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/index.cjs CHANGED
@@ -533,6 +533,14 @@ var sesame = $root.sesame = (() => {
533
533
  AudioMixerChannel.prototype.level = 0;
534
534
  AudioMixerChannel.prototype.pan = 0;
535
535
  AudioMixerChannel.prototype.plugins = $util.emptyArray;
536
+ AudioMixerChannel.prototype.mute = false;
537
+ AudioMixerChannel.prototype.automationLevel = null;
538
+ AudioMixerChannel.prototype.automationMute = false;
539
+ let $oneOfFields;
540
+ Object.defineProperty(AudioMixerChannel.prototype, "_automationLevel", {
541
+ get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
542
+ set: $util.oneOfSetter($oneOfFields)
543
+ });
536
544
  AudioMixerChannel.create = function create(properties) {
537
545
  return new AudioMixerChannel(properties);
538
546
  };
@@ -579,6 +587,21 @@ var sesame = $root.sesame = (() => {
579
587
  /* id 7, wireType 2 =*/
580
588
  58
581
589
  ).fork()).ldelim();
590
+ if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
591
+ writer.uint32(
592
+ /* id 8, wireType 0 =*/
593
+ 64
594
+ ).bool(message.mute);
595
+ if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
596
+ writer.uint32(
597
+ /* id 9, wireType 5 =*/
598
+ 77
599
+ ).float(message.automationLevel);
600
+ if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
601
+ writer.uint32(
602
+ /* id 10, wireType 0 =*/
603
+ 80
604
+ ).bool(message.automationMute);
582
605
  return writer;
583
606
  };
584
607
  AudioMixerChannel.encodeDelimited = function encodeDelimited(message, writer) {
@@ -630,6 +653,18 @@ var sesame = $root.sesame = (() => {
630
653
  message.plugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
631
654
  break;
632
655
  }
656
+ case 8: {
657
+ message.mute = reader.bool();
658
+ break;
659
+ }
660
+ case 9: {
661
+ message.automationLevel = reader.float();
662
+ break;
663
+ }
664
+ case 10: {
665
+ message.automationMute = reader.bool();
666
+ break;
667
+ }
633
668
  default:
634
669
  reader.skipType(tag & 7);
635
670
  break;
@@ -645,6 +680,7 @@ var sesame = $root.sesame = (() => {
645
680
  AudioMixerChannel.verify = function verify(message) {
646
681
  if (typeof message !== "object" || message === null)
647
682
  return "object expected";
683
+ let properties = {};
648
684
  if (message.id != null && message.hasOwnProperty("id")) {
649
685
  if (!$util.isString(message.id))
650
686
  return "id: string expected";
@@ -686,6 +722,19 @@ var sesame = $root.sesame = (() => {
686
722
  return "plugins." + error;
687
723
  }
688
724
  }
725
+ if (message.mute != null && message.hasOwnProperty("mute")) {
726
+ if (typeof message.mute !== "boolean")
727
+ return "mute: boolean expected";
728
+ }
729
+ if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
730
+ properties._automationLevel = 1;
731
+ if (typeof message.automationLevel !== "number")
732
+ return "automationLevel: number expected";
733
+ }
734
+ if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
735
+ if (typeof message.automationMute !== "boolean")
736
+ return "automationMute: boolean expected";
737
+ }
689
738
  return null;
690
739
  };
691
740
  AudioMixerChannel.fromObject = function fromObject(object) {
@@ -737,6 +786,12 @@ var sesame = $root.sesame = (() => {
737
786
  message.plugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.plugins[i]);
738
787
  }
739
788
  }
789
+ if (object.mute != null)
790
+ message.mute = Boolean(object.mute);
791
+ if (object.automationLevel != null)
792
+ message.automationLevel = Number(object.automationLevel);
793
+ if (object.automationMute != null)
794
+ message.automationMute = Boolean(object.automationMute);
740
795
  return message;
741
796
  };
742
797
  AudioMixerChannel.toObject = function toObject(message, options) {
@@ -753,6 +808,8 @@ var sesame = $root.sesame = (() => {
753
808
  object.channelType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
754
809
  object.level = 0;
755
810
  object.pan = 0;
811
+ object.mute = false;
812
+ object.automationMute = false;
756
813
  }
757
814
  if (message.id != null && message.hasOwnProperty("id"))
758
815
  object.id = message.id;
@@ -774,6 +831,15 @@ var sesame = $root.sesame = (() => {
774
831
  for (let j = 0; j < message.plugins.length; ++j)
775
832
  object.plugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.plugins[j], options);
776
833
  }
834
+ if (message.mute != null && message.hasOwnProperty("mute"))
835
+ object.mute = message.mute;
836
+ if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
837
+ object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
838
+ if (options.oneofs)
839
+ object._automationLevel = "automationLevel";
840
+ }
841
+ if (message.automationMute != null && message.hasOwnProperty("automationMute"))
842
+ object.automationMute = message.automationMute;
777
843
  return object;
778
844
  };
779
845
  AudioMixerChannel.prototype.toJSON = function toJSON() {
@@ -787,9 +853,162 @@ var sesame = $root.sesame = (() => {
787
853
  };
788
854
  return AudioMixerChannel;
789
855
  }();
856
+ audio.AudioMixerOutput = function() {
857
+ function AudioMixerOutput(properties) {
858
+ this.excludedChannelIds = [];
859
+ if (properties) {
860
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
861
+ if (properties[keys[i]] != null)
862
+ this[keys[i]] = properties[keys[i]];
863
+ }
864
+ }
865
+ AudioMixerOutput.prototype.id = "";
866
+ AudioMixerOutput.prototype.excludedChannelIds = $util.emptyArray;
867
+ AudioMixerOutput.prototype.includeMasterPlugins = null;
868
+ let $oneOfFields;
869
+ Object.defineProperty(AudioMixerOutput.prototype, "_includeMasterPlugins", {
870
+ get: $util.oneOfGetter($oneOfFields = ["includeMasterPlugins"]),
871
+ set: $util.oneOfSetter($oneOfFields)
872
+ });
873
+ AudioMixerOutput.create = function create(properties) {
874
+ return new AudioMixerOutput(properties);
875
+ };
876
+ AudioMixerOutput.encode = function encode(message, writer) {
877
+ if (!writer)
878
+ writer = $Writer.create();
879
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
880
+ writer.uint32(
881
+ /* id 1, wireType 2 =*/
882
+ 10
883
+ ).string(message.id);
884
+ if (message.excludedChannelIds != null && message.excludedChannelIds.length)
885
+ for (let i = 0; i < message.excludedChannelIds.length; ++i)
886
+ writer.uint32(
887
+ /* id 2, wireType 2 =*/
888
+ 18
889
+ ).string(message.excludedChannelIds[i]);
890
+ if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
891
+ writer.uint32(
892
+ /* id 3, wireType 0 =*/
893
+ 24
894
+ ).bool(message.includeMasterPlugins);
895
+ return writer;
896
+ };
897
+ AudioMixerOutput.encodeDelimited = function encodeDelimited(message, writer) {
898
+ return this.encode(message, writer).ldelim();
899
+ };
900
+ AudioMixerOutput.decode = function decode(reader, length, error) {
901
+ if (!(reader instanceof $Reader))
902
+ reader = $Reader.create(reader);
903
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutput();
904
+ while (reader.pos < end) {
905
+ let tag = reader.uint32();
906
+ if (tag === error)
907
+ break;
908
+ switch (tag >>> 3) {
909
+ case 1: {
910
+ message.id = reader.string();
911
+ break;
912
+ }
913
+ case 2: {
914
+ if (!(message.excludedChannelIds && message.excludedChannelIds.length))
915
+ message.excludedChannelIds = [];
916
+ message.excludedChannelIds.push(reader.string());
917
+ break;
918
+ }
919
+ case 3: {
920
+ message.includeMasterPlugins = reader.bool();
921
+ break;
922
+ }
923
+ default:
924
+ reader.skipType(tag & 7);
925
+ break;
926
+ }
927
+ }
928
+ return message;
929
+ };
930
+ AudioMixerOutput.decodeDelimited = function decodeDelimited(reader) {
931
+ if (!(reader instanceof $Reader))
932
+ reader = new $Reader(reader);
933
+ return this.decode(reader, reader.uint32());
934
+ };
935
+ AudioMixerOutput.verify = function verify(message) {
936
+ if (typeof message !== "object" || message === null)
937
+ return "object expected";
938
+ let properties = {};
939
+ if (message.id != null && message.hasOwnProperty("id")) {
940
+ if (!$util.isString(message.id))
941
+ return "id: string expected";
942
+ }
943
+ if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
944
+ if (!Array.isArray(message.excludedChannelIds))
945
+ return "excludedChannelIds: array expected";
946
+ for (let i = 0; i < message.excludedChannelIds.length; ++i)
947
+ if (!$util.isString(message.excludedChannelIds[i]))
948
+ return "excludedChannelIds: string[] expected";
949
+ }
950
+ if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
951
+ properties._includeMasterPlugins = 1;
952
+ if (typeof message.includeMasterPlugins !== "boolean")
953
+ return "includeMasterPlugins: boolean expected";
954
+ }
955
+ return null;
956
+ };
957
+ AudioMixerOutput.fromObject = function fromObject(object) {
958
+ if (object instanceof $root.sesame.v1.audio.AudioMixerOutput)
959
+ return object;
960
+ let message = new $root.sesame.v1.audio.AudioMixerOutput();
961
+ if (object.id != null)
962
+ message.id = String(object.id);
963
+ if (object.excludedChannelIds) {
964
+ if (!Array.isArray(object.excludedChannelIds))
965
+ throw TypeError(".sesame.v1.audio.AudioMixerOutput.excludedChannelIds: array expected");
966
+ message.excludedChannelIds = [];
967
+ for (let i = 0; i < object.excludedChannelIds.length; ++i)
968
+ message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
969
+ }
970
+ if (object.includeMasterPlugins != null)
971
+ message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
972
+ return message;
973
+ };
974
+ AudioMixerOutput.toObject = function toObject(message, options) {
975
+ if (!options)
976
+ options = {};
977
+ let object = {};
978
+ if (options.arrays || options.defaults)
979
+ object.excludedChannelIds = [];
980
+ if (options.defaults)
981
+ object.id = "";
982
+ if (message.id != null && message.hasOwnProperty("id"))
983
+ object.id = message.id;
984
+ if (message.excludedChannelIds && message.excludedChannelIds.length) {
985
+ object.excludedChannelIds = [];
986
+ for (let j = 0; j < message.excludedChannelIds.length; ++j)
987
+ object.excludedChannelIds[j] = message.excludedChannelIds[j];
988
+ }
989
+ if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
990
+ object.includeMasterPlugins = message.includeMasterPlugins;
991
+ if (options.oneofs)
992
+ object._includeMasterPlugins = "includeMasterPlugins";
993
+ }
994
+ return object;
995
+ };
996
+ AudioMixerOutput.prototype.toJSON = function toJSON() {
997
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
998
+ };
999
+ AudioMixerOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1000
+ if (typeUrlPrefix === void 0) {
1001
+ typeUrlPrefix = "type.googleapis.com";
1002
+ }
1003
+ return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutput";
1004
+ };
1005
+ return AudioMixerOutput;
1006
+ }();
790
1007
  audio.AudioMixerConfig = function() {
791
1008
  function AudioMixerConfig(properties) {
792
1009
  this.channels = [];
1010
+ this.outputs = [];
1011
+ this.masterPlugins = [];
793
1012
  if (properties) {
794
1013
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
795
1014
  if (properties[keys[i]] != null)
@@ -799,6 +1018,19 @@ var sesame = $root.sesame = (() => {
799
1018
  AudioMixerConfig.prototype.channels = $util.emptyArray;
800
1019
  AudioMixerConfig.prototype.outputType = 0;
801
1020
  AudioMixerConfig.prototype.order = 0;
1021
+ AudioMixerConfig.prototype.outputs = $util.emptyArray;
1022
+ AudioMixerConfig.prototype.masterLevel = null;
1023
+ AudioMixerConfig.prototype.masterAutomationLevel = null;
1024
+ AudioMixerConfig.prototype.masterPlugins = $util.emptyArray;
1025
+ let $oneOfFields;
1026
+ Object.defineProperty(AudioMixerConfig.prototype, "_masterLevel", {
1027
+ get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
1028
+ set: $util.oneOfSetter($oneOfFields)
1029
+ });
1030
+ Object.defineProperty(AudioMixerConfig.prototype, "_masterAutomationLevel", {
1031
+ get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
1032
+ set: $util.oneOfSetter($oneOfFields)
1033
+ });
802
1034
  AudioMixerConfig.create = function create(properties) {
803
1035
  return new AudioMixerConfig(properties);
804
1036
  };
@@ -821,6 +1053,28 @@ var sesame = $root.sesame = (() => {
821
1053
  /* id 3, wireType 0 =*/
822
1054
  24
823
1055
  ).uint32(message.order);
1056
+ if (message.outputs != null && message.outputs.length)
1057
+ for (let i = 0; i < message.outputs.length; ++i)
1058
+ $root.sesame.v1.audio.AudioMixerOutput.encode(message.outputs[i], writer.uint32(
1059
+ /* id 4, wireType 2 =*/
1060
+ 34
1061
+ ).fork()).ldelim();
1062
+ if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
1063
+ writer.uint32(
1064
+ /* id 5, wireType 5 =*/
1065
+ 45
1066
+ ).float(message.masterLevel);
1067
+ if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
1068
+ writer.uint32(
1069
+ /* id 6, wireType 5 =*/
1070
+ 53
1071
+ ).float(message.masterAutomationLevel);
1072
+ if (message.masterPlugins != null && message.masterPlugins.length)
1073
+ for (let i = 0; i < message.masterPlugins.length; ++i)
1074
+ $root.sesame.v1.audio.AudioPlugin.encode(message.masterPlugins[i], writer.uint32(
1075
+ /* id 7, wireType 2 =*/
1076
+ 58
1077
+ ).fork()).ldelim();
824
1078
  return writer;
825
1079
  };
826
1080
  AudioMixerConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -849,6 +1103,26 @@ var sesame = $root.sesame = (() => {
849
1103
  message.order = reader.uint32();
850
1104
  break;
851
1105
  }
1106
+ case 4: {
1107
+ if (!(message.outputs && message.outputs.length))
1108
+ message.outputs = [];
1109
+ message.outputs.push($root.sesame.v1.audio.AudioMixerOutput.decode(reader, reader.uint32()));
1110
+ break;
1111
+ }
1112
+ case 5: {
1113
+ message.masterLevel = reader.float();
1114
+ break;
1115
+ }
1116
+ case 6: {
1117
+ message.masterAutomationLevel = reader.float();
1118
+ break;
1119
+ }
1120
+ case 7: {
1121
+ if (!(message.masterPlugins && message.masterPlugins.length))
1122
+ message.masterPlugins = [];
1123
+ message.masterPlugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
1124
+ break;
1125
+ }
852
1126
  default:
853
1127
  reader.skipType(tag & 7);
854
1128
  break;
@@ -864,6 +1138,7 @@ var sesame = $root.sesame = (() => {
864
1138
  AudioMixerConfig.verify = function verify(message) {
865
1139
  if (typeof message !== "object" || message === null)
866
1140
  return "object expected";
1141
+ let properties = {};
867
1142
  if (message.channels != null && message.hasOwnProperty("channels")) {
868
1143
  if (!Array.isArray(message.channels))
869
1144
  return "channels: array expected";
@@ -886,6 +1161,34 @@ var sesame = $root.sesame = (() => {
886
1161
  if (!$util.isInteger(message.order))
887
1162
  return "order: integer expected";
888
1163
  }
1164
+ if (message.outputs != null && message.hasOwnProperty("outputs")) {
1165
+ if (!Array.isArray(message.outputs))
1166
+ return "outputs: array expected";
1167
+ for (let i = 0; i < message.outputs.length; ++i) {
1168
+ let error = $root.sesame.v1.audio.AudioMixerOutput.verify(message.outputs[i]);
1169
+ if (error)
1170
+ return "outputs." + error;
1171
+ }
1172
+ }
1173
+ if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
1174
+ properties._masterLevel = 1;
1175
+ if (typeof message.masterLevel !== "number")
1176
+ return "masterLevel: number expected";
1177
+ }
1178
+ if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
1179
+ properties._masterAutomationLevel = 1;
1180
+ if (typeof message.masterAutomationLevel !== "number")
1181
+ return "masterAutomationLevel: number expected";
1182
+ }
1183
+ if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
1184
+ if (!Array.isArray(message.masterPlugins))
1185
+ return "masterPlugins: array expected";
1186
+ for (let i = 0; i < message.masterPlugins.length; ++i) {
1187
+ let error = $root.sesame.v1.audio.AudioPlugin.verify(message.masterPlugins[i]);
1188
+ if (error)
1189
+ return "masterPlugins." + error;
1190
+ }
1191
+ }
889
1192
  return null;
890
1193
  };
891
1194
  AudioMixerConfig.fromObject = function fromObject(object) {
@@ -924,14 +1227,41 @@ var sesame = $root.sesame = (() => {
924
1227
  }
925
1228
  if (object.order != null)
926
1229
  message.order = object.order >>> 0;
1230
+ if (object.outputs) {
1231
+ if (!Array.isArray(object.outputs))
1232
+ throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: array expected");
1233
+ message.outputs = [];
1234
+ for (let i = 0; i < object.outputs.length; ++i) {
1235
+ if (typeof object.outputs[i] !== "object")
1236
+ throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: object expected");
1237
+ message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutput.fromObject(object.outputs[i]);
1238
+ }
1239
+ }
1240
+ if (object.masterLevel != null)
1241
+ message.masterLevel = Number(object.masterLevel);
1242
+ if (object.masterAutomationLevel != null)
1243
+ message.masterAutomationLevel = Number(object.masterAutomationLevel);
1244
+ if (object.masterPlugins) {
1245
+ if (!Array.isArray(object.masterPlugins))
1246
+ throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: array expected");
1247
+ message.masterPlugins = [];
1248
+ for (let i = 0; i < object.masterPlugins.length; ++i) {
1249
+ if (typeof object.masterPlugins[i] !== "object")
1250
+ throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: object expected");
1251
+ message.masterPlugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.masterPlugins[i]);
1252
+ }
1253
+ }
927
1254
  return message;
928
1255
  };
929
1256
  AudioMixerConfig.toObject = function toObject(message, options) {
930
1257
  if (!options)
931
1258
  options = {};
932
1259
  let object = {};
933
- if (options.arrays || options.defaults)
1260
+ if (options.arrays || options.defaults) {
934
1261
  object.channels = [];
1262
+ object.outputs = [];
1263
+ object.masterPlugins = [];
1264
+ }
935
1265
  if (options.defaults) {
936
1266
  object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
937
1267
  object.order = 0;
@@ -945,6 +1275,26 @@ var sesame = $root.sesame = (() => {
945
1275
  object.outputType = options.enums === String ? $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] === void 0 ? message.outputType : $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] : message.outputType;
946
1276
  if (message.order != null && message.hasOwnProperty("order"))
947
1277
  object.order = message.order;
1278
+ if (message.outputs && message.outputs.length) {
1279
+ object.outputs = [];
1280
+ for (let j = 0; j < message.outputs.length; ++j)
1281
+ object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutput.toObject(message.outputs[j], options);
1282
+ }
1283
+ if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
1284
+ object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
1285
+ if (options.oneofs)
1286
+ object._masterLevel = "masterLevel";
1287
+ }
1288
+ if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
1289
+ object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
1290
+ if (options.oneofs)
1291
+ object._masterAutomationLevel = "masterAutomationLevel";
1292
+ }
1293
+ if (message.masterPlugins && message.masterPlugins.length) {
1294
+ object.masterPlugins = [];
1295
+ for (let j = 0; j < message.masterPlugins.length; ++j)
1296
+ object.masterPlugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.masterPlugins[j], options);
1297
+ }
948
1298
  return object;
949
1299
  };
950
1300
  AudioMixerConfig.prototype.toJSON = function toJSON() {
@@ -1656,6 +2006,11 @@ var sesame = $root.sesame = (() => {
1656
2006
  AudioChannelStatus.prototype.hasData = false;
1657
2007
  AudioChannelStatus.prototype.readErrors = 0;
1658
2008
  AudioChannelStatus.prototype.plugins = $util.emptyArray;
2009
+ AudioChannelStatus.prototype.mute = false;
2010
+ AudioChannelStatus.prototype.automationLevel = 0;
2011
+ AudioChannelStatus.prototype.automationMute = false;
2012
+ AudioChannelStatus.prototype.effectiveLevel = 0;
2013
+ AudioChannelStatus.prototype.effectiveMute = false;
1659
2014
  AudioChannelStatus.create = function create(properties) {
1660
2015
  return new AudioChannelStatus(properties);
1661
2016
  };
@@ -1707,6 +2062,31 @@ var sesame = $root.sesame = (() => {
1707
2062
  /* id 8, wireType 2 =*/
1708
2063
  66
1709
2064
  ).fork()).ldelim();
2065
+ if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
2066
+ writer.uint32(
2067
+ /* id 9, wireType 0 =*/
2068
+ 72
2069
+ ).bool(message.mute);
2070
+ if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
2071
+ writer.uint32(
2072
+ /* id 10, wireType 5 =*/
2073
+ 85
2074
+ ).float(message.automationLevel);
2075
+ if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
2076
+ writer.uint32(
2077
+ /* id 11, wireType 0 =*/
2078
+ 88
2079
+ ).bool(message.automationMute);
2080
+ if (message.effectiveLevel != null && Object.hasOwnProperty.call(message, "effectiveLevel"))
2081
+ writer.uint32(
2082
+ /* id 12, wireType 5 =*/
2083
+ 101
2084
+ ).float(message.effectiveLevel);
2085
+ if (message.effectiveMute != null && Object.hasOwnProperty.call(message, "effectiveMute"))
2086
+ writer.uint32(
2087
+ /* id 13, wireType 0 =*/
2088
+ 104
2089
+ ).bool(message.effectiveMute);
1710
2090
  return writer;
1711
2091
  };
1712
2092
  AudioChannelStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -1762,6 +2142,26 @@ var sesame = $root.sesame = (() => {
1762
2142
  message.plugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
1763
2143
  break;
1764
2144
  }
2145
+ case 9: {
2146
+ message.mute = reader.bool();
2147
+ break;
2148
+ }
2149
+ case 10: {
2150
+ message.automationLevel = reader.float();
2151
+ break;
2152
+ }
2153
+ case 11: {
2154
+ message.automationMute = reader.bool();
2155
+ break;
2156
+ }
2157
+ case 12: {
2158
+ message.effectiveLevel = reader.float();
2159
+ break;
2160
+ }
2161
+ case 13: {
2162
+ message.effectiveMute = reader.bool();
2163
+ break;
2164
+ }
1765
2165
  default:
1766
2166
  reader.skipType(tag & 7);
1767
2167
  break;
@@ -1822,6 +2222,26 @@ var sesame = $root.sesame = (() => {
1822
2222
  return "plugins." + error;
1823
2223
  }
1824
2224
  }
2225
+ if (message.mute != null && message.hasOwnProperty("mute")) {
2226
+ if (typeof message.mute !== "boolean")
2227
+ return "mute: boolean expected";
2228
+ }
2229
+ if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
2230
+ if (typeof message.automationLevel !== "number")
2231
+ return "automationLevel: number expected";
2232
+ }
2233
+ if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
2234
+ if (typeof message.automationMute !== "boolean")
2235
+ return "automationMute: boolean expected";
2236
+ }
2237
+ if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel")) {
2238
+ if (typeof message.effectiveLevel !== "number")
2239
+ return "effectiveLevel: number expected";
2240
+ }
2241
+ if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute")) {
2242
+ if (typeof message.effectiveMute !== "boolean")
2243
+ return "effectiveMute: boolean expected";
2244
+ }
1825
2245
  return null;
1826
2246
  };
1827
2247
  AudioChannelStatus.fromObject = function fromObject(object) {
@@ -1875,6 +2295,16 @@ var sesame = $root.sesame = (() => {
1875
2295
  message.plugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.plugins[i]);
1876
2296
  }
1877
2297
  }
2298
+ if (object.mute != null)
2299
+ message.mute = Boolean(object.mute);
2300
+ if (object.automationLevel != null)
2301
+ message.automationLevel = Number(object.automationLevel);
2302
+ if (object.automationMute != null)
2303
+ message.automationMute = Boolean(object.automationMute);
2304
+ if (object.effectiveLevel != null)
2305
+ message.effectiveLevel = Number(object.effectiveLevel);
2306
+ if (object.effectiveMute != null)
2307
+ message.effectiveMute = Boolean(object.effectiveMute);
1878
2308
  return message;
1879
2309
  };
1880
2310
  AudioChannelStatus.toObject = function toObject(message, options) {
@@ -1892,6 +2322,11 @@ var sesame = $root.sesame = (() => {
1892
2322
  object.pan = 0;
1893
2323
  object.hasData = false;
1894
2324
  object.readErrors = 0;
2325
+ object.mute = false;
2326
+ object.automationLevel = 0;
2327
+ object.automationMute = false;
2328
+ object.effectiveLevel = 0;
2329
+ object.effectiveMute = false;
1895
2330
  }
1896
2331
  if (message.id != null && message.hasOwnProperty("id"))
1897
2332
  object.id = message.id;
@@ -1915,6 +2350,16 @@ var sesame = $root.sesame = (() => {
1915
2350
  for (let j = 0; j < message.plugins.length; ++j)
1916
2351
  object.plugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.plugins[j], options);
1917
2352
  }
2353
+ if (message.mute != null && message.hasOwnProperty("mute"))
2354
+ object.mute = message.mute;
2355
+ if (message.automationLevel != null && message.hasOwnProperty("automationLevel"))
2356
+ object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
2357
+ if (message.automationMute != null && message.hasOwnProperty("automationMute"))
2358
+ object.automationMute = message.automationMute;
2359
+ if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel"))
2360
+ object.effectiveLevel = options.json && !isFinite(message.effectiveLevel) ? String(message.effectiveLevel) : message.effectiveLevel;
2361
+ if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute"))
2362
+ object.effectiveMute = message.effectiveMute;
1918
2363
  return object;
1919
2364
  };
1920
2365
  AudioChannelStatus.prototype.toJSON = function toJSON() {
@@ -1928,24 +2373,25 @@ var sesame = $root.sesame = (() => {
1928
2373
  };
1929
2374
  return AudioChannelStatus;
1930
2375
  }();
1931
- audio.AudioMixerStatus = function() {
1932
- function AudioMixerStatus(properties) {
2376
+ audio.AudioMixerOutputStatus = function() {
2377
+ function AudioMixerOutputStatus(properties) {
1933
2378
  this.vu = [];
1934
- this.channels = [];
2379
+ this.excludedChannelIds = [];
1935
2380
  if (properties) {
1936
2381
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1937
2382
  if (properties[keys[i]] != null)
1938
2383
  this[keys[i]] = properties[keys[i]];
1939
2384
  }
1940
2385
  }
1941
- AudioMixerStatus.prototype.id = "";
1942
- AudioMixerStatus.prototype.outputType = 0;
1943
- AudioMixerStatus.prototype.vu = $util.emptyArray;
1944
- AudioMixerStatus.prototype.channels = $util.emptyArray;
1945
- AudioMixerStatus.create = function create(properties) {
1946
- return new AudioMixerStatus(properties);
1947
- };
1948
- AudioMixerStatus.encode = function encode(message, writer) {
2386
+ AudioMixerOutputStatus.prototype.id = "";
2387
+ AudioMixerOutputStatus.prototype.outputType = 0;
2388
+ AudioMixerOutputStatus.prototype.vu = $util.emptyArray;
2389
+ AudioMixerOutputStatus.prototype.excludedChannelIds = $util.emptyArray;
2390
+ AudioMixerOutputStatus.prototype.includeMasterPlugins = false;
2391
+ AudioMixerOutputStatus.create = function create(properties) {
2392
+ return new AudioMixerOutputStatus(properties);
2393
+ };
2394
+ AudioMixerOutputStatus.encode = function encode(message, writer) {
1949
2395
  if (!writer)
1950
2396
  writer = $Writer.create();
1951
2397
  if (message.id != null && Object.hasOwnProperty.call(message, "id"))
@@ -1967,21 +2413,26 @@ var sesame = $root.sesame = (() => {
1967
2413
  writer.float(message.vu[i]);
1968
2414
  writer.ldelim();
1969
2415
  }
1970
- if (message.channels != null && message.channels.length)
1971
- for (let i = 0; i < message.channels.length; ++i)
1972
- $root.sesame.v1.audio.AudioChannelStatus.encode(message.channels[i], writer.uint32(
2416
+ if (message.excludedChannelIds != null && message.excludedChannelIds.length)
2417
+ for (let i = 0; i < message.excludedChannelIds.length; ++i)
2418
+ writer.uint32(
1973
2419
  /* id 4, wireType 2 =*/
1974
2420
  34
1975
- ).fork()).ldelim();
2421
+ ).string(message.excludedChannelIds[i]);
2422
+ if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
2423
+ writer.uint32(
2424
+ /* id 5, wireType 0 =*/
2425
+ 40
2426
+ ).bool(message.includeMasterPlugins);
1976
2427
  return writer;
1977
2428
  };
1978
- AudioMixerStatus.encodeDelimited = function encodeDelimited(message, writer) {
2429
+ AudioMixerOutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
1979
2430
  return this.encode(message, writer).ldelim();
1980
2431
  };
1981
- AudioMixerStatus.decode = function decode(reader, length, error) {
2432
+ AudioMixerOutputStatus.decode = function decode(reader, length, error) {
1982
2433
  if (!(reader instanceof $Reader))
1983
2434
  reader = $Reader.create(reader);
1984
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerStatus();
2435
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
1985
2436
  while (reader.pos < end) {
1986
2437
  let tag = reader.uint32();
1987
2438
  if (tag === error)
@@ -2007,9 +2458,13 @@ var sesame = $root.sesame = (() => {
2007
2458
  break;
2008
2459
  }
2009
2460
  case 4: {
2010
- if (!(message.channels && message.channels.length))
2011
- message.channels = [];
2012
- message.channels.push($root.sesame.v1.audio.AudioChannelStatus.decode(reader, reader.uint32()));
2461
+ if (!(message.excludedChannelIds && message.excludedChannelIds.length))
2462
+ message.excludedChannelIds = [];
2463
+ message.excludedChannelIds.push(reader.string());
2464
+ break;
2465
+ }
2466
+ case 5: {
2467
+ message.includeMasterPlugins = reader.bool();
2013
2468
  break;
2014
2469
  }
2015
2470
  default:
@@ -2019,12 +2474,12 @@ var sesame = $root.sesame = (() => {
2019
2474
  }
2020
2475
  return message;
2021
2476
  };
2022
- AudioMixerStatus.decodeDelimited = function decodeDelimited(reader) {
2477
+ AudioMixerOutputStatus.decodeDelimited = function decodeDelimited(reader) {
2023
2478
  if (!(reader instanceof $Reader))
2024
2479
  reader = new $Reader(reader);
2025
2480
  return this.decode(reader, reader.uint32());
2026
2481
  };
2027
- AudioMixerStatus.verify = function verify(message) {
2482
+ AudioMixerOutputStatus.verify = function verify(message) {
2028
2483
  if (typeof message !== "object" || message === null)
2029
2484
  return "object expected";
2030
2485
  if (message.id != null && message.hasOwnProperty("id")) {
@@ -2047,15 +2502,321 @@ var sesame = $root.sesame = (() => {
2047
2502
  if (typeof message.vu[i] !== "number")
2048
2503
  return "vu: number[] expected";
2049
2504
  }
2050
- if (message.channels != null && message.hasOwnProperty("channels")) {
2051
- if (!Array.isArray(message.channels))
2052
- return "channels: array expected";
2053
- for (let i = 0; i < message.channels.length; ++i) {
2054
- let error = $root.sesame.v1.audio.AudioChannelStatus.verify(message.channels[i]);
2505
+ if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
2506
+ if (!Array.isArray(message.excludedChannelIds))
2507
+ return "excludedChannelIds: array expected";
2508
+ for (let i = 0; i < message.excludedChannelIds.length; ++i)
2509
+ if (!$util.isString(message.excludedChannelIds[i]))
2510
+ return "excludedChannelIds: string[] expected";
2511
+ }
2512
+ if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
2513
+ if (typeof message.includeMasterPlugins !== "boolean")
2514
+ return "includeMasterPlugins: boolean expected";
2515
+ }
2516
+ return null;
2517
+ };
2518
+ AudioMixerOutputStatus.fromObject = function fromObject(object) {
2519
+ if (object instanceof $root.sesame.v1.audio.AudioMixerOutputStatus)
2520
+ return object;
2521
+ let message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
2522
+ if (object.id != null)
2523
+ message.id = String(object.id);
2524
+ switch (object.outputType) {
2525
+ default:
2526
+ if (typeof object.outputType === "number") {
2527
+ message.outputType = object.outputType;
2528
+ break;
2529
+ }
2530
+ break;
2531
+ case "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED":
2532
+ case 0:
2533
+ message.outputType = 0;
2534
+ break;
2535
+ case "AUDIO_MIXER_CHANNEL_TYPE_MONO":
2536
+ case 1:
2537
+ message.outputType = 1;
2538
+ break;
2539
+ case "AUDIO_MIXER_CHANNEL_TYPE_STEREO":
2540
+ case 2:
2541
+ message.outputType = 2;
2542
+ break;
2543
+ }
2544
+ if (object.vu) {
2545
+ if (!Array.isArray(object.vu))
2546
+ throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.vu: array expected");
2547
+ message.vu = [];
2548
+ for (let i = 0; i < object.vu.length; ++i)
2549
+ message.vu[i] = Number(object.vu[i]);
2550
+ }
2551
+ if (object.excludedChannelIds) {
2552
+ if (!Array.isArray(object.excludedChannelIds))
2553
+ throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.excludedChannelIds: array expected");
2554
+ message.excludedChannelIds = [];
2555
+ for (let i = 0; i < object.excludedChannelIds.length; ++i)
2556
+ message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
2557
+ }
2558
+ if (object.includeMasterPlugins != null)
2559
+ message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
2560
+ return message;
2561
+ };
2562
+ AudioMixerOutputStatus.toObject = function toObject(message, options) {
2563
+ if (!options)
2564
+ options = {};
2565
+ let object = {};
2566
+ if (options.arrays || options.defaults) {
2567
+ object.vu = [];
2568
+ object.excludedChannelIds = [];
2569
+ }
2570
+ if (options.defaults) {
2571
+ object.id = "";
2572
+ object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
2573
+ object.includeMasterPlugins = false;
2574
+ }
2575
+ if (message.id != null && message.hasOwnProperty("id"))
2576
+ object.id = message.id;
2577
+ if (message.outputType != null && message.hasOwnProperty("outputType"))
2578
+ object.outputType = options.enums === String ? $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] === void 0 ? message.outputType : $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] : message.outputType;
2579
+ if (message.vu && message.vu.length) {
2580
+ object.vu = [];
2581
+ for (let j = 0; j < message.vu.length; ++j)
2582
+ object.vu[j] = options.json && !isFinite(message.vu[j]) ? String(message.vu[j]) : message.vu[j];
2583
+ }
2584
+ if (message.excludedChannelIds && message.excludedChannelIds.length) {
2585
+ object.excludedChannelIds = [];
2586
+ for (let j = 0; j < message.excludedChannelIds.length; ++j)
2587
+ object.excludedChannelIds[j] = message.excludedChannelIds[j];
2588
+ }
2589
+ if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins"))
2590
+ object.includeMasterPlugins = message.includeMasterPlugins;
2591
+ return object;
2592
+ };
2593
+ AudioMixerOutputStatus.prototype.toJSON = function toJSON() {
2594
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
2595
+ };
2596
+ AudioMixerOutputStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2597
+ if (typeUrlPrefix === void 0) {
2598
+ typeUrlPrefix = "type.googleapis.com";
2599
+ }
2600
+ return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutputStatus";
2601
+ };
2602
+ return AudioMixerOutputStatus;
2603
+ }();
2604
+ audio.AudioMixerStatus = function() {
2605
+ function AudioMixerStatus(properties) {
2606
+ this.vu = [];
2607
+ this.channels = [];
2608
+ this.masterPlugins = [];
2609
+ this.outputs = [];
2610
+ if (properties) {
2611
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2612
+ if (properties[keys[i]] != null)
2613
+ this[keys[i]] = properties[keys[i]];
2614
+ }
2615
+ }
2616
+ AudioMixerStatus.prototype.id = "";
2617
+ AudioMixerStatus.prototype.outputType = 0;
2618
+ AudioMixerStatus.prototype.vu = $util.emptyArray;
2619
+ AudioMixerStatus.prototype.channels = $util.emptyArray;
2620
+ AudioMixerStatus.prototype.masterLevel = 0;
2621
+ AudioMixerStatus.prototype.masterAutomationLevel = 0;
2622
+ AudioMixerStatus.prototype.masterEffectiveLevel = 0;
2623
+ AudioMixerStatus.prototype.masterPlugins = $util.emptyArray;
2624
+ AudioMixerStatus.prototype.outputs = $util.emptyArray;
2625
+ AudioMixerStatus.create = function create(properties) {
2626
+ return new AudioMixerStatus(properties);
2627
+ };
2628
+ AudioMixerStatus.encode = function encode(message, writer) {
2629
+ if (!writer)
2630
+ writer = $Writer.create();
2631
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
2632
+ writer.uint32(
2633
+ /* id 1, wireType 2 =*/
2634
+ 10
2635
+ ).string(message.id);
2636
+ if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType"))
2637
+ writer.uint32(
2638
+ /* id 2, wireType 0 =*/
2639
+ 16
2640
+ ).int32(message.outputType);
2641
+ if (message.vu != null && message.vu.length) {
2642
+ writer.uint32(
2643
+ /* id 3, wireType 2 =*/
2644
+ 26
2645
+ ).fork();
2646
+ for (let i = 0; i < message.vu.length; ++i)
2647
+ writer.float(message.vu[i]);
2648
+ writer.ldelim();
2649
+ }
2650
+ if (message.channels != null && message.channels.length)
2651
+ for (let i = 0; i < message.channels.length; ++i)
2652
+ $root.sesame.v1.audio.AudioChannelStatus.encode(message.channels[i], writer.uint32(
2653
+ /* id 4, wireType 2 =*/
2654
+ 34
2655
+ ).fork()).ldelim();
2656
+ if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
2657
+ writer.uint32(
2658
+ /* id 5, wireType 5 =*/
2659
+ 45
2660
+ ).float(message.masterLevel);
2661
+ if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
2662
+ writer.uint32(
2663
+ /* id 6, wireType 5 =*/
2664
+ 53
2665
+ ).float(message.masterAutomationLevel);
2666
+ if (message.masterEffectiveLevel != null && Object.hasOwnProperty.call(message, "masterEffectiveLevel"))
2667
+ writer.uint32(
2668
+ /* id 7, wireType 5 =*/
2669
+ 61
2670
+ ).float(message.masterEffectiveLevel);
2671
+ if (message.masterPlugins != null && message.masterPlugins.length)
2672
+ for (let i = 0; i < message.masterPlugins.length; ++i)
2673
+ $root.sesame.v1.audio.AudioChannelPluginStatus.encode(message.masterPlugins[i], writer.uint32(
2674
+ /* id 8, wireType 2 =*/
2675
+ 66
2676
+ ).fork()).ldelim();
2677
+ if (message.outputs != null && message.outputs.length)
2678
+ for (let i = 0; i < message.outputs.length; ++i)
2679
+ $root.sesame.v1.audio.AudioMixerOutputStatus.encode(message.outputs[i], writer.uint32(
2680
+ /* id 9, wireType 2 =*/
2681
+ 74
2682
+ ).fork()).ldelim();
2683
+ return writer;
2684
+ };
2685
+ AudioMixerStatus.encodeDelimited = function encodeDelimited(message, writer) {
2686
+ return this.encode(message, writer).ldelim();
2687
+ };
2688
+ AudioMixerStatus.decode = function decode(reader, length, error) {
2689
+ if (!(reader instanceof $Reader))
2690
+ reader = $Reader.create(reader);
2691
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerStatus();
2692
+ while (reader.pos < end) {
2693
+ let tag = reader.uint32();
2694
+ if (tag === error)
2695
+ break;
2696
+ switch (tag >>> 3) {
2697
+ case 1: {
2698
+ message.id = reader.string();
2699
+ break;
2700
+ }
2701
+ case 2: {
2702
+ message.outputType = reader.int32();
2703
+ break;
2704
+ }
2705
+ case 3: {
2706
+ if (!(message.vu && message.vu.length))
2707
+ message.vu = [];
2708
+ if ((tag & 7) === 2) {
2709
+ let end2 = reader.uint32() + reader.pos;
2710
+ while (reader.pos < end2)
2711
+ message.vu.push(reader.float());
2712
+ } else
2713
+ message.vu.push(reader.float());
2714
+ break;
2715
+ }
2716
+ case 4: {
2717
+ if (!(message.channels && message.channels.length))
2718
+ message.channels = [];
2719
+ message.channels.push($root.sesame.v1.audio.AudioChannelStatus.decode(reader, reader.uint32()));
2720
+ break;
2721
+ }
2722
+ case 5: {
2723
+ message.masterLevel = reader.float();
2724
+ break;
2725
+ }
2726
+ case 6: {
2727
+ message.masterAutomationLevel = reader.float();
2728
+ break;
2729
+ }
2730
+ case 7: {
2731
+ message.masterEffectiveLevel = reader.float();
2732
+ break;
2733
+ }
2734
+ case 8: {
2735
+ if (!(message.masterPlugins && message.masterPlugins.length))
2736
+ message.masterPlugins = [];
2737
+ message.masterPlugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
2738
+ break;
2739
+ }
2740
+ case 9: {
2741
+ if (!(message.outputs && message.outputs.length))
2742
+ message.outputs = [];
2743
+ message.outputs.push($root.sesame.v1.audio.AudioMixerOutputStatus.decode(reader, reader.uint32()));
2744
+ break;
2745
+ }
2746
+ default:
2747
+ reader.skipType(tag & 7);
2748
+ break;
2749
+ }
2750
+ }
2751
+ return message;
2752
+ };
2753
+ AudioMixerStatus.decodeDelimited = function decodeDelimited(reader) {
2754
+ if (!(reader instanceof $Reader))
2755
+ reader = new $Reader(reader);
2756
+ return this.decode(reader, reader.uint32());
2757
+ };
2758
+ AudioMixerStatus.verify = function verify(message) {
2759
+ if (typeof message !== "object" || message === null)
2760
+ return "object expected";
2761
+ if (message.id != null && message.hasOwnProperty("id")) {
2762
+ if (!$util.isString(message.id))
2763
+ return "id: string expected";
2764
+ }
2765
+ if (message.outputType != null && message.hasOwnProperty("outputType"))
2766
+ switch (message.outputType) {
2767
+ default:
2768
+ return "outputType: enum value expected";
2769
+ case 0:
2770
+ case 1:
2771
+ case 2:
2772
+ break;
2773
+ }
2774
+ if (message.vu != null && message.hasOwnProperty("vu")) {
2775
+ if (!Array.isArray(message.vu))
2776
+ return "vu: array expected";
2777
+ for (let i = 0; i < message.vu.length; ++i)
2778
+ if (typeof message.vu[i] !== "number")
2779
+ return "vu: number[] expected";
2780
+ }
2781
+ if (message.channels != null && message.hasOwnProperty("channels")) {
2782
+ if (!Array.isArray(message.channels))
2783
+ return "channels: array expected";
2784
+ for (let i = 0; i < message.channels.length; ++i) {
2785
+ let error = $root.sesame.v1.audio.AudioChannelStatus.verify(message.channels[i]);
2055
2786
  if (error)
2056
2787
  return "channels." + error;
2057
2788
  }
2058
2789
  }
2790
+ if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
2791
+ if (typeof message.masterLevel !== "number")
2792
+ return "masterLevel: number expected";
2793
+ }
2794
+ if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
2795
+ if (typeof message.masterAutomationLevel !== "number")
2796
+ return "masterAutomationLevel: number expected";
2797
+ }
2798
+ if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel")) {
2799
+ if (typeof message.masterEffectiveLevel !== "number")
2800
+ return "masterEffectiveLevel: number expected";
2801
+ }
2802
+ if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
2803
+ if (!Array.isArray(message.masterPlugins))
2804
+ return "masterPlugins: array expected";
2805
+ for (let i = 0; i < message.masterPlugins.length; ++i) {
2806
+ let error = $root.sesame.v1.audio.AudioChannelPluginStatus.verify(message.masterPlugins[i]);
2807
+ if (error)
2808
+ return "masterPlugins." + error;
2809
+ }
2810
+ }
2811
+ if (message.outputs != null && message.hasOwnProperty("outputs")) {
2812
+ if (!Array.isArray(message.outputs))
2813
+ return "outputs: array expected";
2814
+ for (let i = 0; i < message.outputs.length; ++i) {
2815
+ let error = $root.sesame.v1.audio.AudioMixerOutputStatus.verify(message.outputs[i]);
2816
+ if (error)
2817
+ return "outputs." + error;
2818
+ }
2819
+ }
2059
2820
  return null;
2060
2821
  };
2061
2822
  AudioMixerStatus.fromObject = function fromObject(object) {
@@ -2101,6 +2862,32 @@ var sesame = $root.sesame = (() => {
2101
2862
  message.channels[i] = $root.sesame.v1.audio.AudioChannelStatus.fromObject(object.channels[i]);
2102
2863
  }
2103
2864
  }
2865
+ if (object.masterLevel != null)
2866
+ message.masterLevel = Number(object.masterLevel);
2867
+ if (object.masterAutomationLevel != null)
2868
+ message.masterAutomationLevel = Number(object.masterAutomationLevel);
2869
+ if (object.masterEffectiveLevel != null)
2870
+ message.masterEffectiveLevel = Number(object.masterEffectiveLevel);
2871
+ if (object.masterPlugins) {
2872
+ if (!Array.isArray(object.masterPlugins))
2873
+ throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: array expected");
2874
+ message.masterPlugins = [];
2875
+ for (let i = 0; i < object.masterPlugins.length; ++i) {
2876
+ if (typeof object.masterPlugins[i] !== "object")
2877
+ throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: object expected");
2878
+ message.masterPlugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.masterPlugins[i]);
2879
+ }
2880
+ }
2881
+ if (object.outputs) {
2882
+ if (!Array.isArray(object.outputs))
2883
+ throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: array expected");
2884
+ message.outputs = [];
2885
+ for (let i = 0; i < object.outputs.length; ++i) {
2886
+ if (typeof object.outputs[i] !== "object")
2887
+ throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: object expected");
2888
+ message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutputStatus.fromObject(object.outputs[i]);
2889
+ }
2890
+ }
2104
2891
  return message;
2105
2892
  };
2106
2893
  AudioMixerStatus.toObject = function toObject(message, options) {
@@ -2110,10 +2897,15 @@ var sesame = $root.sesame = (() => {
2110
2897
  if (options.arrays || options.defaults) {
2111
2898
  object.vu = [];
2112
2899
  object.channels = [];
2900
+ object.masterPlugins = [];
2901
+ object.outputs = [];
2113
2902
  }
2114
2903
  if (options.defaults) {
2115
2904
  object.id = "";
2116
2905
  object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
2906
+ object.masterLevel = 0;
2907
+ object.masterAutomationLevel = 0;
2908
+ object.masterEffectiveLevel = 0;
2117
2909
  }
2118
2910
  if (message.id != null && message.hasOwnProperty("id"))
2119
2911
  object.id = message.id;
@@ -2129,6 +2921,22 @@ var sesame = $root.sesame = (() => {
2129
2921
  for (let j = 0; j < message.channels.length; ++j)
2130
2922
  object.channels[j] = $root.sesame.v1.audio.AudioChannelStatus.toObject(message.channels[j], options);
2131
2923
  }
2924
+ if (message.masterLevel != null && message.hasOwnProperty("masterLevel"))
2925
+ object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
2926
+ if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel"))
2927
+ object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
2928
+ if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel"))
2929
+ object.masterEffectiveLevel = options.json && !isFinite(message.masterEffectiveLevel) ? String(message.masterEffectiveLevel) : message.masterEffectiveLevel;
2930
+ if (message.masterPlugins && message.masterPlugins.length) {
2931
+ object.masterPlugins = [];
2932
+ for (let j = 0; j < message.masterPlugins.length; ++j)
2933
+ object.masterPlugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.masterPlugins[j], options);
2934
+ }
2935
+ if (message.outputs && message.outputs.length) {
2936
+ object.outputs = [];
2937
+ for (let j = 0; j < message.outputs.length; ++j)
2938
+ object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutputStatus.toObject(message.outputs[j], options);
2939
+ }
2132
2940
  return object;
2133
2941
  };
2134
2942
  AudioMixerStatus.prototype.toJSON = function toJSON() {
@@ -2283,6 +3091,9 @@ var sesame = $root.sesame = (() => {
2283
3091
  AudioChannelControlRequest.prototype.level = null;
2284
3092
  AudioChannelControlRequest.prototype.pan = null;
2285
3093
  AudioChannelControlRequest.prototype.plugins = $util.emptyArray;
3094
+ AudioChannelControlRequest.prototype.mute = null;
3095
+ AudioChannelControlRequest.prototype.automationLevel = null;
3096
+ AudioChannelControlRequest.prototype.automationMute = null;
2286
3097
  let $oneOfFields;
2287
3098
  Object.defineProperty(AudioChannelControlRequest.prototype, "_level", {
2288
3099
  get: $util.oneOfGetter($oneOfFields = ["level"]),
@@ -2292,11 +3103,23 @@ var sesame = $root.sesame = (() => {
2292
3103
  get: $util.oneOfGetter($oneOfFields = ["pan"]),
2293
3104
  set: $util.oneOfSetter($oneOfFields)
2294
3105
  });
2295
- AudioChannelControlRequest.create = function create(properties) {
2296
- return new AudioChannelControlRequest(properties);
2297
- };
2298
- AudioChannelControlRequest.encode = function encode(message, writer) {
2299
- if (!writer)
3106
+ Object.defineProperty(AudioChannelControlRequest.prototype, "_mute", {
3107
+ get: $util.oneOfGetter($oneOfFields = ["mute"]),
3108
+ set: $util.oneOfSetter($oneOfFields)
3109
+ });
3110
+ Object.defineProperty(AudioChannelControlRequest.prototype, "_automationLevel", {
3111
+ get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
3112
+ set: $util.oneOfSetter($oneOfFields)
3113
+ });
3114
+ Object.defineProperty(AudioChannelControlRequest.prototype, "_automationMute", {
3115
+ get: $util.oneOfGetter($oneOfFields = ["automationMute"]),
3116
+ set: $util.oneOfSetter($oneOfFields)
3117
+ });
3118
+ AudioChannelControlRequest.create = function create(properties) {
3119
+ return new AudioChannelControlRequest(properties);
3120
+ };
3121
+ AudioChannelControlRequest.encode = function encode(message, writer) {
3122
+ if (!writer)
2300
3123
  writer = $Writer.create();
2301
3124
  if (message.channelId != null && Object.hasOwnProperty.call(message, "channelId"))
2302
3125
  writer.uint32(
@@ -2319,6 +3142,21 @@ var sesame = $root.sesame = (() => {
2319
3142
  /* id 4, wireType 2 =*/
2320
3143
  34
2321
3144
  ).fork()).ldelim();
3145
+ if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
3146
+ writer.uint32(
3147
+ /* id 5, wireType 0 =*/
3148
+ 40
3149
+ ).bool(message.mute);
3150
+ if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
3151
+ writer.uint32(
3152
+ /* id 6, wireType 5 =*/
3153
+ 53
3154
+ ).float(message.automationLevel);
3155
+ if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
3156
+ writer.uint32(
3157
+ /* id 7, wireType 0 =*/
3158
+ 56
3159
+ ).bool(message.automationMute);
2322
3160
  return writer;
2323
3161
  };
2324
3162
  AudioChannelControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
@@ -2351,6 +3189,18 @@ var sesame = $root.sesame = (() => {
2351
3189
  message.plugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
2352
3190
  break;
2353
3191
  }
3192
+ case 5: {
3193
+ message.mute = reader.bool();
3194
+ break;
3195
+ }
3196
+ case 6: {
3197
+ message.automationLevel = reader.float();
3198
+ break;
3199
+ }
3200
+ case 7: {
3201
+ message.automationMute = reader.bool();
3202
+ break;
3203
+ }
2354
3204
  default:
2355
3205
  reader.skipType(tag & 7);
2356
3206
  break;
@@ -2390,6 +3240,21 @@ var sesame = $root.sesame = (() => {
2390
3240
  return "plugins." + error;
2391
3241
  }
2392
3242
  }
3243
+ if (message.mute != null && message.hasOwnProperty("mute")) {
3244
+ properties._mute = 1;
3245
+ if (typeof message.mute !== "boolean")
3246
+ return "mute: boolean expected";
3247
+ }
3248
+ if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
3249
+ properties._automationLevel = 1;
3250
+ if (typeof message.automationLevel !== "number")
3251
+ return "automationLevel: number expected";
3252
+ }
3253
+ if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
3254
+ properties._automationMute = 1;
3255
+ if (typeof message.automationMute !== "boolean")
3256
+ return "automationMute: boolean expected";
3257
+ }
2393
3258
  return null;
2394
3259
  };
2395
3260
  AudioChannelControlRequest.fromObject = function fromObject(object) {
@@ -2412,6 +3277,12 @@ var sesame = $root.sesame = (() => {
2412
3277
  message.plugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.plugins[i]);
2413
3278
  }
2414
3279
  }
3280
+ if (object.mute != null)
3281
+ message.mute = Boolean(object.mute);
3282
+ if (object.automationLevel != null)
3283
+ message.automationLevel = Number(object.automationLevel);
3284
+ if (object.automationMute != null)
3285
+ message.automationMute = Boolean(object.automationMute);
2415
3286
  return message;
2416
3287
  };
2417
3288
  AudioChannelControlRequest.toObject = function toObject(message, options) {
@@ -2439,6 +3310,21 @@ var sesame = $root.sesame = (() => {
2439
3310
  for (let j = 0; j < message.plugins.length; ++j)
2440
3311
  object.plugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.plugins[j], options);
2441
3312
  }
3313
+ if (message.mute != null && message.hasOwnProperty("mute")) {
3314
+ object.mute = message.mute;
3315
+ if (options.oneofs)
3316
+ object._mute = "mute";
3317
+ }
3318
+ if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
3319
+ object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
3320
+ if (options.oneofs)
3321
+ object._automationLevel = "automationLevel";
3322
+ }
3323
+ if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
3324
+ object.automationMute = message.automationMute;
3325
+ if (options.oneofs)
3326
+ object._automationMute = "automationMute";
3327
+ }
2442
3328
  return object;
2443
3329
  };
2444
3330
  AudioChannelControlRequest.prototype.toJSON = function toJSON() {
@@ -2455,6 +3341,7 @@ var sesame = $root.sesame = (() => {
2455
3341
  audio.AudioControlRequest = function() {
2456
3342
  function AudioControlRequest(properties) {
2457
3343
  this.channels = [];
3344
+ this.masterPlugins = [];
2458
3345
  if (properties) {
2459
3346
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2460
3347
  if (properties[keys[i]] != null)
@@ -2462,6 +3349,18 @@ var sesame = $root.sesame = (() => {
2462
3349
  }
2463
3350
  }
2464
3351
  AudioControlRequest.prototype.channels = $util.emptyArray;
3352
+ AudioControlRequest.prototype.masterLevel = null;
3353
+ AudioControlRequest.prototype.masterAutomationLevel = null;
3354
+ AudioControlRequest.prototype.masterPlugins = $util.emptyArray;
3355
+ let $oneOfFields;
3356
+ Object.defineProperty(AudioControlRequest.prototype, "_masterLevel", {
3357
+ get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
3358
+ set: $util.oneOfSetter($oneOfFields)
3359
+ });
3360
+ Object.defineProperty(AudioControlRequest.prototype, "_masterAutomationLevel", {
3361
+ get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
3362
+ set: $util.oneOfSetter($oneOfFields)
3363
+ });
2465
3364
  AudioControlRequest.create = function create(properties) {
2466
3365
  return new AudioControlRequest(properties);
2467
3366
  };
@@ -2474,6 +3373,22 @@ var sesame = $root.sesame = (() => {
2474
3373
  /* id 1, wireType 2 =*/
2475
3374
  10
2476
3375
  ).fork()).ldelim();
3376
+ if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
3377
+ writer.uint32(
3378
+ /* id 2, wireType 5 =*/
3379
+ 21
3380
+ ).float(message.masterLevel);
3381
+ if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
3382
+ writer.uint32(
3383
+ /* id 3, wireType 5 =*/
3384
+ 29
3385
+ ).float(message.masterAutomationLevel);
3386
+ if (message.masterPlugins != null && message.masterPlugins.length)
3387
+ for (let i = 0; i < message.masterPlugins.length; ++i)
3388
+ $root.sesame.v1.audio.AudioPluginControlRequest.encode(message.masterPlugins[i], writer.uint32(
3389
+ /* id 4, wireType 2 =*/
3390
+ 34
3391
+ ).fork()).ldelim();
2477
3392
  return writer;
2478
3393
  };
2479
3394
  AudioControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
@@ -2494,6 +3409,20 @@ var sesame = $root.sesame = (() => {
2494
3409
  message.channels.push($root.sesame.v1.audio.AudioChannelControlRequest.decode(reader, reader.uint32()));
2495
3410
  break;
2496
3411
  }
3412
+ case 2: {
3413
+ message.masterLevel = reader.float();
3414
+ break;
3415
+ }
3416
+ case 3: {
3417
+ message.masterAutomationLevel = reader.float();
3418
+ break;
3419
+ }
3420
+ case 4: {
3421
+ if (!(message.masterPlugins && message.masterPlugins.length))
3422
+ message.masterPlugins = [];
3423
+ message.masterPlugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
3424
+ break;
3425
+ }
2497
3426
  default:
2498
3427
  reader.skipType(tag & 7);
2499
3428
  break;
@@ -2509,6 +3438,7 @@ var sesame = $root.sesame = (() => {
2509
3438
  AudioControlRequest.verify = function verify(message) {
2510
3439
  if (typeof message !== "object" || message === null)
2511
3440
  return "object expected";
3441
+ let properties = {};
2512
3442
  if (message.channels != null && message.hasOwnProperty("channels")) {
2513
3443
  if (!Array.isArray(message.channels))
2514
3444
  return "channels: array expected";
@@ -2518,6 +3448,25 @@ var sesame = $root.sesame = (() => {
2518
3448
  return "channels." + error;
2519
3449
  }
2520
3450
  }
3451
+ if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
3452
+ properties._masterLevel = 1;
3453
+ if (typeof message.masterLevel !== "number")
3454
+ return "masterLevel: number expected";
3455
+ }
3456
+ if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
3457
+ properties._masterAutomationLevel = 1;
3458
+ if (typeof message.masterAutomationLevel !== "number")
3459
+ return "masterAutomationLevel: number expected";
3460
+ }
3461
+ if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
3462
+ if (!Array.isArray(message.masterPlugins))
3463
+ return "masterPlugins: array expected";
3464
+ for (let i = 0; i < message.masterPlugins.length; ++i) {
3465
+ let error = $root.sesame.v1.audio.AudioPluginControlRequest.verify(message.masterPlugins[i]);
3466
+ if (error)
3467
+ return "masterPlugins." + error;
3468
+ }
3469
+ }
2521
3470
  return null;
2522
3471
  };
2523
3472
  AudioControlRequest.fromObject = function fromObject(object) {
@@ -2534,19 +3483,50 @@ var sesame = $root.sesame = (() => {
2534
3483
  message.channels[i] = $root.sesame.v1.audio.AudioChannelControlRequest.fromObject(object.channels[i]);
2535
3484
  }
2536
3485
  }
3486
+ if (object.masterLevel != null)
3487
+ message.masterLevel = Number(object.masterLevel);
3488
+ if (object.masterAutomationLevel != null)
3489
+ message.masterAutomationLevel = Number(object.masterAutomationLevel);
3490
+ if (object.masterPlugins) {
3491
+ if (!Array.isArray(object.masterPlugins))
3492
+ throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: array expected");
3493
+ message.masterPlugins = [];
3494
+ for (let i = 0; i < object.masterPlugins.length; ++i) {
3495
+ if (typeof object.masterPlugins[i] !== "object")
3496
+ throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: object expected");
3497
+ message.masterPlugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.masterPlugins[i]);
3498
+ }
3499
+ }
2537
3500
  return message;
2538
3501
  };
2539
3502
  AudioControlRequest.toObject = function toObject(message, options) {
2540
3503
  if (!options)
2541
3504
  options = {};
2542
3505
  let object = {};
2543
- if (options.arrays || options.defaults)
3506
+ if (options.arrays || options.defaults) {
2544
3507
  object.channels = [];
3508
+ object.masterPlugins = [];
3509
+ }
2545
3510
  if (message.channels && message.channels.length) {
2546
3511
  object.channels = [];
2547
3512
  for (let j = 0; j < message.channels.length; ++j)
2548
3513
  object.channels[j] = $root.sesame.v1.audio.AudioChannelControlRequest.toObject(message.channels[j], options);
2549
3514
  }
3515
+ if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
3516
+ object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
3517
+ if (options.oneofs)
3518
+ object._masterLevel = "masterLevel";
3519
+ }
3520
+ if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
3521
+ object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
3522
+ if (options.oneofs)
3523
+ object._masterAutomationLevel = "masterAutomationLevel";
3524
+ }
3525
+ if (message.masterPlugins && message.masterPlugins.length) {
3526
+ object.masterPlugins = [];
3527
+ for (let j = 0; j < message.masterPlugins.length; ++j)
3528
+ object.masterPlugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.masterPlugins[j], options);
3529
+ }
2550
3530
  return object;
2551
3531
  };
2552
3532
  AudioControlRequest.prototype.toJSON = function toJSON() {
@@ -2598,11 +3578,15 @@ var sesame = $root.sesame = (() => {
2598
3578
  CommandListItem.prototype.callback = null;
2599
3579
  CommandListItem.prototype.setSourceMetadata = null;
2600
3580
  CommandListItem.prototype.setMetadataBindings = null;
3581
+ CommandListItem.prototype.addEncoder = null;
3582
+ CommandListItem.prototype.updateEncoder = null;
3583
+ CommandListItem.prototype.removeEncoder = null;
3584
+ CommandListItem.prototype.takePlaylist = null;
2601
3585
  CommandListItem.prototype.transactionId = null;
2602
3586
  CommandListItem.prototype.transactionDeps = $util.emptyArray;
2603
3587
  let $oneOfFields;
2604
3588
  Object.defineProperty(CommandListItem.prototype, "item", {
2605
- get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings"]),
3589
+ get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist"]),
2606
3590
  set: $util.oneOfSetter($oneOfFields)
2607
3591
  });
2608
3592
  Object.defineProperty(CommandListItem.prototype, "_transactionId", {
@@ -2754,6 +3738,26 @@ var sesame = $root.sesame = (() => {
2754
3738
  /* id 27, wireType 2 =*/
2755
3739
  218
2756
3740
  ).fork()).ldelim();
3741
+ if (message.addEncoder != null && Object.hasOwnProperty.call(message, "addEncoder"))
3742
+ $root.sesame.v1.outputs.EncoderAddRequest.encode(message.addEncoder, writer.uint32(
3743
+ /* id 28, wireType 2 =*/
3744
+ 226
3745
+ ).fork()).ldelim();
3746
+ if (message.updateEncoder != null && Object.hasOwnProperty.call(message, "updateEncoder"))
3747
+ $root.sesame.v1.outputs.EncoderUpdateRequest.encode(message.updateEncoder, writer.uint32(
3748
+ /* id 29, wireType 2 =*/
3749
+ 234
3750
+ ).fork()).ldelim();
3751
+ if (message.removeEncoder != null && Object.hasOwnProperty.call(message, "removeEncoder"))
3752
+ $root.sesame.v1.outputs.EncoderRemoveRequest.encode(message.removeEncoder, writer.uint32(
3753
+ /* id 30, wireType 2 =*/
3754
+ 242
3755
+ ).fork()).ldelim();
3756
+ if (message.takePlaylist != null && Object.hasOwnProperty.call(message, "takePlaylist"))
3757
+ $root.sesame.v1.sources.TakePlaylistRequest.encode(message.takePlaylist, writer.uint32(
3758
+ /* id 31, wireType 2 =*/
3759
+ 250
3760
+ ).fork()).ldelim();
2757
3761
  return writer;
2758
3762
  };
2759
3763
  CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
@@ -2868,6 +3872,22 @@ var sesame = $root.sesame = (() => {
2868
3872
  message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.decode(reader, reader.uint32());
2869
3873
  break;
2870
3874
  }
3875
+ case 28: {
3876
+ message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.decode(reader, reader.uint32());
3877
+ break;
3878
+ }
3879
+ case 29: {
3880
+ message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.decode(reader, reader.uint32());
3881
+ break;
3882
+ }
3883
+ case 30: {
3884
+ message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.decode(reader, reader.uint32());
3885
+ break;
3886
+ }
3887
+ case 31: {
3888
+ message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.decode(reader, reader.uint32());
3889
+ break;
3890
+ }
2871
3891
  case 25: {
2872
3892
  message.transactionId = reader.uint32();
2873
3893
  break;
@@ -3141,6 +4161,46 @@ var sesame = $root.sesame = (() => {
3141
4161
  return "setMetadataBindings." + error;
3142
4162
  }
3143
4163
  }
4164
+ if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
4165
+ if (properties.item === 1)
4166
+ return "item: multiple values";
4167
+ properties.item = 1;
4168
+ {
4169
+ let error = $root.sesame.v1.outputs.EncoderAddRequest.verify(message.addEncoder);
4170
+ if (error)
4171
+ return "addEncoder." + error;
4172
+ }
4173
+ }
4174
+ if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
4175
+ if (properties.item === 1)
4176
+ return "item: multiple values";
4177
+ properties.item = 1;
4178
+ {
4179
+ let error = $root.sesame.v1.outputs.EncoderUpdateRequest.verify(message.updateEncoder);
4180
+ if (error)
4181
+ return "updateEncoder." + error;
4182
+ }
4183
+ }
4184
+ if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
4185
+ if (properties.item === 1)
4186
+ return "item: multiple values";
4187
+ properties.item = 1;
4188
+ {
4189
+ let error = $root.sesame.v1.outputs.EncoderRemoveRequest.verify(message.removeEncoder);
4190
+ if (error)
4191
+ return "removeEncoder." + error;
4192
+ }
4193
+ }
4194
+ if (message.takePlaylist != null && message.hasOwnProperty("takePlaylist")) {
4195
+ if (properties.item === 1)
4196
+ return "item: multiple values";
4197
+ properties.item = 1;
4198
+ {
4199
+ let error = $root.sesame.v1.sources.TakePlaylistRequest.verify(message.takePlaylist);
4200
+ if (error)
4201
+ return "takePlaylist." + error;
4202
+ }
4203
+ }
3144
4204
  if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
3145
4205
  properties._transactionId = 1;
3146
4206
  if (!$util.isInteger(message.transactionId))
@@ -3289,6 +4349,26 @@ var sesame = $root.sesame = (() => {
3289
4349
  throw TypeError(".sesame.v1.commands.CommandListItem.setMetadataBindings: object expected");
3290
4350
  message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.fromObject(object.setMetadataBindings);
3291
4351
  }
4352
+ if (object.addEncoder != null) {
4353
+ if (typeof object.addEncoder !== "object")
4354
+ throw TypeError(".sesame.v1.commands.CommandListItem.addEncoder: object expected");
4355
+ message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.fromObject(object.addEncoder);
4356
+ }
4357
+ if (object.updateEncoder != null) {
4358
+ if (typeof object.updateEncoder !== "object")
4359
+ throw TypeError(".sesame.v1.commands.CommandListItem.updateEncoder: object expected");
4360
+ message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.fromObject(object.updateEncoder);
4361
+ }
4362
+ if (object.removeEncoder != null) {
4363
+ if (typeof object.removeEncoder !== "object")
4364
+ throw TypeError(".sesame.v1.commands.CommandListItem.removeEncoder: object expected");
4365
+ message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.fromObject(object.removeEncoder);
4366
+ }
4367
+ if (object.takePlaylist != null) {
4368
+ if (typeof object.takePlaylist !== "object")
4369
+ throw TypeError(".sesame.v1.commands.CommandListItem.takePlaylist: object expected");
4370
+ message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.fromObject(object.takePlaylist);
4371
+ }
3292
4372
  if (object.transactionId != null)
3293
4373
  message.transactionId = object.transactionId >>> 0;
3294
4374
  if (object.transactionDeps) {
@@ -3447,6 +4527,26 @@ var sesame = $root.sesame = (() => {
3447
4527
  if (options.oneofs)
3448
4528
  object.item = "setMetadataBindings";
3449
4529
  }
4530
+ if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
4531
+ object.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.toObject(message.addEncoder, options);
4532
+ if (options.oneofs)
4533
+ object.item = "addEncoder";
4534
+ }
4535
+ if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
4536
+ object.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.toObject(message.updateEncoder, options);
4537
+ if (options.oneofs)
4538
+ object.item = "updateEncoder";
4539
+ }
4540
+ if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
4541
+ object.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.toObject(message.removeEncoder, options);
4542
+ if (options.oneofs)
4543
+ object.item = "removeEncoder";
4544
+ }
4545
+ if (message.takePlaylist != null && message.hasOwnProperty("takePlaylist")) {
4546
+ object.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.toObject(message.takePlaylist, options);
4547
+ if (options.oneofs)
4548
+ object.item = "takePlaylist";
4549
+ }
3450
4550
  return object;
3451
4551
  };
3452
4552
  CommandListItem.prototype.toJSON = function toJSON() {
@@ -8975,19 +10075,48 @@ var sesame = $root.sesame = (() => {
8975
10075
  };
8976
10076
  return LoadPlaylistRequest;
8977
10077
  }();
8978
- sources.EjectPlaylistRequest = function() {
8979
- function EjectPlaylistRequest(properties) {
10078
+ sources.TakePlaylistRequest = function() {
10079
+ function TakePlaylistRequest(properties) {
10080
+ this.items = [];
8980
10081
  if (properties) {
8981
10082
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8982
10083
  if (properties[keys[i]] != null)
8983
10084
  this[keys[i]] = properties[keys[i]];
8984
10085
  }
8985
10086
  }
8986
- EjectPlaylistRequest.prototype.sourceId = "";
8987
- EjectPlaylistRequest.create = function create(properties) {
8988
- return new EjectPlaylistRequest(properties);
10087
+ TakePlaylistRequest.prototype.sourceId = "";
10088
+ TakePlaylistRequest.prototype.userPlaylistId = "";
10089
+ TakePlaylistRequest.prototype.items = $util.emptyArray;
10090
+ TakePlaylistRequest.prototype.startTimeUs = null;
10091
+ TakePlaylistRequest.prototype.startIndex = null;
10092
+ TakePlaylistRequest.prototype.materialPosUs = null;
10093
+ TakePlaylistRequest.prototype.transitionTimeUs = null;
10094
+ TakePlaylistRequest.prototype.playbackSpeed = null;
10095
+ let $oneOfFields;
10096
+ Object.defineProperty(TakePlaylistRequest.prototype, "_startTimeUs", {
10097
+ get: $util.oneOfGetter($oneOfFields = ["startTimeUs"]),
10098
+ set: $util.oneOfSetter($oneOfFields)
10099
+ });
10100
+ Object.defineProperty(TakePlaylistRequest.prototype, "_startIndex", {
10101
+ get: $util.oneOfGetter($oneOfFields = ["startIndex"]),
10102
+ set: $util.oneOfSetter($oneOfFields)
10103
+ });
10104
+ Object.defineProperty(TakePlaylistRequest.prototype, "_materialPosUs", {
10105
+ get: $util.oneOfGetter($oneOfFields = ["materialPosUs"]),
10106
+ set: $util.oneOfSetter($oneOfFields)
10107
+ });
10108
+ Object.defineProperty(TakePlaylistRequest.prototype, "_transitionTimeUs", {
10109
+ get: $util.oneOfGetter($oneOfFields = ["transitionTimeUs"]),
10110
+ set: $util.oneOfSetter($oneOfFields)
10111
+ });
10112
+ Object.defineProperty(TakePlaylistRequest.prototype, "_playbackSpeed", {
10113
+ get: $util.oneOfGetter($oneOfFields = ["playbackSpeed"]),
10114
+ set: $util.oneOfSetter($oneOfFields)
10115
+ });
10116
+ TakePlaylistRequest.create = function create(properties) {
10117
+ return new TakePlaylistRequest(properties);
8989
10118
  };
8990
- EjectPlaylistRequest.encode = function encode(message, writer) {
10119
+ TakePlaylistRequest.encode = function encode(message, writer) {
8991
10120
  if (!writer)
8992
10121
  writer = $Writer.create();
8993
10122
  if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
@@ -8995,15 +10124,51 @@ var sesame = $root.sesame = (() => {
8995
10124
  /* id 1, wireType 2 =*/
8996
10125
  10
8997
10126
  ).string(message.sourceId);
10127
+ if (message.userPlaylistId != null && Object.hasOwnProperty.call(message, "userPlaylistId"))
10128
+ writer.uint32(
10129
+ /* id 2, wireType 2 =*/
10130
+ 18
10131
+ ).string(message.userPlaylistId);
10132
+ if (message.items != null && message.items.length)
10133
+ for (let i = 0; i < message.items.length; ++i)
10134
+ $root.sesame.v1.recorder.PlaylistItem.encode(message.items[i], writer.uint32(
10135
+ /* id 3, wireType 2 =*/
10136
+ 26
10137
+ ).fork()).ldelim();
10138
+ if (message.startTimeUs != null && Object.hasOwnProperty.call(message, "startTimeUs"))
10139
+ writer.uint32(
10140
+ /* id 4, wireType 0 =*/
10141
+ 32
10142
+ ).int64(message.startTimeUs);
10143
+ if (message.startIndex != null && Object.hasOwnProperty.call(message, "startIndex"))
10144
+ writer.uint32(
10145
+ /* id 5, wireType 0 =*/
10146
+ 40
10147
+ ).int64(message.startIndex);
10148
+ if (message.materialPosUs != null && Object.hasOwnProperty.call(message, "materialPosUs"))
10149
+ writer.uint32(
10150
+ /* id 6, wireType 0 =*/
10151
+ 48
10152
+ ).int64(message.materialPosUs);
10153
+ if (message.transitionTimeUs != null && Object.hasOwnProperty.call(message, "transitionTimeUs"))
10154
+ writer.uint32(
10155
+ /* id 7, wireType 0 =*/
10156
+ 56
10157
+ ).int64(message.transitionTimeUs);
10158
+ if (message.playbackSpeed != null && Object.hasOwnProperty.call(message, "playbackSpeed"))
10159
+ writer.uint32(
10160
+ /* id 8, wireType 5 =*/
10161
+ 69
10162
+ ).float(message.playbackSpeed);
8998
10163
  return writer;
8999
10164
  };
9000
- EjectPlaylistRequest.encodeDelimited = function encodeDelimited(message, writer) {
10165
+ TakePlaylistRequest.encodeDelimited = function encodeDelimited(message, writer) {
9001
10166
  return this.encode(message, writer).ldelim();
9002
10167
  };
9003
- EjectPlaylistRequest.decode = function decode(reader, length, error) {
10168
+ TakePlaylistRequest.decode = function decode(reader, length, error) {
9004
10169
  if (!(reader instanceof $Reader))
9005
10170
  reader = $Reader.create(reader);
9006
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.EjectPlaylistRequest();
10171
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.TakePlaylistRequest();
9007
10172
  while (reader.pos < end) {
9008
10173
  let tag = reader.uint32();
9009
10174
  if (tag === error)
@@ -9013,6 +10178,36 @@ var sesame = $root.sesame = (() => {
9013
10178
  message.sourceId = reader.string();
9014
10179
  break;
9015
10180
  }
10181
+ case 2: {
10182
+ message.userPlaylistId = reader.string();
10183
+ break;
10184
+ }
10185
+ case 3: {
10186
+ if (!(message.items && message.items.length))
10187
+ message.items = [];
10188
+ message.items.push($root.sesame.v1.recorder.PlaylistItem.decode(reader, reader.uint32()));
10189
+ break;
10190
+ }
10191
+ case 4: {
10192
+ message.startTimeUs = reader.int64();
10193
+ break;
10194
+ }
10195
+ case 5: {
10196
+ message.startIndex = reader.int64();
10197
+ break;
10198
+ }
10199
+ case 6: {
10200
+ message.materialPosUs = reader.int64();
10201
+ break;
10202
+ }
10203
+ case 7: {
10204
+ message.transitionTimeUs = reader.int64();
10205
+ break;
10206
+ }
10207
+ case 8: {
10208
+ message.playbackSpeed = reader.float();
10209
+ break;
10210
+ }
9016
10211
  default:
9017
10212
  reader.skipType(tag & 7);
9018
10213
  break;
@@ -9020,29 +10215,258 @@ var sesame = $root.sesame = (() => {
9020
10215
  }
9021
10216
  return message;
9022
10217
  };
9023
- EjectPlaylistRequest.decodeDelimited = function decodeDelimited(reader) {
10218
+ TakePlaylistRequest.decodeDelimited = function decodeDelimited(reader) {
9024
10219
  if (!(reader instanceof $Reader))
9025
10220
  reader = new $Reader(reader);
9026
10221
  return this.decode(reader, reader.uint32());
9027
10222
  };
9028
- EjectPlaylistRequest.verify = function verify(message) {
10223
+ TakePlaylistRequest.verify = function verify(message) {
9029
10224
  if (typeof message !== "object" || message === null)
9030
10225
  return "object expected";
10226
+ let properties = {};
9031
10227
  if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
9032
10228
  if (!$util.isString(message.sourceId))
9033
10229
  return "sourceId: string expected";
9034
10230
  }
10231
+ if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId")) {
10232
+ if (!$util.isString(message.userPlaylistId))
10233
+ return "userPlaylistId: string expected";
10234
+ }
10235
+ if (message.items != null && message.hasOwnProperty("items")) {
10236
+ if (!Array.isArray(message.items))
10237
+ return "items: array expected";
10238
+ for (let i = 0; i < message.items.length; ++i) {
10239
+ let error = $root.sesame.v1.recorder.PlaylistItem.verify(message.items[i]);
10240
+ if (error)
10241
+ return "items." + error;
10242
+ }
10243
+ }
10244
+ if (message.startTimeUs != null && message.hasOwnProperty("startTimeUs")) {
10245
+ properties._startTimeUs = 1;
10246
+ if (!$util.isInteger(message.startTimeUs) && !(message.startTimeUs && $util.isInteger(message.startTimeUs.low) && $util.isInteger(message.startTimeUs.high)))
10247
+ return "startTimeUs: integer|Long expected";
10248
+ }
10249
+ if (message.startIndex != null && message.hasOwnProperty("startIndex")) {
10250
+ properties._startIndex = 1;
10251
+ if (!$util.isInteger(message.startIndex) && !(message.startIndex && $util.isInteger(message.startIndex.low) && $util.isInteger(message.startIndex.high)))
10252
+ return "startIndex: integer|Long expected";
10253
+ }
10254
+ if (message.materialPosUs != null && message.hasOwnProperty("materialPosUs")) {
10255
+ properties._materialPosUs = 1;
10256
+ if (!$util.isInteger(message.materialPosUs) && !(message.materialPosUs && $util.isInteger(message.materialPosUs.low) && $util.isInteger(message.materialPosUs.high)))
10257
+ return "materialPosUs: integer|Long expected";
10258
+ }
10259
+ if (message.transitionTimeUs != null && message.hasOwnProperty("transitionTimeUs")) {
10260
+ properties._transitionTimeUs = 1;
10261
+ if (!$util.isInteger(message.transitionTimeUs) && !(message.transitionTimeUs && $util.isInteger(message.transitionTimeUs.low) && $util.isInteger(message.transitionTimeUs.high)))
10262
+ return "transitionTimeUs: integer|Long expected";
10263
+ }
10264
+ if (message.playbackSpeed != null && message.hasOwnProperty("playbackSpeed")) {
10265
+ properties._playbackSpeed = 1;
10266
+ if (typeof message.playbackSpeed !== "number")
10267
+ return "playbackSpeed: number expected";
10268
+ }
9035
10269
  return null;
9036
10270
  };
9037
- EjectPlaylistRequest.fromObject = function fromObject(object) {
9038
- if (object instanceof $root.sesame.v1.sources.EjectPlaylistRequest)
10271
+ TakePlaylistRequest.fromObject = function fromObject(object) {
10272
+ if (object instanceof $root.sesame.v1.sources.TakePlaylistRequest)
9039
10273
  return object;
9040
- let message = new $root.sesame.v1.sources.EjectPlaylistRequest();
10274
+ let message = new $root.sesame.v1.sources.TakePlaylistRequest();
9041
10275
  if (object.sourceId != null)
9042
10276
  message.sourceId = String(object.sourceId);
9043
- return message;
9044
- };
9045
- EjectPlaylistRequest.toObject = function toObject(message, options) {
10277
+ if (object.userPlaylistId != null)
10278
+ message.userPlaylistId = String(object.userPlaylistId);
10279
+ if (object.items) {
10280
+ if (!Array.isArray(object.items))
10281
+ throw TypeError(".sesame.v1.sources.TakePlaylistRequest.items: array expected");
10282
+ message.items = [];
10283
+ for (let i = 0; i < object.items.length; ++i) {
10284
+ if (typeof object.items[i] !== "object")
10285
+ throw TypeError(".sesame.v1.sources.TakePlaylistRequest.items: object expected");
10286
+ message.items[i] = $root.sesame.v1.recorder.PlaylistItem.fromObject(object.items[i]);
10287
+ }
10288
+ }
10289
+ if (object.startTimeUs != null) {
10290
+ if ($util.Long)
10291
+ (message.startTimeUs = $util.Long.fromValue(object.startTimeUs)).unsigned = false;
10292
+ else if (typeof object.startTimeUs === "string")
10293
+ message.startTimeUs = parseInt(object.startTimeUs, 10);
10294
+ else if (typeof object.startTimeUs === "number")
10295
+ message.startTimeUs = object.startTimeUs;
10296
+ else if (typeof object.startTimeUs === "object")
10297
+ message.startTimeUs = new $util.LongBits(object.startTimeUs.low >>> 0, object.startTimeUs.high >>> 0).toNumber();
10298
+ }
10299
+ if (object.startIndex != null) {
10300
+ if ($util.Long)
10301
+ (message.startIndex = $util.Long.fromValue(object.startIndex)).unsigned = false;
10302
+ else if (typeof object.startIndex === "string")
10303
+ message.startIndex = parseInt(object.startIndex, 10);
10304
+ else if (typeof object.startIndex === "number")
10305
+ message.startIndex = object.startIndex;
10306
+ else if (typeof object.startIndex === "object")
10307
+ message.startIndex = new $util.LongBits(object.startIndex.low >>> 0, object.startIndex.high >>> 0).toNumber();
10308
+ }
10309
+ if (object.materialPosUs != null) {
10310
+ if ($util.Long)
10311
+ (message.materialPosUs = $util.Long.fromValue(object.materialPosUs)).unsigned = false;
10312
+ else if (typeof object.materialPosUs === "string")
10313
+ message.materialPosUs = parseInt(object.materialPosUs, 10);
10314
+ else if (typeof object.materialPosUs === "number")
10315
+ message.materialPosUs = object.materialPosUs;
10316
+ else if (typeof object.materialPosUs === "object")
10317
+ message.materialPosUs = new $util.LongBits(object.materialPosUs.low >>> 0, object.materialPosUs.high >>> 0).toNumber();
10318
+ }
10319
+ if (object.transitionTimeUs != null) {
10320
+ if ($util.Long)
10321
+ (message.transitionTimeUs = $util.Long.fromValue(object.transitionTimeUs)).unsigned = false;
10322
+ else if (typeof object.transitionTimeUs === "string")
10323
+ message.transitionTimeUs = parseInt(object.transitionTimeUs, 10);
10324
+ else if (typeof object.transitionTimeUs === "number")
10325
+ message.transitionTimeUs = object.transitionTimeUs;
10326
+ else if (typeof object.transitionTimeUs === "object")
10327
+ message.transitionTimeUs = new $util.LongBits(object.transitionTimeUs.low >>> 0, object.transitionTimeUs.high >>> 0).toNumber();
10328
+ }
10329
+ if (object.playbackSpeed != null)
10330
+ message.playbackSpeed = Number(object.playbackSpeed);
10331
+ return message;
10332
+ };
10333
+ TakePlaylistRequest.toObject = function toObject(message, options) {
10334
+ if (!options)
10335
+ options = {};
10336
+ let object = {};
10337
+ if (options.arrays || options.defaults)
10338
+ object.items = [];
10339
+ if (options.defaults) {
10340
+ object.sourceId = "";
10341
+ object.userPlaylistId = "";
10342
+ }
10343
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
10344
+ object.sourceId = message.sourceId;
10345
+ if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId"))
10346
+ object.userPlaylistId = message.userPlaylistId;
10347
+ if (message.items && message.items.length) {
10348
+ object.items = [];
10349
+ for (let j = 0; j < message.items.length; ++j)
10350
+ object.items[j] = $root.sesame.v1.recorder.PlaylistItem.toObject(message.items[j], options);
10351
+ }
10352
+ if (message.startTimeUs != null && message.hasOwnProperty("startTimeUs")) {
10353
+ if (typeof message.startTimeUs === "number")
10354
+ object.startTimeUs = options.longs === String ? String(message.startTimeUs) : message.startTimeUs;
10355
+ else
10356
+ object.startTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.startTimeUs) : options.longs === Number ? new $util.LongBits(message.startTimeUs.low >>> 0, message.startTimeUs.high >>> 0).toNumber() : message.startTimeUs;
10357
+ if (options.oneofs)
10358
+ object._startTimeUs = "startTimeUs";
10359
+ }
10360
+ if (message.startIndex != null && message.hasOwnProperty("startIndex")) {
10361
+ if (typeof message.startIndex === "number")
10362
+ object.startIndex = options.longs === String ? String(message.startIndex) : message.startIndex;
10363
+ else
10364
+ object.startIndex = options.longs === String ? $util.Long.prototype.toString.call(message.startIndex) : options.longs === Number ? new $util.LongBits(message.startIndex.low >>> 0, message.startIndex.high >>> 0).toNumber() : message.startIndex;
10365
+ if (options.oneofs)
10366
+ object._startIndex = "startIndex";
10367
+ }
10368
+ if (message.materialPosUs != null && message.hasOwnProperty("materialPosUs")) {
10369
+ if (typeof message.materialPosUs === "number")
10370
+ object.materialPosUs = options.longs === String ? String(message.materialPosUs) : message.materialPosUs;
10371
+ else
10372
+ object.materialPosUs = options.longs === String ? $util.Long.prototype.toString.call(message.materialPosUs) : options.longs === Number ? new $util.LongBits(message.materialPosUs.low >>> 0, message.materialPosUs.high >>> 0).toNumber() : message.materialPosUs;
10373
+ if (options.oneofs)
10374
+ object._materialPosUs = "materialPosUs";
10375
+ }
10376
+ if (message.transitionTimeUs != null && message.hasOwnProperty("transitionTimeUs")) {
10377
+ if (typeof message.transitionTimeUs === "number")
10378
+ object.transitionTimeUs = options.longs === String ? String(message.transitionTimeUs) : message.transitionTimeUs;
10379
+ else
10380
+ object.transitionTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.transitionTimeUs) : options.longs === Number ? new $util.LongBits(message.transitionTimeUs.low >>> 0, message.transitionTimeUs.high >>> 0).toNumber() : message.transitionTimeUs;
10381
+ if (options.oneofs)
10382
+ object._transitionTimeUs = "transitionTimeUs";
10383
+ }
10384
+ if (message.playbackSpeed != null && message.hasOwnProperty("playbackSpeed")) {
10385
+ object.playbackSpeed = options.json && !isFinite(message.playbackSpeed) ? String(message.playbackSpeed) : message.playbackSpeed;
10386
+ if (options.oneofs)
10387
+ object._playbackSpeed = "playbackSpeed";
10388
+ }
10389
+ return object;
10390
+ };
10391
+ TakePlaylistRequest.prototype.toJSON = function toJSON() {
10392
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10393
+ };
10394
+ TakePlaylistRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10395
+ if (typeUrlPrefix === void 0) {
10396
+ typeUrlPrefix = "type.googleapis.com";
10397
+ }
10398
+ return typeUrlPrefix + "/sesame.v1.sources.TakePlaylistRequest";
10399
+ };
10400
+ return TakePlaylistRequest;
10401
+ }();
10402
+ sources.EjectPlaylistRequest = function() {
10403
+ function EjectPlaylistRequest(properties) {
10404
+ if (properties) {
10405
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10406
+ if (properties[keys[i]] != null)
10407
+ this[keys[i]] = properties[keys[i]];
10408
+ }
10409
+ }
10410
+ EjectPlaylistRequest.prototype.sourceId = "";
10411
+ EjectPlaylistRequest.create = function create(properties) {
10412
+ return new EjectPlaylistRequest(properties);
10413
+ };
10414
+ EjectPlaylistRequest.encode = function encode(message, writer) {
10415
+ if (!writer)
10416
+ writer = $Writer.create();
10417
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
10418
+ writer.uint32(
10419
+ /* id 1, wireType 2 =*/
10420
+ 10
10421
+ ).string(message.sourceId);
10422
+ return writer;
10423
+ };
10424
+ EjectPlaylistRequest.encodeDelimited = function encodeDelimited(message, writer) {
10425
+ return this.encode(message, writer).ldelim();
10426
+ };
10427
+ EjectPlaylistRequest.decode = function decode(reader, length, error) {
10428
+ if (!(reader instanceof $Reader))
10429
+ reader = $Reader.create(reader);
10430
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.EjectPlaylistRequest();
10431
+ while (reader.pos < end) {
10432
+ let tag = reader.uint32();
10433
+ if (tag === error)
10434
+ break;
10435
+ switch (tag >>> 3) {
10436
+ case 1: {
10437
+ message.sourceId = reader.string();
10438
+ break;
10439
+ }
10440
+ default:
10441
+ reader.skipType(tag & 7);
10442
+ break;
10443
+ }
10444
+ }
10445
+ return message;
10446
+ };
10447
+ EjectPlaylistRequest.decodeDelimited = function decodeDelimited(reader) {
10448
+ if (!(reader instanceof $Reader))
10449
+ reader = new $Reader(reader);
10450
+ return this.decode(reader, reader.uint32());
10451
+ };
10452
+ EjectPlaylistRequest.verify = function verify(message) {
10453
+ if (typeof message !== "object" || message === null)
10454
+ return "object expected";
10455
+ if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
10456
+ if (!$util.isString(message.sourceId))
10457
+ return "sourceId: string expected";
10458
+ }
10459
+ return null;
10460
+ };
10461
+ EjectPlaylistRequest.fromObject = function fromObject(object) {
10462
+ if (object instanceof $root.sesame.v1.sources.EjectPlaylistRequest)
10463
+ return object;
10464
+ let message = new $root.sesame.v1.sources.EjectPlaylistRequest();
10465
+ if (object.sourceId != null)
10466
+ message.sourceId = String(object.sourceId);
10467
+ return message;
10468
+ };
10469
+ EjectPlaylistRequest.toObject = function toObject(message, options) {
9046
10470
  if (!options)
9047
10471
  options = {};
9048
10472
  let object = {};
@@ -13993,6 +15417,7 @@ var sesame = $root.sesame = (() => {
13993
15417
  this.audioMixes = [];
13994
15418
  this.outputs = [];
13995
15419
  this.recorders = [];
15420
+ this.encoders = [];
13996
15421
  if (properties) {
13997
15422
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13998
15423
  if (properties[keys[i]] != null)
@@ -14007,6 +15432,7 @@ var sesame = $root.sesame = (() => {
14007
15432
  Status.prototype.audioMixes = $util.emptyArray;
14008
15433
  Status.prototype.outputs = $util.emptyArray;
14009
15434
  Status.prototype.recorders = $util.emptyArray;
15435
+ Status.prototype.encoders = $util.emptyArray;
14010
15436
  Status.create = function create(properties) {
14011
15437
  return new Status(properties);
14012
15438
  };
@@ -14058,6 +15484,12 @@ var sesame = $root.sesame = (() => {
14058
15484
  /* id 8, wireType 2 =*/
14059
15485
  66
14060
15486
  ).fork()).ldelim();
15487
+ if (message.encoders != null && message.encoders.length)
15488
+ for (let i = 0; i < message.encoders.length; ++i)
15489
+ $root.sesame.v1.outputs.EncoderStatus.encode(message.encoders[i], writer.uint32(
15490
+ /* id 9, wireType 2 =*/
15491
+ 74
15492
+ ).fork()).ldelim();
14061
15493
  return writer;
14062
15494
  };
14063
15495
  Status.encodeDelimited = function encodeDelimited(message, writer) {
@@ -14114,6 +15546,12 @@ var sesame = $root.sesame = (() => {
14114
15546
  message.recorders.push($root.sesame.v1.recorder.RecorderStatus.decode(reader, reader.uint32()));
14115
15547
  break;
14116
15548
  }
15549
+ case 9: {
15550
+ if (!(message.encoders && message.encoders.length))
15551
+ message.encoders = [];
15552
+ message.encoders.push($root.sesame.v1.outputs.EncoderStatus.decode(reader, reader.uint32()));
15553
+ break;
15554
+ }
14117
15555
  default:
14118
15556
  reader.skipType(tag & 7);
14119
15557
  break;
@@ -14189,6 +15627,15 @@ var sesame = $root.sesame = (() => {
14189
15627
  return "recorders." + error;
14190
15628
  }
14191
15629
  }
15630
+ if (message.encoders != null && message.hasOwnProperty("encoders")) {
15631
+ if (!Array.isArray(message.encoders))
15632
+ return "encoders: array expected";
15633
+ for (let i = 0; i < message.encoders.length; ++i) {
15634
+ let error = $root.sesame.v1.outputs.EncoderStatus.verify(message.encoders[i]);
15635
+ if (error)
15636
+ return "encoders." + error;
15637
+ }
15638
+ }
14192
15639
  return null;
14193
15640
  };
14194
15641
  Status.fromObject = function fromObject(object) {
@@ -14260,6 +15707,16 @@ var sesame = $root.sesame = (() => {
14260
15707
  message.recorders[i] = $root.sesame.v1.recorder.RecorderStatus.fromObject(object.recorders[i]);
14261
15708
  }
14262
15709
  }
15710
+ if (object.encoders) {
15711
+ if (!Array.isArray(object.encoders))
15712
+ throw TypeError(".sesame.v1.status.Status.encoders: array expected");
15713
+ message.encoders = [];
15714
+ for (let i = 0; i < object.encoders.length; ++i) {
15715
+ if (typeof object.encoders[i] !== "object")
15716
+ throw TypeError(".sesame.v1.status.Status.encoders: object expected");
15717
+ message.encoders[i] = $root.sesame.v1.outputs.EncoderStatus.fromObject(object.encoders[i]);
15718
+ }
15719
+ }
14263
15720
  return message;
14264
15721
  };
14265
15722
  Status.toObject = function toObject(message, options) {
@@ -14272,6 +15729,7 @@ var sesame = $root.sesame = (() => {
14272
15729
  object.audioMixes = [];
14273
15730
  object.outputs = [];
14274
15731
  object.recorders = [];
15732
+ object.encoders = [];
14275
15733
  }
14276
15734
  if (options.defaults) {
14277
15735
  object.systemStatus = null;
@@ -14309,6 +15767,11 @@ var sesame = $root.sesame = (() => {
14309
15767
  for (let j = 0; j < message.recorders.length; ++j)
14310
15768
  object.recorders[j] = $root.sesame.v1.recorder.RecorderStatus.toObject(message.recorders[j], options);
14311
15769
  }
15770
+ if (message.encoders && message.encoders.length) {
15771
+ object.encoders = [];
15772
+ for (let j = 0; j < message.encoders.length; ++j)
15773
+ object.encoders[j] = $root.sesame.v1.outputs.EncoderStatus.toObject(message.encoders[j], options);
15774
+ }
14312
15775
  return object;
14313
15776
  };
14314
15777
  Status.prototype.toJSON = function toJSON() {
@@ -15616,6 +17079,12 @@ var sesame = $root.sesame = (() => {
15616
17079
  values[valuesById[7] = "OUTPUT_TYPE_ENCODED_SUPER_SLOWMO_RECORDER"] = 7;
15617
17080
  return values;
15618
17081
  }();
17082
+ outputs.EncoderType = function() {
17083
+ const valuesById = {}, values = Object.create(valuesById);
17084
+ values[valuesById[0] = "ENCODER_TYPE_UNSPECIFIED"] = 0;
17085
+ values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
17086
+ return values;
17087
+ }();
15619
17088
  outputs.EncoderPreset = function() {
15620
17089
  const valuesById = {}, values = Object.create(valuesById);
15621
17090
  values[valuesById[0] = "ENCODER_PRESET_UNSPECIFIED"] = 0;
@@ -15684,49 +17153,550 @@ var sesame = $root.sesame = (() => {
15684
17153
  ).uint32(message.height);
15685
17154
  if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
15686
17155
  writer.uint32(
15687
- /* id 7, wireType 5 =*/
15688
- 61
15689
- ).float(message.fps);
17156
+ /* id 7, wireType 5 =*/
17157
+ 61
17158
+ ).float(message.fps);
17159
+ return writer;
17160
+ };
17161
+ EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
17162
+ return this.encode(message, writer).ldelim();
17163
+ };
17164
+ EncoderConfig.decode = function decode(reader, length, error) {
17165
+ if (!(reader instanceof $Reader))
17166
+ reader = $Reader.create(reader);
17167
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderConfig();
17168
+ while (reader.pos < end) {
17169
+ let tag = reader.uint32();
17170
+ if (tag === error)
17171
+ break;
17172
+ switch (tag >>> 3) {
17173
+ case 1: {
17174
+ message.codec = reader.int32();
17175
+ break;
17176
+ }
17177
+ case 2: {
17178
+ message.preset = reader.int32();
17179
+ break;
17180
+ }
17181
+ case 3: {
17182
+ message.bitrateKbps = reader.uint32();
17183
+ break;
17184
+ }
17185
+ case 4: {
17186
+ message.keyframeInterval = reader.uint32();
17187
+ break;
17188
+ }
17189
+ case 5: {
17190
+ message.width = reader.uint32();
17191
+ break;
17192
+ }
17193
+ case 6: {
17194
+ message.height = reader.uint32();
17195
+ break;
17196
+ }
17197
+ case 7: {
17198
+ message.fps = reader.float();
17199
+ break;
17200
+ }
17201
+ default:
17202
+ reader.skipType(tag & 7);
17203
+ break;
17204
+ }
17205
+ }
17206
+ return message;
17207
+ };
17208
+ EncoderConfig.decodeDelimited = function decodeDelimited(reader) {
17209
+ if (!(reader instanceof $Reader))
17210
+ reader = new $Reader(reader);
17211
+ return this.decode(reader, reader.uint32());
17212
+ };
17213
+ EncoderConfig.verify = function verify(message) {
17214
+ if (typeof message !== "object" || message === null)
17215
+ return "object expected";
17216
+ if (message.codec != null && message.hasOwnProperty("codec"))
17217
+ switch (message.codec) {
17218
+ default:
17219
+ return "codec: enum value expected";
17220
+ case 0:
17221
+ case 1:
17222
+ case 2:
17223
+ case 3:
17224
+ case 4:
17225
+ case 5:
17226
+ case 6:
17227
+ case 7:
17228
+ case 64:
17229
+ case 65:
17230
+ case 66:
17231
+ case 67:
17232
+ break;
17233
+ }
17234
+ if (message.preset != null && message.hasOwnProperty("preset"))
17235
+ switch (message.preset) {
17236
+ default:
17237
+ return "preset: enum value expected";
17238
+ case 0:
17239
+ case 1:
17240
+ case 2:
17241
+ case 3:
17242
+ break;
17243
+ }
17244
+ if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
17245
+ if (!$util.isInteger(message.bitrateKbps))
17246
+ return "bitrateKbps: integer expected";
17247
+ }
17248
+ if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
17249
+ if (!$util.isInteger(message.keyframeInterval))
17250
+ return "keyframeInterval: integer expected";
17251
+ }
17252
+ if (message.width != null && message.hasOwnProperty("width")) {
17253
+ if (!$util.isInteger(message.width))
17254
+ return "width: integer expected";
17255
+ }
17256
+ if (message.height != null && message.hasOwnProperty("height")) {
17257
+ if (!$util.isInteger(message.height))
17258
+ return "height: integer expected";
17259
+ }
17260
+ if (message.fps != null && message.hasOwnProperty("fps")) {
17261
+ if (typeof message.fps !== "number")
17262
+ return "fps: number expected";
17263
+ }
17264
+ return null;
17265
+ };
17266
+ EncoderConfig.fromObject = function fromObject(object) {
17267
+ if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
17268
+ return object;
17269
+ let message = new $root.sesame.v1.outputs.EncoderConfig();
17270
+ switch (object.codec) {
17271
+ default:
17272
+ if (typeof object.codec === "number") {
17273
+ message.codec = object.codec;
17274
+ break;
17275
+ }
17276
+ break;
17277
+ case "CODEC_TYPE_UNSPECIFIED":
17278
+ case 0:
17279
+ message.codec = 0;
17280
+ break;
17281
+ case "CODEC_TYPE_VIDEO_VP8":
17282
+ case 1:
17283
+ message.codec = 1;
17284
+ break;
17285
+ case "CODEC_TYPE_VIDEO_VP9":
17286
+ case 2:
17287
+ message.codec = 2;
17288
+ break;
17289
+ case "CODEC_TYPE_VIDEO_AVC":
17290
+ case 3:
17291
+ message.codec = 3;
17292
+ break;
17293
+ case "CODEC_TYPE_VIDEO_HEVC":
17294
+ case 4:
17295
+ message.codec = 4;
17296
+ break;
17297
+ case "CODEC_TYPE_VIDEO_AV1":
17298
+ case 5:
17299
+ message.codec = 5;
17300
+ break;
17301
+ case "CODEC_TYPE_VIDEO_PRORES":
17302
+ case 6:
17303
+ message.codec = 6;
17304
+ break;
17305
+ case "CODEC_TYPE_VIDEO_DNXHR":
17306
+ case 7:
17307
+ message.codec = 7;
17308
+ break;
17309
+ case "CODEC_TYPE_AUDIO_OPUS":
17310
+ case 64:
17311
+ message.codec = 64;
17312
+ break;
17313
+ case "CODEC_TYPE_AUDIO_AAC":
17314
+ case 65:
17315
+ message.codec = 65;
17316
+ break;
17317
+ case "CODEC_TYPE_AUDIO_PCM":
17318
+ case 66:
17319
+ message.codec = 66;
17320
+ break;
17321
+ case "CODEC_TYPE_AUDIO_PCM_S24LE":
17322
+ case 67:
17323
+ message.codec = 67;
17324
+ break;
17325
+ }
17326
+ switch (object.preset) {
17327
+ default:
17328
+ if (typeof object.preset === "number") {
17329
+ message.preset = object.preset;
17330
+ break;
17331
+ }
17332
+ break;
17333
+ case "ENCODER_PRESET_UNSPECIFIED":
17334
+ case 0:
17335
+ message.preset = 0;
17336
+ break;
17337
+ case "ENCODER_PRESET_LOW_LATENCY":
17338
+ case 1:
17339
+ message.preset = 1;
17340
+ break;
17341
+ case "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY":
17342
+ case 2:
17343
+ message.preset = 2;
17344
+ break;
17345
+ case "ENCODER_PRESET_HIGH_QUALITY":
17346
+ case 3:
17347
+ message.preset = 3;
17348
+ break;
17349
+ }
17350
+ if (object.bitrateKbps != null)
17351
+ message.bitrateKbps = object.bitrateKbps >>> 0;
17352
+ if (object.keyframeInterval != null)
17353
+ message.keyframeInterval = object.keyframeInterval >>> 0;
17354
+ if (object.width != null)
17355
+ message.width = object.width >>> 0;
17356
+ if (object.height != null)
17357
+ message.height = object.height >>> 0;
17358
+ if (object.fps != null)
17359
+ message.fps = Number(object.fps);
17360
+ return message;
17361
+ };
17362
+ EncoderConfig.toObject = function toObject(message, options) {
17363
+ if (!options)
17364
+ options = {};
17365
+ let object = {};
17366
+ if (options.defaults) {
17367
+ object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
17368
+ object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
17369
+ object.bitrateKbps = 0;
17370
+ object.keyframeInterval = 0;
17371
+ object.width = 0;
17372
+ object.height = 0;
17373
+ object.fps = 0;
17374
+ }
17375
+ if (message.codec != null && message.hasOwnProperty("codec"))
17376
+ object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
17377
+ if (message.preset != null && message.hasOwnProperty("preset"))
17378
+ object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
17379
+ if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
17380
+ object.bitrateKbps = message.bitrateKbps;
17381
+ if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
17382
+ object.keyframeInterval = message.keyframeInterval;
17383
+ if (message.width != null && message.hasOwnProperty("width"))
17384
+ object.width = message.width;
17385
+ if (message.height != null && message.hasOwnProperty("height"))
17386
+ object.height = message.height;
17387
+ if (message.fps != null && message.hasOwnProperty("fps"))
17388
+ object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
17389
+ return object;
17390
+ };
17391
+ EncoderConfig.prototype.toJSON = function toJSON() {
17392
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17393
+ };
17394
+ EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17395
+ if (typeUrlPrefix === void 0) {
17396
+ typeUrlPrefix = "type.googleapis.com";
17397
+ }
17398
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
17399
+ };
17400
+ return EncoderConfig;
17401
+ }();
17402
+ outputs.EncoderAddRequest = function() {
17403
+ function EncoderAddRequest(properties) {
17404
+ if (properties) {
17405
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17406
+ if (properties[keys[i]] != null)
17407
+ this[keys[i]] = properties[keys[i]];
17408
+ }
17409
+ }
17410
+ EncoderAddRequest.prototype.id = "";
17411
+ EncoderAddRequest.prototype.compositionId = "";
17412
+ EncoderAddRequest.prototype.encoder = null;
17413
+ EncoderAddRequest.create = function create(properties) {
17414
+ return new EncoderAddRequest(properties);
17415
+ };
17416
+ EncoderAddRequest.encode = function encode(message, writer) {
17417
+ if (!writer)
17418
+ writer = $Writer.create();
17419
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
17420
+ writer.uint32(
17421
+ /* id 1, wireType 2 =*/
17422
+ 10
17423
+ ).string(message.id);
17424
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
17425
+ writer.uint32(
17426
+ /* id 2, wireType 2 =*/
17427
+ 18
17428
+ ).string(message.compositionId);
17429
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17430
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17431
+ /* id 3, wireType 2 =*/
17432
+ 26
17433
+ ).fork()).ldelim();
17434
+ return writer;
17435
+ };
17436
+ EncoderAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
17437
+ return this.encode(message, writer).ldelim();
17438
+ };
17439
+ EncoderAddRequest.decode = function decode(reader, length, error) {
17440
+ if (!(reader instanceof $Reader))
17441
+ reader = $Reader.create(reader);
17442
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderAddRequest();
17443
+ while (reader.pos < end) {
17444
+ let tag = reader.uint32();
17445
+ if (tag === error)
17446
+ break;
17447
+ switch (tag >>> 3) {
17448
+ case 1: {
17449
+ message.id = reader.string();
17450
+ break;
17451
+ }
17452
+ case 2: {
17453
+ message.compositionId = reader.string();
17454
+ break;
17455
+ }
17456
+ case 3: {
17457
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
17458
+ break;
17459
+ }
17460
+ default:
17461
+ reader.skipType(tag & 7);
17462
+ break;
17463
+ }
17464
+ }
17465
+ return message;
17466
+ };
17467
+ EncoderAddRequest.decodeDelimited = function decodeDelimited(reader) {
17468
+ if (!(reader instanceof $Reader))
17469
+ reader = new $Reader(reader);
17470
+ return this.decode(reader, reader.uint32());
17471
+ };
17472
+ EncoderAddRequest.verify = function verify(message) {
17473
+ if (typeof message !== "object" || message === null)
17474
+ return "object expected";
17475
+ if (message.id != null && message.hasOwnProperty("id")) {
17476
+ if (!$util.isString(message.id))
17477
+ return "id: string expected";
17478
+ }
17479
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
17480
+ if (!$util.isString(message.compositionId))
17481
+ return "compositionId: string expected";
17482
+ }
17483
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
17484
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17485
+ if (error)
17486
+ return "encoder." + error;
17487
+ }
17488
+ return null;
17489
+ };
17490
+ EncoderAddRequest.fromObject = function fromObject(object) {
17491
+ if (object instanceof $root.sesame.v1.outputs.EncoderAddRequest)
17492
+ return object;
17493
+ let message = new $root.sesame.v1.outputs.EncoderAddRequest();
17494
+ if (object.id != null)
17495
+ message.id = String(object.id);
17496
+ if (object.compositionId != null)
17497
+ message.compositionId = String(object.compositionId);
17498
+ if (object.encoder != null) {
17499
+ if (typeof object.encoder !== "object")
17500
+ throw TypeError(".sesame.v1.outputs.EncoderAddRequest.encoder: object expected");
17501
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17502
+ }
17503
+ return message;
17504
+ };
17505
+ EncoderAddRequest.toObject = function toObject(message, options) {
17506
+ if (!options)
17507
+ options = {};
17508
+ let object = {};
17509
+ if (options.defaults) {
17510
+ object.id = "";
17511
+ object.compositionId = "";
17512
+ object.encoder = null;
17513
+ }
17514
+ if (message.id != null && message.hasOwnProperty("id"))
17515
+ object.id = message.id;
17516
+ if (message.compositionId != null && message.hasOwnProperty("compositionId"))
17517
+ object.compositionId = message.compositionId;
17518
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
17519
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
17520
+ return object;
17521
+ };
17522
+ EncoderAddRequest.prototype.toJSON = function toJSON() {
17523
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17524
+ };
17525
+ EncoderAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17526
+ if (typeUrlPrefix === void 0) {
17527
+ typeUrlPrefix = "type.googleapis.com";
17528
+ }
17529
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderAddRequest";
17530
+ };
17531
+ return EncoderAddRequest;
17532
+ }();
17533
+ outputs.EncoderUpdateRequest = function() {
17534
+ function EncoderUpdateRequest(properties) {
17535
+ if (properties) {
17536
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17537
+ if (properties[keys[i]] != null)
17538
+ this[keys[i]] = properties[keys[i]];
17539
+ }
17540
+ }
17541
+ EncoderUpdateRequest.prototype.id = "";
17542
+ EncoderUpdateRequest.prototype.compositionId = "";
17543
+ EncoderUpdateRequest.prototype.encoder = null;
17544
+ EncoderUpdateRequest.create = function create(properties) {
17545
+ return new EncoderUpdateRequest(properties);
17546
+ };
17547
+ EncoderUpdateRequest.encode = function encode(message, writer) {
17548
+ if (!writer)
17549
+ writer = $Writer.create();
17550
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
17551
+ writer.uint32(
17552
+ /* id 1, wireType 2 =*/
17553
+ 10
17554
+ ).string(message.id);
17555
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
17556
+ writer.uint32(
17557
+ /* id 2, wireType 2 =*/
17558
+ 18
17559
+ ).string(message.compositionId);
17560
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17561
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17562
+ /* id 3, wireType 2 =*/
17563
+ 26
17564
+ ).fork()).ldelim();
17565
+ return writer;
17566
+ };
17567
+ EncoderUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
17568
+ return this.encode(message, writer).ldelim();
17569
+ };
17570
+ EncoderUpdateRequest.decode = function decode(reader, length, error) {
17571
+ if (!(reader instanceof $Reader))
17572
+ reader = $Reader.create(reader);
17573
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
17574
+ while (reader.pos < end) {
17575
+ let tag = reader.uint32();
17576
+ if (tag === error)
17577
+ break;
17578
+ switch (tag >>> 3) {
17579
+ case 1: {
17580
+ message.id = reader.string();
17581
+ break;
17582
+ }
17583
+ case 2: {
17584
+ message.compositionId = reader.string();
17585
+ break;
17586
+ }
17587
+ case 3: {
17588
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
17589
+ break;
17590
+ }
17591
+ default:
17592
+ reader.skipType(tag & 7);
17593
+ break;
17594
+ }
17595
+ }
17596
+ return message;
17597
+ };
17598
+ EncoderUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
17599
+ if (!(reader instanceof $Reader))
17600
+ reader = new $Reader(reader);
17601
+ return this.decode(reader, reader.uint32());
17602
+ };
17603
+ EncoderUpdateRequest.verify = function verify(message) {
17604
+ if (typeof message !== "object" || message === null)
17605
+ return "object expected";
17606
+ if (message.id != null && message.hasOwnProperty("id")) {
17607
+ if (!$util.isString(message.id))
17608
+ return "id: string expected";
17609
+ }
17610
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
17611
+ if (!$util.isString(message.compositionId))
17612
+ return "compositionId: string expected";
17613
+ }
17614
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
17615
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17616
+ if (error)
17617
+ return "encoder." + error;
17618
+ }
17619
+ return null;
17620
+ };
17621
+ EncoderUpdateRequest.fromObject = function fromObject(object) {
17622
+ if (object instanceof $root.sesame.v1.outputs.EncoderUpdateRequest)
17623
+ return object;
17624
+ let message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
17625
+ if (object.id != null)
17626
+ message.id = String(object.id);
17627
+ if (object.compositionId != null)
17628
+ message.compositionId = String(object.compositionId);
17629
+ if (object.encoder != null) {
17630
+ if (typeof object.encoder !== "object")
17631
+ throw TypeError(".sesame.v1.outputs.EncoderUpdateRequest.encoder: object expected");
17632
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17633
+ }
17634
+ return message;
17635
+ };
17636
+ EncoderUpdateRequest.toObject = function toObject(message, options) {
17637
+ if (!options)
17638
+ options = {};
17639
+ let object = {};
17640
+ if (options.defaults) {
17641
+ object.id = "";
17642
+ object.compositionId = "";
17643
+ object.encoder = null;
17644
+ }
17645
+ if (message.id != null && message.hasOwnProperty("id"))
17646
+ object.id = message.id;
17647
+ if (message.compositionId != null && message.hasOwnProperty("compositionId"))
17648
+ object.compositionId = message.compositionId;
17649
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
17650
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
17651
+ return object;
17652
+ };
17653
+ EncoderUpdateRequest.prototype.toJSON = function toJSON() {
17654
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17655
+ };
17656
+ EncoderUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17657
+ if (typeUrlPrefix === void 0) {
17658
+ typeUrlPrefix = "type.googleapis.com";
17659
+ }
17660
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderUpdateRequest";
17661
+ };
17662
+ return EncoderUpdateRequest;
17663
+ }();
17664
+ outputs.EncoderRemoveRequest = function() {
17665
+ function EncoderRemoveRequest(properties) {
17666
+ if (properties) {
17667
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17668
+ if (properties[keys[i]] != null)
17669
+ this[keys[i]] = properties[keys[i]];
17670
+ }
17671
+ }
17672
+ EncoderRemoveRequest.prototype.id = "";
17673
+ EncoderRemoveRequest.create = function create(properties) {
17674
+ return new EncoderRemoveRequest(properties);
17675
+ };
17676
+ EncoderRemoveRequest.encode = function encode(message, writer) {
17677
+ if (!writer)
17678
+ writer = $Writer.create();
17679
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
17680
+ writer.uint32(
17681
+ /* id 1, wireType 2 =*/
17682
+ 10
17683
+ ).string(message.id);
15690
17684
  return writer;
15691
17685
  };
15692
- EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
17686
+ EncoderRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
15693
17687
  return this.encode(message, writer).ldelim();
15694
17688
  };
15695
- EncoderConfig.decode = function decode(reader, length, error) {
17689
+ EncoderRemoveRequest.decode = function decode(reader, length, error) {
15696
17690
  if (!(reader instanceof $Reader))
15697
17691
  reader = $Reader.create(reader);
15698
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderConfig();
17692
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
15699
17693
  while (reader.pos < end) {
15700
17694
  let tag = reader.uint32();
15701
17695
  if (tag === error)
15702
17696
  break;
15703
17697
  switch (tag >>> 3) {
15704
17698
  case 1: {
15705
- message.codec = reader.int32();
15706
- break;
15707
- }
15708
- case 2: {
15709
- message.preset = reader.int32();
15710
- break;
15711
- }
15712
- case 3: {
15713
- message.bitrateKbps = reader.uint32();
15714
- break;
15715
- }
15716
- case 4: {
15717
- message.keyframeInterval = reader.uint32();
15718
- break;
15719
- }
15720
- case 5: {
15721
- message.width = reader.uint32();
15722
- break;
15723
- }
15724
- case 6: {
15725
- message.height = reader.uint32();
15726
- break;
15727
- }
15728
- case 7: {
15729
- message.fps = reader.float();
17699
+ message.id = reader.string();
15730
17700
  break;
15731
17701
  }
15732
17702
  default:
@@ -15736,199 +17706,48 @@ var sesame = $root.sesame = (() => {
15736
17706
  }
15737
17707
  return message;
15738
17708
  };
15739
- EncoderConfig.decodeDelimited = function decodeDelimited(reader) {
17709
+ EncoderRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
15740
17710
  if (!(reader instanceof $Reader))
15741
17711
  reader = new $Reader(reader);
15742
17712
  return this.decode(reader, reader.uint32());
15743
17713
  };
15744
- EncoderConfig.verify = function verify(message) {
17714
+ EncoderRemoveRequest.verify = function verify(message) {
15745
17715
  if (typeof message !== "object" || message === null)
15746
17716
  return "object expected";
15747
- if (message.codec != null && message.hasOwnProperty("codec"))
15748
- switch (message.codec) {
15749
- default:
15750
- return "codec: enum value expected";
15751
- case 0:
15752
- case 1:
15753
- case 2:
15754
- case 3:
15755
- case 4:
15756
- case 5:
15757
- case 6:
15758
- case 7:
15759
- case 64:
15760
- case 65:
15761
- case 66:
15762
- case 67:
15763
- break;
15764
- }
15765
- if (message.preset != null && message.hasOwnProperty("preset"))
15766
- switch (message.preset) {
15767
- default:
15768
- return "preset: enum value expected";
15769
- case 0:
15770
- case 1:
15771
- case 2:
15772
- case 3:
15773
- break;
15774
- }
15775
- if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
15776
- if (!$util.isInteger(message.bitrateKbps))
15777
- return "bitrateKbps: integer expected";
15778
- }
15779
- if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
15780
- if (!$util.isInteger(message.keyframeInterval))
15781
- return "keyframeInterval: integer expected";
15782
- }
15783
- if (message.width != null && message.hasOwnProperty("width")) {
15784
- if (!$util.isInteger(message.width))
15785
- return "width: integer expected";
15786
- }
15787
- if (message.height != null && message.hasOwnProperty("height")) {
15788
- if (!$util.isInteger(message.height))
15789
- return "height: integer expected";
15790
- }
15791
- if (message.fps != null && message.hasOwnProperty("fps")) {
15792
- if (typeof message.fps !== "number")
15793
- return "fps: number expected";
17717
+ if (message.id != null && message.hasOwnProperty("id")) {
17718
+ if (!$util.isString(message.id))
17719
+ return "id: string expected";
15794
17720
  }
15795
17721
  return null;
15796
17722
  };
15797
- EncoderConfig.fromObject = function fromObject(object) {
15798
- if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
17723
+ EncoderRemoveRequest.fromObject = function fromObject(object) {
17724
+ if (object instanceof $root.sesame.v1.outputs.EncoderRemoveRequest)
15799
17725
  return object;
15800
- let message = new $root.sesame.v1.outputs.EncoderConfig();
15801
- switch (object.codec) {
15802
- default:
15803
- if (typeof object.codec === "number") {
15804
- message.codec = object.codec;
15805
- break;
15806
- }
15807
- break;
15808
- case "CODEC_TYPE_UNSPECIFIED":
15809
- case 0:
15810
- message.codec = 0;
15811
- break;
15812
- case "CODEC_TYPE_VIDEO_VP8":
15813
- case 1:
15814
- message.codec = 1;
15815
- break;
15816
- case "CODEC_TYPE_VIDEO_VP9":
15817
- case 2:
15818
- message.codec = 2;
15819
- break;
15820
- case "CODEC_TYPE_VIDEO_AVC":
15821
- case 3:
15822
- message.codec = 3;
15823
- break;
15824
- case "CODEC_TYPE_VIDEO_HEVC":
15825
- case 4:
15826
- message.codec = 4;
15827
- break;
15828
- case "CODEC_TYPE_VIDEO_AV1":
15829
- case 5:
15830
- message.codec = 5;
15831
- break;
15832
- case "CODEC_TYPE_VIDEO_PRORES":
15833
- case 6:
15834
- message.codec = 6;
15835
- break;
15836
- case "CODEC_TYPE_VIDEO_DNXHR":
15837
- case 7:
15838
- message.codec = 7;
15839
- break;
15840
- case "CODEC_TYPE_AUDIO_OPUS":
15841
- case 64:
15842
- message.codec = 64;
15843
- break;
15844
- case "CODEC_TYPE_AUDIO_AAC":
15845
- case 65:
15846
- message.codec = 65;
15847
- break;
15848
- case "CODEC_TYPE_AUDIO_PCM":
15849
- case 66:
15850
- message.codec = 66;
15851
- break;
15852
- case "CODEC_TYPE_AUDIO_PCM_S24LE":
15853
- case 67:
15854
- message.codec = 67;
15855
- break;
15856
- }
15857
- switch (object.preset) {
15858
- default:
15859
- if (typeof object.preset === "number") {
15860
- message.preset = object.preset;
15861
- break;
15862
- }
15863
- break;
15864
- case "ENCODER_PRESET_UNSPECIFIED":
15865
- case 0:
15866
- message.preset = 0;
15867
- break;
15868
- case "ENCODER_PRESET_LOW_LATENCY":
15869
- case 1:
15870
- message.preset = 1;
15871
- break;
15872
- case "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY":
15873
- case 2:
15874
- message.preset = 2;
15875
- break;
15876
- case "ENCODER_PRESET_HIGH_QUALITY":
15877
- case 3:
15878
- message.preset = 3;
15879
- break;
15880
- }
15881
- if (object.bitrateKbps != null)
15882
- message.bitrateKbps = object.bitrateKbps >>> 0;
15883
- if (object.keyframeInterval != null)
15884
- message.keyframeInterval = object.keyframeInterval >>> 0;
15885
- if (object.width != null)
15886
- message.width = object.width >>> 0;
15887
- if (object.height != null)
15888
- message.height = object.height >>> 0;
15889
- if (object.fps != null)
15890
- message.fps = Number(object.fps);
17726
+ let message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
17727
+ if (object.id != null)
17728
+ message.id = String(object.id);
15891
17729
  return message;
15892
17730
  };
15893
- EncoderConfig.toObject = function toObject(message, options) {
17731
+ EncoderRemoveRequest.toObject = function toObject(message, options) {
15894
17732
  if (!options)
15895
17733
  options = {};
15896
17734
  let object = {};
15897
- if (options.defaults) {
15898
- object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
15899
- object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
15900
- object.bitrateKbps = 0;
15901
- object.keyframeInterval = 0;
15902
- object.width = 0;
15903
- object.height = 0;
15904
- object.fps = 0;
15905
- }
15906
- if (message.codec != null && message.hasOwnProperty("codec"))
15907
- object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
15908
- if (message.preset != null && message.hasOwnProperty("preset"))
15909
- object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
15910
- if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
15911
- object.bitrateKbps = message.bitrateKbps;
15912
- if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
15913
- object.keyframeInterval = message.keyframeInterval;
15914
- if (message.width != null && message.hasOwnProperty("width"))
15915
- object.width = message.width;
15916
- if (message.height != null && message.hasOwnProperty("height"))
15917
- object.height = message.height;
15918
- if (message.fps != null && message.hasOwnProperty("fps"))
15919
- object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
17735
+ if (options.defaults)
17736
+ object.id = "";
17737
+ if (message.id != null && message.hasOwnProperty("id"))
17738
+ object.id = message.id;
15920
17739
  return object;
15921
17740
  };
15922
- EncoderConfig.prototype.toJSON = function toJSON() {
17741
+ EncoderRemoveRequest.prototype.toJSON = function toJSON() {
15923
17742
  return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15924
17743
  };
15925
- EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17744
+ EncoderRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15926
17745
  if (typeUrlPrefix === void 0) {
15927
17746
  typeUrlPrefix = "type.googleapis.com";
15928
17747
  }
15929
- return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
17748
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderRemoveRequest";
15930
17749
  };
15931
- return EncoderConfig;
17750
+ return EncoderRemoveRequest;
15932
17751
  }();
15933
17752
  outputs.DecklinkOutputConfig = function() {
15934
17753
  function DecklinkOutputConfig(properties) {
@@ -16100,7 +17919,7 @@ var sesame = $root.sesame = (() => {
16100
17919
  }
16101
17920
  }
16102
17921
  EncodedWebSocketOutputConfig.prototype.channel = "";
16103
- EncodedWebSocketOutputConfig.prototype.encoder = null;
17922
+ EncodedWebSocketOutputConfig.prototype.encoderId = "";
16104
17923
  EncodedWebSocketOutputConfig.prototype.metadataTracks = $util.emptyArray;
16105
17924
  EncodedWebSocketOutputConfig.create = function create(properties) {
16106
17925
  return new EncodedWebSocketOutputConfig(properties);
@@ -16113,11 +17932,11 @@ var sesame = $root.sesame = (() => {
16113
17932
  /* id 1, wireType 2 =*/
16114
17933
  10
16115
17934
  ).string(message.channel);
16116
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
16117
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17935
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
17936
+ writer.uint32(
16118
17937
  /* id 2, wireType 2 =*/
16119
17938
  18
16120
- ).fork()).ldelim();
17939
+ ).string(message.encoderId);
16121
17940
  if (message.metadataTracks != null && message.metadataTracks.length)
16122
17941
  for (let i = 0; i < message.metadataTracks.length; ++i)
16123
17942
  writer.uint32(
@@ -16143,7 +17962,7 @@ var sesame = $root.sesame = (() => {
16143
17962
  break;
16144
17963
  }
16145
17964
  case 2: {
16146
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
17965
+ message.encoderId = reader.string();
16147
17966
  break;
16148
17967
  }
16149
17968
  case 3: {
@@ -16171,10 +17990,9 @@ var sesame = $root.sesame = (() => {
16171
17990
  if (!$util.isString(message.channel))
16172
17991
  return "channel: string expected";
16173
17992
  }
16174
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
16175
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
16176
- if (error)
16177
- return "encoder." + error;
17993
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
17994
+ if (!$util.isString(message.encoderId))
17995
+ return "encoderId: string expected";
16178
17996
  }
16179
17997
  if (message.metadataTracks != null && message.hasOwnProperty("metadataTracks")) {
16180
17998
  if (!Array.isArray(message.metadataTracks))
@@ -16191,11 +18009,8 @@ var sesame = $root.sesame = (() => {
16191
18009
  let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
16192
18010
  if (object.channel != null)
16193
18011
  message.channel = String(object.channel);
16194
- if (object.encoder != null) {
16195
- if (typeof object.encoder !== "object")
16196
- throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoder: object expected");
16197
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
16198
- }
18012
+ if (object.encoderId != null)
18013
+ message.encoderId = String(object.encoderId);
16199
18014
  if (object.metadataTracks) {
16200
18015
  if (!Array.isArray(object.metadataTracks))
16201
18016
  throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.metadataTracks: array expected");
@@ -16213,12 +18028,12 @@ var sesame = $root.sesame = (() => {
16213
18028
  object.metadataTracks = [];
16214
18029
  if (options.defaults) {
16215
18030
  object.channel = "";
16216
- object.encoder = null;
18031
+ object.encoderId = "";
16217
18032
  }
16218
18033
  if (message.channel != null && message.hasOwnProperty("channel"))
16219
18034
  object.channel = message.channel;
16220
- if (message.encoder != null && message.hasOwnProperty("encoder"))
16221
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
18035
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
18036
+ object.encoderId = message.encoderId;
16222
18037
  if (message.metadataTracks && message.metadataTracks.length) {
16223
18038
  object.metadataTracks = [];
16224
18039
  for (let j = 0; j < message.metadataTracks.length; ++j)
@@ -16245,7 +18060,7 @@ var sesame = $root.sesame = (() => {
16245
18060
  this[keys[i]] = properties[keys[i]];
16246
18061
  }
16247
18062
  }
16248
- EncodedRecorderOutputConfig.prototype.encoder = null;
18063
+ EncodedRecorderOutputConfig.prototype.encoderId = "";
16249
18064
  EncodedRecorderOutputConfig.prototype.filename = "";
16250
18065
  EncodedRecorderOutputConfig.prototype.sizeGb = 0;
16251
18066
  EncodedRecorderOutputConfig.prototype.groupId = "";
@@ -16256,11 +18071,11 @@ var sesame = $root.sesame = (() => {
16256
18071
  EncodedRecorderOutputConfig.encode = function encode(message, writer) {
16257
18072
  if (!writer)
16258
18073
  writer = $Writer.create();
16259
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
16260
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
18074
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
18075
+ writer.uint32(
16261
18076
  /* id 1, wireType 2 =*/
16262
18077
  10
16263
- ).fork()).ldelim();
18078
+ ).string(message.encoderId);
16264
18079
  if (message.filename != null && Object.hasOwnProperty.call(message, "filename"))
16265
18080
  writer.uint32(
16266
18081
  /* id 2, wireType 2 =*/
@@ -16296,7 +18111,7 @@ var sesame = $root.sesame = (() => {
16296
18111
  break;
16297
18112
  switch (tag >>> 3) {
16298
18113
  case 1: {
16299
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
18114
+ message.encoderId = reader.string();
16300
18115
  break;
16301
18116
  }
16302
18117
  case 2: {
@@ -16330,10 +18145,9 @@ var sesame = $root.sesame = (() => {
16330
18145
  EncodedRecorderOutputConfig.verify = function verify(message) {
16331
18146
  if (typeof message !== "object" || message === null)
16332
18147
  return "object expected";
16333
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
16334
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
16335
- if (error)
16336
- return "encoder." + error;
18148
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
18149
+ if (!$util.isString(message.encoderId))
18150
+ return "encoderId: string expected";
16337
18151
  }
16338
18152
  if (message.filename != null && message.hasOwnProperty("filename")) {
16339
18153
  if (!$util.isString(message.filename))
@@ -16362,11 +18176,8 @@ var sesame = $root.sesame = (() => {
16362
18176
  if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
16363
18177
  return object;
16364
18178
  let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
16365
- if (object.encoder != null) {
16366
- if (typeof object.encoder !== "object")
16367
- throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
16368
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
16369
- }
18179
+ if (object.encoderId != null)
18180
+ message.encoderId = String(object.encoderId);
16370
18181
  if (object.filename != null)
16371
18182
  message.filename = String(object.filename);
16372
18183
  if (object.sizeGb != null)
@@ -16400,14 +18211,14 @@ var sesame = $root.sesame = (() => {
16400
18211
  options = {};
16401
18212
  let object = {};
16402
18213
  if (options.defaults) {
16403
- object.encoder = null;
18214
+ object.encoderId = "";
16404
18215
  object.filename = "";
16405
18216
  object.sizeGb = 0;
16406
18217
  object.groupId = "";
16407
18218
  object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
16408
18219
  }
16409
- if (message.encoder != null && message.hasOwnProperty("encoder"))
16410
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
18220
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
18221
+ object.encoderId = message.encoderId;
16411
18222
  if (message.filename != null && message.hasOwnProperty("filename"))
16412
18223
  object.filename = message.filename;
16413
18224
  if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
@@ -16700,7 +18511,7 @@ var sesame = $root.sesame = (() => {
16700
18511
  }
16701
18512
  }
16702
18513
  EncodedSrtOutputConfig.prototype.url = "";
16703
- EncodedSrtOutputConfig.prototype.encoder = null;
18514
+ EncodedSrtOutputConfig.prototype.encoderId = "";
16704
18515
  EncodedSrtOutputConfig.create = function create(properties) {
16705
18516
  return new EncodedSrtOutputConfig(properties);
16706
18517
  };
@@ -16712,11 +18523,11 @@ var sesame = $root.sesame = (() => {
16712
18523
  /* id 1, wireType 2 =*/
16713
18524
  10
16714
18525
  ).string(message.url);
16715
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
16716
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
18526
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
18527
+ writer.uint32(
16717
18528
  /* id 2, wireType 2 =*/
16718
18529
  18
16719
- ).fork()).ldelim();
18530
+ ).string(message.encoderId);
16720
18531
  return writer;
16721
18532
  };
16722
18533
  EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -16736,7 +18547,7 @@ var sesame = $root.sesame = (() => {
16736
18547
  break;
16737
18548
  }
16738
18549
  case 2: {
16739
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
18550
+ message.encoderId = reader.string();
16740
18551
  break;
16741
18552
  }
16742
18553
  default:
@@ -16758,10 +18569,9 @@ var sesame = $root.sesame = (() => {
16758
18569
  if (!$util.isString(message.url))
16759
18570
  return "url: string expected";
16760
18571
  }
16761
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
16762
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
16763
- if (error)
16764
- return "encoder." + error;
18572
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
18573
+ if (!$util.isString(message.encoderId))
18574
+ return "encoderId: string expected";
16765
18575
  }
16766
18576
  return null;
16767
18577
  };
@@ -16771,11 +18581,8 @@ var sesame = $root.sesame = (() => {
16771
18581
  let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
16772
18582
  if (object.url != null)
16773
18583
  message.url = String(object.url);
16774
- if (object.encoder != null) {
16775
- if (typeof object.encoder !== "object")
16776
- throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
16777
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
16778
- }
18584
+ if (object.encoderId != null)
18585
+ message.encoderId = String(object.encoderId);
16779
18586
  return message;
16780
18587
  };
16781
18588
  EncodedSrtOutputConfig.toObject = function toObject(message, options) {
@@ -16784,12 +18591,12 @@ var sesame = $root.sesame = (() => {
16784
18591
  let object = {};
16785
18592
  if (options.defaults) {
16786
18593
  object.url = "";
16787
- object.encoder = null;
18594
+ object.encoderId = "";
16788
18595
  }
16789
18596
  if (message.url != null && message.hasOwnProperty("url"))
16790
18597
  object.url = message.url;
16791
- if (message.encoder != null && message.hasOwnProperty("encoder"))
16792
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
18598
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
18599
+ object.encoderId = message.encoderId;
16793
18600
  return object;
16794
18601
  };
16795
18602
  EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
@@ -16812,7 +18619,7 @@ var sesame = $root.sesame = (() => {
16812
18619
  this[keys[i]] = properties[keys[i]];
16813
18620
  }
16814
18621
  }
16815
- EncodedMoqOutputConfig.prototype.encoder = null;
18622
+ EncodedMoqOutputConfig.prototype.encoderId = "";
16816
18623
  EncodedMoqOutputConfig.prototype.url = "";
16817
18624
  EncodedMoqOutputConfig.prototype.broadcast = "";
16818
18625
  EncodedMoqOutputConfig.prototype.key = "";
@@ -16823,11 +18630,11 @@ var sesame = $root.sesame = (() => {
16823
18630
  EncodedMoqOutputConfig.encode = function encode(message, writer) {
16824
18631
  if (!writer)
16825
18632
  writer = $Writer.create();
16826
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
16827
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
18633
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
18634
+ writer.uint32(
16828
18635
  /* id 1, wireType 2 =*/
16829
18636
  10
16830
- ).fork()).ldelim();
18637
+ ).string(message.encoderId);
16831
18638
  if (message.url != null && Object.hasOwnProperty.call(message, "url"))
16832
18639
  writer.uint32(
16833
18640
  /* id 2, wireType 2 =*/
@@ -16864,7 +18671,7 @@ var sesame = $root.sesame = (() => {
16864
18671
  break;
16865
18672
  switch (tag >>> 3) {
16866
18673
  case 1: {
16867
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
18674
+ message.encoderId = reader.string();
16868
18675
  break;
16869
18676
  }
16870
18677
  case 2: {
@@ -16900,10 +18707,9 @@ var sesame = $root.sesame = (() => {
16900
18707
  EncodedMoqOutputConfig.verify = function verify(message) {
16901
18708
  if (typeof message !== "object" || message === null)
16902
18709
  return "object expected";
16903
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
16904
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
16905
- if (error)
16906
- return "encoder." + error;
18710
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
18711
+ if (!$util.isString(message.encoderId))
18712
+ return "encoderId: string expected";
16907
18713
  }
16908
18714
  if (message.url != null && message.hasOwnProperty("url")) {
16909
18715
  if (!$util.isString(message.url))
@@ -16930,11 +18736,8 @@ var sesame = $root.sesame = (() => {
16930
18736
  if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
16931
18737
  return object;
16932
18738
  let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
16933
- if (object.encoder != null) {
16934
- if (typeof object.encoder !== "object")
16935
- throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
16936
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
16937
- }
18739
+ if (object.encoderId != null)
18740
+ message.encoderId = String(object.encoderId);
16938
18741
  if (object.url != null)
16939
18742
  message.url = String(object.url);
16940
18743
  if (object.broadcast != null)
@@ -16957,13 +18760,13 @@ var sesame = $root.sesame = (() => {
16957
18760
  if (options.arrays || options.defaults)
16958
18761
  object.metadataTracks = [];
16959
18762
  if (options.defaults) {
16960
- object.encoder = null;
18763
+ object.encoderId = "";
16961
18764
  object.url = "";
16962
18765
  object.broadcast = "";
16963
18766
  object.key = "";
16964
18767
  }
16965
- if (message.encoder != null && message.hasOwnProperty("encoder"))
16966
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
18768
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
18769
+ object.encoderId = message.encoderId;
16967
18770
  if (message.url != null && message.hasOwnProperty("url"))
16968
18771
  object.url = message.url;
16969
18772
  if (message.broadcast != null && message.hasOwnProperty("broadcast"))
@@ -18019,6 +19822,7 @@ var sesame = $root.sesame = (() => {
18019
19822
  OutputStatus.prototype.url = "";
18020
19823
  OutputStatus.prototype.bufferSize = 0;
18021
19824
  OutputStatus.prototype.srtStats = null;
19825
+ OutputStatus.prototype.encoderId = "";
18022
19826
  let $oneOfFields;
18023
19827
  Object.defineProperty(OutputStatus.prototype, "_msg", {
18024
19828
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -18069,6 +19873,11 @@ var sesame = $root.sesame = (() => {
18069
19873
  /* id 7, wireType 2 =*/
18070
19874
  58
18071
19875
  ).fork()).ldelim();
19876
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
19877
+ writer.uint32(
19878
+ /* id 8, wireType 2 =*/
19879
+ 66
19880
+ ).string(message.encoderId);
18072
19881
  return writer;
18073
19882
  };
18074
19883
  OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -18111,6 +19920,10 @@ var sesame = $root.sesame = (() => {
18111
19920
  message.srtStats = $root.sesame.v1.status.SRTSendStatistics.decode(reader, reader.uint32());
18112
19921
  break;
18113
19922
  }
19923
+ case 8: {
19924
+ message.encoderId = reader.string();
19925
+ break;
19926
+ }
18114
19927
  default:
18115
19928
  reader.skipType(tag & 7);
18116
19929
  break;
@@ -18179,6 +19992,10 @@ var sesame = $root.sesame = (() => {
18179
19992
  return "srtStats." + error;
18180
19993
  }
18181
19994
  }
19995
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
19996
+ if (!$util.isString(message.encoderId))
19997
+ return "encoderId: string expected";
19998
+ }
18182
19999
  return null;
18183
20000
  };
18184
20001
  OutputStatus.fromObject = function fromObject(object) {
@@ -18274,6 +20091,8 @@ var sesame = $root.sesame = (() => {
18274
20091
  throw TypeError(".sesame.v1.outputs.OutputStatus.srtStats: object expected");
18275
20092
  message.srtStats = $root.sesame.v1.status.SRTSendStatistics.fromObject(object.srtStats);
18276
20093
  }
20094
+ if (object.encoderId != null)
20095
+ message.encoderId = String(object.encoderId);
18277
20096
  return message;
18278
20097
  };
18279
20098
  OutputStatus.toObject = function toObject(message, options) {
@@ -18286,6 +20105,7 @@ var sesame = $root.sesame = (() => {
18286
20105
  object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
18287
20106
  object.url = "";
18288
20107
  object.bufferSize = 0;
20108
+ object.encoderId = "";
18289
20109
  }
18290
20110
  if (message.id != null && message.hasOwnProperty("id"))
18291
20111
  object.id = message.id;
@@ -18307,6 +20127,8 @@ var sesame = $root.sesame = (() => {
18307
20127
  if (options.oneofs)
18308
20128
  object._srtStats = "srtStats";
18309
20129
  }
20130
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
20131
+ object.encoderId = message.encoderId;
18310
20132
  return object;
18311
20133
  };
18312
20134
  OutputStatus.prototype.toJSON = function toJSON() {
@@ -18320,6 +20142,241 @@ var sesame = $root.sesame = (() => {
18320
20142
  };
18321
20143
  return OutputStatus;
18322
20144
  }();
20145
+ outputs.EncoderStatus = function() {
20146
+ function EncoderStatus(properties) {
20147
+ if (properties) {
20148
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20149
+ if (properties[keys[i]] != null)
20150
+ this[keys[i]] = properties[keys[i]];
20151
+ }
20152
+ }
20153
+ EncoderStatus.prototype.id = "";
20154
+ EncoderStatus.prototype.type = 0;
20155
+ EncoderStatus.prototype.state = 0;
20156
+ EncoderStatus.prototype.msg = null;
20157
+ EncoderStatus.prototype.compositionId = "";
20158
+ let $oneOfFields;
20159
+ Object.defineProperty(EncoderStatus.prototype, "_msg", {
20160
+ get: $util.oneOfGetter($oneOfFields = ["msg"]),
20161
+ set: $util.oneOfSetter($oneOfFields)
20162
+ });
20163
+ EncoderStatus.create = function create(properties) {
20164
+ return new EncoderStatus(properties);
20165
+ };
20166
+ EncoderStatus.encode = function encode(message, writer) {
20167
+ if (!writer)
20168
+ writer = $Writer.create();
20169
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
20170
+ writer.uint32(
20171
+ /* id 1, wireType 2 =*/
20172
+ 10
20173
+ ).string(message.id);
20174
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
20175
+ writer.uint32(
20176
+ /* id 2, wireType 0 =*/
20177
+ 16
20178
+ ).int32(message.type);
20179
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
20180
+ writer.uint32(
20181
+ /* id 3, wireType 0 =*/
20182
+ 24
20183
+ ).int32(message.state);
20184
+ if (message.msg != null && Object.hasOwnProperty.call(message, "msg"))
20185
+ writer.uint32(
20186
+ /* id 4, wireType 2 =*/
20187
+ 34
20188
+ ).string(message.msg);
20189
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
20190
+ writer.uint32(
20191
+ /* id 5, wireType 2 =*/
20192
+ 42
20193
+ ).string(message.compositionId);
20194
+ return writer;
20195
+ };
20196
+ EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
20197
+ return this.encode(message, writer).ldelim();
20198
+ };
20199
+ EncoderStatus.decode = function decode(reader, length, error) {
20200
+ if (!(reader instanceof $Reader))
20201
+ reader = $Reader.create(reader);
20202
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderStatus();
20203
+ while (reader.pos < end) {
20204
+ let tag = reader.uint32();
20205
+ if (tag === error)
20206
+ break;
20207
+ switch (tag >>> 3) {
20208
+ case 1: {
20209
+ message.id = reader.string();
20210
+ break;
20211
+ }
20212
+ case 2: {
20213
+ message.type = reader.int32();
20214
+ break;
20215
+ }
20216
+ case 3: {
20217
+ message.state = reader.int32();
20218
+ break;
20219
+ }
20220
+ case 4: {
20221
+ message.msg = reader.string();
20222
+ break;
20223
+ }
20224
+ case 5: {
20225
+ message.compositionId = reader.string();
20226
+ break;
20227
+ }
20228
+ default:
20229
+ reader.skipType(tag & 7);
20230
+ break;
20231
+ }
20232
+ }
20233
+ return message;
20234
+ };
20235
+ EncoderStatus.decodeDelimited = function decodeDelimited(reader) {
20236
+ if (!(reader instanceof $Reader))
20237
+ reader = new $Reader(reader);
20238
+ return this.decode(reader, reader.uint32());
20239
+ };
20240
+ EncoderStatus.verify = function verify(message) {
20241
+ if (typeof message !== "object" || message === null)
20242
+ return "object expected";
20243
+ let properties = {};
20244
+ if (message.id != null && message.hasOwnProperty("id")) {
20245
+ if (!$util.isString(message.id))
20246
+ return "id: string expected";
20247
+ }
20248
+ if (message.type != null && message.hasOwnProperty("type"))
20249
+ switch (message.type) {
20250
+ default:
20251
+ return "type: enum value expected";
20252
+ case 0:
20253
+ case 1:
20254
+ break;
20255
+ }
20256
+ if (message.state != null && message.hasOwnProperty("state"))
20257
+ switch (message.state) {
20258
+ default:
20259
+ return "state: enum value expected";
20260
+ case 0:
20261
+ case 1:
20262
+ case 2:
20263
+ case 3:
20264
+ case 4:
20265
+ case 5:
20266
+ case 6:
20267
+ break;
20268
+ }
20269
+ if (message.msg != null && message.hasOwnProperty("msg")) {
20270
+ properties._msg = 1;
20271
+ if (!$util.isString(message.msg))
20272
+ return "msg: string expected";
20273
+ }
20274
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
20275
+ if (!$util.isString(message.compositionId))
20276
+ return "compositionId: string expected";
20277
+ }
20278
+ return null;
20279
+ };
20280
+ EncoderStatus.fromObject = function fromObject(object) {
20281
+ if (object instanceof $root.sesame.v1.outputs.EncoderStatus)
20282
+ return object;
20283
+ let message = new $root.sesame.v1.outputs.EncoderStatus();
20284
+ if (object.id != null)
20285
+ message.id = String(object.id);
20286
+ switch (object.type) {
20287
+ default:
20288
+ if (typeof object.type === "number") {
20289
+ message.type = object.type;
20290
+ break;
20291
+ }
20292
+ break;
20293
+ case "ENCODER_TYPE_UNSPECIFIED":
20294
+ case 0:
20295
+ message.type = 0;
20296
+ break;
20297
+ case "ENCODER_TYPE_VIDEO":
20298
+ case 1:
20299
+ message.type = 1;
20300
+ break;
20301
+ }
20302
+ switch (object.state) {
20303
+ default:
20304
+ if (typeof object.state === "number") {
20305
+ message.state = object.state;
20306
+ break;
20307
+ }
20308
+ break;
20309
+ case "CONNECTION_STATE_UNSPECIFIED":
20310
+ case 0:
20311
+ message.state = 0;
20312
+ break;
20313
+ case "CONNECTION_STATE_INITIALIZING":
20314
+ case 1:
20315
+ message.state = 1;
20316
+ break;
20317
+ case "CONNECTION_STATE_CONNECTING":
20318
+ case 2:
20319
+ message.state = 2;
20320
+ break;
20321
+ case "CONNECTION_STATE_ONLINE":
20322
+ case 3:
20323
+ message.state = 3;
20324
+ break;
20325
+ case "CONNECTION_STATE_DEGRADED":
20326
+ case 4:
20327
+ message.state = 4;
20328
+ break;
20329
+ case "CONNECTION_STATE_OFFLINE":
20330
+ case 5:
20331
+ message.state = 5;
20332
+ break;
20333
+ case "CONNECTION_STATE_ERROR":
20334
+ case 6:
20335
+ message.state = 6;
20336
+ break;
20337
+ }
20338
+ if (object.msg != null)
20339
+ message.msg = String(object.msg);
20340
+ if (object.compositionId != null)
20341
+ message.compositionId = String(object.compositionId);
20342
+ return message;
20343
+ };
20344
+ EncoderStatus.toObject = function toObject(message, options) {
20345
+ if (!options)
20346
+ options = {};
20347
+ let object = {};
20348
+ if (options.defaults) {
20349
+ object.id = "";
20350
+ object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
20351
+ object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
20352
+ object.compositionId = "";
20353
+ }
20354
+ if (message.id != null && message.hasOwnProperty("id"))
20355
+ object.id = message.id;
20356
+ if (message.type != null && message.hasOwnProperty("type"))
20357
+ object.type = options.enums === String ? $root.sesame.v1.outputs.EncoderType[message.type] === void 0 ? message.type : $root.sesame.v1.outputs.EncoderType[message.type] : message.type;
20358
+ if (message.state != null && message.hasOwnProperty("state"))
20359
+ object.state = options.enums === String ? $root.sesame.v1.common.ConnectionState[message.state] === void 0 ? message.state : $root.sesame.v1.common.ConnectionState[message.state] : message.state;
20360
+ if (message.msg != null && message.hasOwnProperty("msg")) {
20361
+ object.msg = message.msg;
20362
+ if (options.oneofs)
20363
+ object._msg = "msg";
20364
+ }
20365
+ if (message.compositionId != null && message.hasOwnProperty("compositionId"))
20366
+ object.compositionId = message.compositionId;
20367
+ return object;
20368
+ };
20369
+ EncoderStatus.prototype.toJSON = function toJSON() {
20370
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20371
+ };
20372
+ EncoderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20373
+ if (typeUrlPrefix === void 0) {
20374
+ typeUrlPrefix = "type.googleapis.com";
20375
+ }
20376
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderStatus";
20377
+ };
20378
+ return EncoderStatus;
20379
+ }();
18323
20380
  return outputs;
18324
20381
  }();
18325
20382
  v1.compositor = function() {
@@ -23514,11 +25571,12 @@ var CommandList = class {
23514
25571
  }
23515
25572
  applyTransaction(transaction) {
23516
25573
  this.cl.commandList.forEach((item) => {
23517
- if (transaction.transactionId !== void 0) {
25574
+ if (transaction.transactionId !== void 0 && item.transactionId == null) {
23518
25575
  item.transactionId = transaction.transactionId;
23519
25576
  }
23520
25577
  if (transaction.dependencies !== void 0) {
23521
- item.transactionDeps = item.transactionDeps ? item.transactionDeps.concat(transaction.dependencies) : transaction.dependencies;
25578
+ const existing = item.transactionDeps ?? [];
25579
+ item.transactionDeps = [...new Set(existing.concat(transaction.dependencies))];
23522
25580
  }
23523
25581
  });
23524
25582
  }
@@ -23701,7 +25759,7 @@ var CommandList = class {
23701
25759
  }
23702
25760
  }
23703
25761
  item.updateSourceTransport = transportCmd;
23704
- return this.add(item, timeOffsetMs, { transactionId: msg.transactionId, dependencies: [] });
25762
+ return this.add(item, timeOffsetMs, { transactionId: msg.transactionId, dependencies: msg.dependencies });
23705
25763
  }
23706
25764
  sourceUpdate(id, cfg, timeOffsetMs) {
23707
25765
  let item = new sesame.v1.commands.CommandListItem();
@@ -23737,6 +25795,21 @@ var CommandList = class {
23737
25795
  item.removeOutput = { id };
23738
25796
  return this.add(item, timeOffsetMs);
23739
25797
  }
25798
+ encoderAdd(id, cfg, timeOffsetMs) {
25799
+ let item = new sesame.v1.commands.CommandListItem();
25800
+ item.addEncoder = { id, ...cfg };
25801
+ return this.add(item, timeOffsetMs);
25802
+ }
25803
+ encoderUpdate(id, cfg, timeOffsetMs) {
25804
+ let item = new sesame.v1.commands.CommandListItem();
25805
+ item.updateEncoder = { id, ...cfg };
25806
+ return this.add(item, timeOffsetMs);
25807
+ }
25808
+ encoderRemove(id, timeOffsetMs) {
25809
+ let item = new sesame.v1.commands.CommandListItem();
25810
+ item.removeEncoder = { id };
25811
+ return this.add(item, timeOffsetMs);
25812
+ }
23740
25813
  audioMixerAdd(id, cfg, timeOffsetMs) {
23741
25814
  let item = new sesame.v1.commands.CommandListItem();
23742
25815
  item.addAudioMixer = { id, config: cfg };
@@ -24453,15 +26526,21 @@ var EaseKind = /* @__PURE__ */ ((EaseKind2) => {
24453
26526
  EaseKind2["BACK_INOUT"] = "backInOut";
24454
26527
  return EaseKind2;
24455
26528
  })(EaseKind || {});
26529
+ function appendQueryParam(url, key, value) {
26530
+ if (!value) return url;
26531
+ const separator = url.includes("?") ? "&" : "?";
26532
+ return `${url}${separator}${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
26533
+ }
24456
26534
  var SesameClient = class extends import_events3.EventEmitter {
24457
- constructor(portOrUrl) {
26535
+ constructor(portOrUrl, clientOptions = {}) {
24458
26536
  super();
24459
26537
  this.subscriptions = [];
24460
26538
  this.onMediaPacket = () => {
24461
26539
  };
24462
26540
  this.onCallbackMessage = () => {
24463
26541
  };
24464
- const url = typeof portOrUrl === "number" ? `ws://127.0.0.1:${portOrUrl}/api` : portOrUrl;
26542
+ const baseUrl = typeof portOrUrl === "number" ? `ws://127.0.0.1:${portOrUrl}/api` : portOrUrl;
26543
+ const url = appendQueryParam(baseUrl, "client", clientOptions.wsClientLabel ?? "");
24465
26544
  this.conn = new SesameConnection({
24466
26545
  url,
24467
26546
  autoConnect: true,