@stinkycomputing/sesame-api-client 1.5.5 → 1.5.6

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.mjs CHANGED
@@ -3516,11 +3516,14 @@ var sesame = $root.sesame = (() => {
3516
3516
  CommandListItem.prototype.callback = null;
3517
3517
  CommandListItem.prototype.setSourceMetadata = null;
3518
3518
  CommandListItem.prototype.setMetadataBindings = null;
3519
+ CommandListItem.prototype.addEncoder = null;
3520
+ CommandListItem.prototype.updateEncoder = null;
3521
+ CommandListItem.prototype.removeEncoder = null;
3519
3522
  CommandListItem.prototype.transactionId = null;
3520
3523
  CommandListItem.prototype.transactionDeps = $util.emptyArray;
3521
3524
  let $oneOfFields;
3522
3525
  Object.defineProperty(CommandListItem.prototype, "item", {
3523
- 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"]),
3526
+ 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"]),
3524
3527
  set: $util.oneOfSetter($oneOfFields)
3525
3528
  });
3526
3529
  Object.defineProperty(CommandListItem.prototype, "_transactionId", {
@@ -3672,6 +3675,21 @@ var sesame = $root.sesame = (() => {
3672
3675
  /* id 27, wireType 2 =*/
3673
3676
  218
3674
3677
  ).fork()).ldelim();
3678
+ if (message.addEncoder != null && Object.hasOwnProperty.call(message, "addEncoder"))
3679
+ $root.sesame.v1.outputs.EncoderAddRequest.encode(message.addEncoder, writer.uint32(
3680
+ /* id 28, wireType 2 =*/
3681
+ 226
3682
+ ).fork()).ldelim();
3683
+ if (message.updateEncoder != null && Object.hasOwnProperty.call(message, "updateEncoder"))
3684
+ $root.sesame.v1.outputs.EncoderUpdateRequest.encode(message.updateEncoder, writer.uint32(
3685
+ /* id 29, wireType 2 =*/
3686
+ 234
3687
+ ).fork()).ldelim();
3688
+ if (message.removeEncoder != null && Object.hasOwnProperty.call(message, "removeEncoder"))
3689
+ $root.sesame.v1.outputs.EncoderRemoveRequest.encode(message.removeEncoder, writer.uint32(
3690
+ /* id 30, wireType 2 =*/
3691
+ 242
3692
+ ).fork()).ldelim();
3675
3693
  return writer;
3676
3694
  };
3677
3695
  CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
@@ -3786,6 +3804,18 @@ var sesame = $root.sesame = (() => {
3786
3804
  message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.decode(reader, reader.uint32());
3787
3805
  break;
3788
3806
  }
3807
+ case 28: {
3808
+ message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.decode(reader, reader.uint32());
3809
+ break;
3810
+ }
3811
+ case 29: {
3812
+ message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.decode(reader, reader.uint32());
3813
+ break;
3814
+ }
3815
+ case 30: {
3816
+ message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.decode(reader, reader.uint32());
3817
+ break;
3818
+ }
3789
3819
  case 25: {
3790
3820
  message.transactionId = reader.uint32();
3791
3821
  break;
@@ -4059,6 +4089,36 @@ var sesame = $root.sesame = (() => {
4059
4089
  return "setMetadataBindings." + error;
4060
4090
  }
4061
4091
  }
4092
+ if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
4093
+ if (properties.item === 1)
4094
+ return "item: multiple values";
4095
+ properties.item = 1;
4096
+ {
4097
+ let error = $root.sesame.v1.outputs.EncoderAddRequest.verify(message.addEncoder);
4098
+ if (error)
4099
+ return "addEncoder." + error;
4100
+ }
4101
+ }
4102
+ if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
4103
+ if (properties.item === 1)
4104
+ return "item: multiple values";
4105
+ properties.item = 1;
4106
+ {
4107
+ let error = $root.sesame.v1.outputs.EncoderUpdateRequest.verify(message.updateEncoder);
4108
+ if (error)
4109
+ return "updateEncoder." + error;
4110
+ }
4111
+ }
4112
+ if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
4113
+ if (properties.item === 1)
4114
+ return "item: multiple values";
4115
+ properties.item = 1;
4116
+ {
4117
+ let error = $root.sesame.v1.outputs.EncoderRemoveRequest.verify(message.removeEncoder);
4118
+ if (error)
4119
+ return "removeEncoder." + error;
4120
+ }
4121
+ }
4062
4122
  if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
4063
4123
  properties._transactionId = 1;
4064
4124
  if (!$util.isInteger(message.transactionId))
@@ -4207,6 +4267,21 @@ var sesame = $root.sesame = (() => {
4207
4267
  throw TypeError(".sesame.v1.commands.CommandListItem.setMetadataBindings: object expected");
4208
4268
  message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.fromObject(object.setMetadataBindings);
4209
4269
  }
4270
+ if (object.addEncoder != null) {
4271
+ if (typeof object.addEncoder !== "object")
4272
+ throw TypeError(".sesame.v1.commands.CommandListItem.addEncoder: object expected");
4273
+ message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.fromObject(object.addEncoder);
4274
+ }
4275
+ if (object.updateEncoder != null) {
4276
+ if (typeof object.updateEncoder !== "object")
4277
+ throw TypeError(".sesame.v1.commands.CommandListItem.updateEncoder: object expected");
4278
+ message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.fromObject(object.updateEncoder);
4279
+ }
4280
+ if (object.removeEncoder != null) {
4281
+ if (typeof object.removeEncoder !== "object")
4282
+ throw TypeError(".sesame.v1.commands.CommandListItem.removeEncoder: object expected");
4283
+ message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.fromObject(object.removeEncoder);
4284
+ }
4210
4285
  if (object.transactionId != null)
4211
4286
  message.transactionId = object.transactionId >>> 0;
4212
4287
  if (object.transactionDeps) {
@@ -4365,6 +4440,21 @@ var sesame = $root.sesame = (() => {
4365
4440
  if (options.oneofs)
4366
4441
  object.item = "setMetadataBindings";
4367
4442
  }
4443
+ if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
4444
+ object.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.toObject(message.addEncoder, options);
4445
+ if (options.oneofs)
4446
+ object.item = "addEncoder";
4447
+ }
4448
+ if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
4449
+ object.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.toObject(message.updateEncoder, options);
4450
+ if (options.oneofs)
4451
+ object.item = "updateEncoder";
4452
+ }
4453
+ if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
4454
+ object.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.toObject(message.removeEncoder, options);
4455
+ if (options.oneofs)
4456
+ object.item = "removeEncoder";
4457
+ }
4368
4458
  return object;
4369
4459
  };
4370
4460
  CommandListItem.prototype.toJSON = function toJSON() {
@@ -14911,6 +15001,7 @@ var sesame = $root.sesame = (() => {
14911
15001
  this.audioMixes = [];
14912
15002
  this.outputs = [];
14913
15003
  this.recorders = [];
15004
+ this.encoders = [];
14914
15005
  if (properties) {
14915
15006
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14916
15007
  if (properties[keys[i]] != null)
@@ -14925,6 +15016,7 @@ var sesame = $root.sesame = (() => {
14925
15016
  Status.prototype.audioMixes = $util.emptyArray;
14926
15017
  Status.prototype.outputs = $util.emptyArray;
14927
15018
  Status.prototype.recorders = $util.emptyArray;
15019
+ Status.prototype.encoders = $util.emptyArray;
14928
15020
  Status.create = function create(properties) {
14929
15021
  return new Status(properties);
14930
15022
  };
@@ -14976,6 +15068,12 @@ var sesame = $root.sesame = (() => {
14976
15068
  /* id 8, wireType 2 =*/
14977
15069
  66
14978
15070
  ).fork()).ldelim();
15071
+ if (message.encoders != null && message.encoders.length)
15072
+ for (let i = 0; i < message.encoders.length; ++i)
15073
+ $root.sesame.v1.outputs.EncoderStatus.encode(message.encoders[i], writer.uint32(
15074
+ /* id 9, wireType 2 =*/
15075
+ 74
15076
+ ).fork()).ldelim();
14979
15077
  return writer;
14980
15078
  };
14981
15079
  Status.encodeDelimited = function encodeDelimited(message, writer) {
@@ -15032,6 +15130,12 @@ var sesame = $root.sesame = (() => {
15032
15130
  message.recorders.push($root.sesame.v1.recorder.RecorderStatus.decode(reader, reader.uint32()));
15033
15131
  break;
15034
15132
  }
15133
+ case 9: {
15134
+ if (!(message.encoders && message.encoders.length))
15135
+ message.encoders = [];
15136
+ message.encoders.push($root.sesame.v1.outputs.EncoderStatus.decode(reader, reader.uint32()));
15137
+ break;
15138
+ }
15035
15139
  default:
15036
15140
  reader.skipType(tag & 7);
15037
15141
  break;
@@ -15107,6 +15211,15 @@ var sesame = $root.sesame = (() => {
15107
15211
  return "recorders." + error;
15108
15212
  }
15109
15213
  }
15214
+ if (message.encoders != null && message.hasOwnProperty("encoders")) {
15215
+ if (!Array.isArray(message.encoders))
15216
+ return "encoders: array expected";
15217
+ for (let i = 0; i < message.encoders.length; ++i) {
15218
+ let error = $root.sesame.v1.outputs.EncoderStatus.verify(message.encoders[i]);
15219
+ if (error)
15220
+ return "encoders." + error;
15221
+ }
15222
+ }
15110
15223
  return null;
15111
15224
  };
15112
15225
  Status.fromObject = function fromObject(object) {
@@ -15178,6 +15291,16 @@ var sesame = $root.sesame = (() => {
15178
15291
  message.recorders[i] = $root.sesame.v1.recorder.RecorderStatus.fromObject(object.recorders[i]);
15179
15292
  }
15180
15293
  }
15294
+ if (object.encoders) {
15295
+ if (!Array.isArray(object.encoders))
15296
+ throw TypeError(".sesame.v1.status.Status.encoders: array expected");
15297
+ message.encoders = [];
15298
+ for (let i = 0; i < object.encoders.length; ++i) {
15299
+ if (typeof object.encoders[i] !== "object")
15300
+ throw TypeError(".sesame.v1.status.Status.encoders: object expected");
15301
+ message.encoders[i] = $root.sesame.v1.outputs.EncoderStatus.fromObject(object.encoders[i]);
15302
+ }
15303
+ }
15181
15304
  return message;
15182
15305
  };
15183
15306
  Status.toObject = function toObject(message, options) {
@@ -15190,6 +15313,7 @@ var sesame = $root.sesame = (() => {
15190
15313
  object.audioMixes = [];
15191
15314
  object.outputs = [];
15192
15315
  object.recorders = [];
15316
+ object.encoders = [];
15193
15317
  }
15194
15318
  if (options.defaults) {
15195
15319
  object.systemStatus = null;
@@ -15227,6 +15351,11 @@ var sesame = $root.sesame = (() => {
15227
15351
  for (let j = 0; j < message.recorders.length; ++j)
15228
15352
  object.recorders[j] = $root.sesame.v1.recorder.RecorderStatus.toObject(message.recorders[j], options);
15229
15353
  }
15354
+ if (message.encoders && message.encoders.length) {
15355
+ object.encoders = [];
15356
+ for (let j = 0; j < message.encoders.length; ++j)
15357
+ object.encoders[j] = $root.sesame.v1.outputs.EncoderStatus.toObject(message.encoders[j], options);
15358
+ }
15230
15359
  return object;
15231
15360
  };
15232
15361
  Status.prototype.toJSON = function toJSON() {
@@ -16534,6 +16663,12 @@ var sesame = $root.sesame = (() => {
16534
16663
  values[valuesById[7] = "OUTPUT_TYPE_ENCODED_SUPER_SLOWMO_RECORDER"] = 7;
16535
16664
  return values;
16536
16665
  }();
16666
+ outputs.EncoderType = function() {
16667
+ const valuesById = {}, values = Object.create(valuesById);
16668
+ values[valuesById[0] = "ENCODER_TYPE_UNSPECIFIED"] = 0;
16669
+ values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
16670
+ return values;
16671
+ }();
16537
16672
  outputs.EncoderPreset = function() {
16538
16673
  const valuesById = {}, values = Object.create(valuesById);
16539
16674
  values[valuesById[0] = "ENCODER_PRESET_UNSPECIFIED"] = 0;
@@ -16848,62 +16983,62 @@ var sesame = $root.sesame = (() => {
16848
16983
  };
16849
16984
  return EncoderConfig;
16850
16985
  }();
16851
- outputs.DecklinkOutputConfig = function() {
16852
- function DecklinkOutputConfig(properties) {
16986
+ outputs.EncoderAddRequest = function() {
16987
+ function EncoderAddRequest(properties) {
16853
16988
  if (properties) {
16854
16989
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16855
16990
  if (properties[keys[i]] != null)
16856
16991
  this[keys[i]] = properties[keys[i]];
16857
16992
  }
16858
16993
  }
16859
- DecklinkOutputConfig.prototype.deviceIndex = 0;
16860
- DecklinkOutputConfig.prototype.videoFormat = 0;
16861
- DecklinkOutputConfig.prototype.keyAndFill = false;
16862
- DecklinkOutputConfig.create = function create(properties) {
16863
- return new DecklinkOutputConfig(properties);
16994
+ EncoderAddRequest.prototype.id = "";
16995
+ EncoderAddRequest.prototype.compositionId = "";
16996
+ EncoderAddRequest.prototype.encoder = null;
16997
+ EncoderAddRequest.create = function create(properties) {
16998
+ return new EncoderAddRequest(properties);
16864
16999
  };
16865
- DecklinkOutputConfig.encode = function encode(message, writer) {
17000
+ EncoderAddRequest.encode = function encode(message, writer) {
16866
17001
  if (!writer)
16867
17002
  writer = $Writer.create();
16868
- if (message.deviceIndex != null && Object.hasOwnProperty.call(message, "deviceIndex"))
16869
- writer.uint32(
16870
- /* id 1, wireType 0 =*/
16871
- 8
16872
- ).uint32(message.deviceIndex);
16873
- if (message.videoFormat != null && Object.hasOwnProperty.call(message, "videoFormat"))
17003
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
16874
17004
  writer.uint32(
16875
- /* id 2, wireType 0 =*/
16876
- 16
16877
- ).int32(message.videoFormat);
16878
- if (message.keyAndFill != null && Object.hasOwnProperty.call(message, "keyAndFill"))
17005
+ /* id 1, wireType 2 =*/
17006
+ 10
17007
+ ).string(message.id);
17008
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
16879
17009
  writer.uint32(
16880
- /* id 3, wireType 0 =*/
16881
- 24
16882
- ).bool(message.keyAndFill);
17010
+ /* id 2, wireType 2 =*/
17011
+ 18
17012
+ ).string(message.compositionId);
17013
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17014
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17015
+ /* id 3, wireType 2 =*/
17016
+ 26
17017
+ ).fork()).ldelim();
16883
17018
  return writer;
16884
17019
  };
16885
- DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
17020
+ EncoderAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
16886
17021
  return this.encode(message, writer).ldelim();
16887
17022
  };
16888
- DecklinkOutputConfig.decode = function decode(reader, length, error) {
17023
+ EncoderAddRequest.decode = function decode(reader, length, error) {
16889
17024
  if (!(reader instanceof $Reader))
16890
17025
  reader = $Reader.create(reader);
16891
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
17026
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderAddRequest();
16892
17027
  while (reader.pos < end) {
16893
17028
  let tag = reader.uint32();
16894
17029
  if (tag === error)
16895
17030
  break;
16896
17031
  switch (tag >>> 3) {
16897
17032
  case 1: {
16898
- message.deviceIndex = reader.uint32();
17033
+ message.id = reader.string();
16899
17034
  break;
16900
17035
  }
16901
17036
  case 2: {
16902
- message.videoFormat = reader.int32();
17037
+ message.compositionId = reader.string();
16903
17038
  break;
16904
17039
  }
16905
17040
  case 3: {
16906
- message.keyAndFill = reader.bool();
17041
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
16907
17042
  break;
16908
17043
  }
16909
17044
  default:
@@ -16913,161 +17048,128 @@ var sesame = $root.sesame = (() => {
16913
17048
  }
16914
17049
  return message;
16915
17050
  };
16916
- DecklinkOutputConfig.decodeDelimited = function decodeDelimited(reader) {
17051
+ EncoderAddRequest.decodeDelimited = function decodeDelimited(reader) {
16917
17052
  if (!(reader instanceof $Reader))
16918
17053
  reader = new $Reader(reader);
16919
17054
  return this.decode(reader, reader.uint32());
16920
17055
  };
16921
- DecklinkOutputConfig.verify = function verify(message) {
17056
+ EncoderAddRequest.verify = function verify(message) {
16922
17057
  if (typeof message !== "object" || message === null)
16923
17058
  return "object expected";
16924
- if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex")) {
16925
- if (!$util.isInteger(message.deviceIndex))
16926
- return "deviceIndex: integer expected";
17059
+ if (message.id != null && message.hasOwnProperty("id")) {
17060
+ if (!$util.isString(message.id))
17061
+ return "id: string expected";
16927
17062
  }
16928
- if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
16929
- switch (message.videoFormat) {
16930
- default:
16931
- return "videoFormat: enum value expected";
16932
- case 0:
16933
- case 1:
16934
- case 2:
16935
- case 3:
16936
- case 4:
16937
- break;
16938
- }
16939
- if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill")) {
16940
- if (typeof message.keyAndFill !== "boolean")
16941
- return "keyAndFill: boolean expected";
17063
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
17064
+ if (!$util.isString(message.compositionId))
17065
+ return "compositionId: string expected";
17066
+ }
17067
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
17068
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17069
+ if (error)
17070
+ return "encoder." + error;
16942
17071
  }
16943
17072
  return null;
16944
17073
  };
16945
- DecklinkOutputConfig.fromObject = function fromObject(object) {
16946
- if (object instanceof $root.sesame.v1.outputs.DecklinkOutputConfig)
17074
+ EncoderAddRequest.fromObject = function fromObject(object) {
17075
+ if (object instanceof $root.sesame.v1.outputs.EncoderAddRequest)
16947
17076
  return object;
16948
- let message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
16949
- if (object.deviceIndex != null)
16950
- message.deviceIndex = object.deviceIndex >>> 0;
16951
- switch (object.videoFormat) {
16952
- default:
16953
- if (typeof object.videoFormat === "number") {
16954
- message.videoFormat = object.videoFormat;
16955
- break;
16956
- }
16957
- break;
16958
- case "VIDEO_FORMAT_UNSPECIFIED":
16959
- case 0:
16960
- message.videoFormat = 0;
16961
- break;
16962
- case "VIDEO_FORMAT_1080_50I":
16963
- case 1:
16964
- message.videoFormat = 1;
16965
- break;
16966
- case "VIDEO_FORMAT_1080_50P":
16967
- case 2:
16968
- message.videoFormat = 2;
16969
- break;
16970
- case "VIDEO_FORMAT_1080_60I":
16971
- case 3:
16972
- message.videoFormat = 3;
16973
- break;
16974
- case "VIDEO_FORMAT_1080_60P":
16975
- case 4:
16976
- message.videoFormat = 4;
16977
- break;
17077
+ let message = new $root.sesame.v1.outputs.EncoderAddRequest();
17078
+ if (object.id != null)
17079
+ message.id = String(object.id);
17080
+ if (object.compositionId != null)
17081
+ message.compositionId = String(object.compositionId);
17082
+ if (object.encoder != null) {
17083
+ if (typeof object.encoder !== "object")
17084
+ throw TypeError(".sesame.v1.outputs.EncoderAddRequest.encoder: object expected");
17085
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
16978
17086
  }
16979
- if (object.keyAndFill != null)
16980
- message.keyAndFill = Boolean(object.keyAndFill);
16981
17087
  return message;
16982
17088
  };
16983
- DecklinkOutputConfig.toObject = function toObject(message, options) {
17089
+ EncoderAddRequest.toObject = function toObject(message, options) {
16984
17090
  if (!options)
16985
17091
  options = {};
16986
17092
  let object = {};
16987
17093
  if (options.defaults) {
16988
- object.deviceIndex = 0;
16989
- object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
16990
- object.keyAndFill = false;
17094
+ object.id = "";
17095
+ object.compositionId = "";
17096
+ object.encoder = null;
16991
17097
  }
16992
- if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
16993
- object.deviceIndex = message.deviceIndex;
16994
- if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
16995
- object.videoFormat = options.enums === String ? $root.sesame.v1.common.VideoFormat[message.videoFormat] === void 0 ? message.videoFormat : $root.sesame.v1.common.VideoFormat[message.videoFormat] : message.videoFormat;
16996
- if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
16997
- object.keyAndFill = message.keyAndFill;
17098
+ if (message.id != null && message.hasOwnProperty("id"))
17099
+ object.id = message.id;
17100
+ if (message.compositionId != null && message.hasOwnProperty("compositionId"))
17101
+ object.compositionId = message.compositionId;
17102
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
17103
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
16998
17104
  return object;
16999
17105
  };
17000
- DecklinkOutputConfig.prototype.toJSON = function toJSON() {
17106
+ EncoderAddRequest.prototype.toJSON = function toJSON() {
17001
17107
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17002
17108
  };
17003
- DecklinkOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17109
+ EncoderAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17004
17110
  if (typeUrlPrefix === void 0) {
17005
17111
  typeUrlPrefix = "type.googleapis.com";
17006
17112
  }
17007
- return typeUrlPrefix + "/sesame.v1.outputs.DecklinkOutputConfig";
17113
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderAddRequest";
17008
17114
  };
17009
- return DecklinkOutputConfig;
17115
+ return EncoderAddRequest;
17010
17116
  }();
17011
- outputs.EncodedWebSocketOutputConfig = function() {
17012
- function EncodedWebSocketOutputConfig(properties) {
17013
- this.metadataTracks = [];
17117
+ outputs.EncoderUpdateRequest = function() {
17118
+ function EncoderUpdateRequest(properties) {
17014
17119
  if (properties) {
17015
17120
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17016
17121
  if (properties[keys[i]] != null)
17017
17122
  this[keys[i]] = properties[keys[i]];
17018
17123
  }
17019
17124
  }
17020
- EncodedWebSocketOutputConfig.prototype.channel = "";
17021
- EncodedWebSocketOutputConfig.prototype.encoder = null;
17022
- EncodedWebSocketOutputConfig.prototype.metadataTracks = $util.emptyArray;
17023
- EncodedWebSocketOutputConfig.create = function create(properties) {
17024
- return new EncodedWebSocketOutputConfig(properties);
17125
+ EncoderUpdateRequest.prototype.id = "";
17126
+ EncoderUpdateRequest.prototype.compositionId = "";
17127
+ EncoderUpdateRequest.prototype.encoder = null;
17128
+ EncoderUpdateRequest.create = function create(properties) {
17129
+ return new EncoderUpdateRequest(properties);
17025
17130
  };
17026
- EncodedWebSocketOutputConfig.encode = function encode(message, writer) {
17131
+ EncoderUpdateRequest.encode = function encode(message, writer) {
17027
17132
  if (!writer)
17028
17133
  writer = $Writer.create();
17029
- if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
17134
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
17030
17135
  writer.uint32(
17031
17136
  /* id 1, wireType 2 =*/
17032
17137
  10
17033
- ).string(message.channel);
17034
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17035
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17138
+ ).string(message.id);
17139
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
17140
+ writer.uint32(
17036
17141
  /* id 2, wireType 2 =*/
17037
17142
  18
17143
+ ).string(message.compositionId);
17144
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17145
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17146
+ /* id 3, wireType 2 =*/
17147
+ 26
17038
17148
  ).fork()).ldelim();
17039
- if (message.metadataTracks != null && message.metadataTracks.length)
17040
- for (let i = 0; i < message.metadataTracks.length; ++i)
17041
- writer.uint32(
17042
- /* id 3, wireType 2 =*/
17043
- 26
17044
- ).string(message.metadataTracks[i]);
17045
17149
  return writer;
17046
17150
  };
17047
- EncodedWebSocketOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
17151
+ EncoderUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
17048
17152
  return this.encode(message, writer).ldelim();
17049
17153
  };
17050
- EncodedWebSocketOutputConfig.decode = function decode(reader, length, error) {
17154
+ EncoderUpdateRequest.decode = function decode(reader, length, error) {
17051
17155
  if (!(reader instanceof $Reader))
17052
17156
  reader = $Reader.create(reader);
17053
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
17157
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
17054
17158
  while (reader.pos < end) {
17055
17159
  let tag = reader.uint32();
17056
17160
  if (tag === error)
17057
17161
  break;
17058
17162
  switch (tag >>> 3) {
17059
17163
  case 1: {
17060
- message.channel = reader.string();
17164
+ message.id = reader.string();
17061
17165
  break;
17062
17166
  }
17063
17167
  case 2: {
17064
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
17168
+ message.compositionId = reader.string();
17065
17169
  break;
17066
17170
  }
17067
17171
  case 3: {
17068
- if (!(message.metadataTracks && message.metadataTracks.length))
17069
- message.metadataTracks = [];
17070
- message.metadataTracks.push(reader.string());
17172
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
17071
17173
  break;
17072
17174
  }
17073
17175
  default:
@@ -17077,43 +17179,422 @@ var sesame = $root.sesame = (() => {
17077
17179
  }
17078
17180
  return message;
17079
17181
  };
17080
- EncodedWebSocketOutputConfig.decodeDelimited = function decodeDelimited(reader) {
17182
+ EncoderUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
17081
17183
  if (!(reader instanceof $Reader))
17082
17184
  reader = new $Reader(reader);
17083
17185
  return this.decode(reader, reader.uint32());
17084
17186
  };
17085
- EncodedWebSocketOutputConfig.verify = function verify(message) {
17187
+ EncoderUpdateRequest.verify = function verify(message) {
17086
17188
  if (typeof message !== "object" || message === null)
17087
17189
  return "object expected";
17088
- if (message.channel != null && message.hasOwnProperty("channel")) {
17089
- if (!$util.isString(message.channel))
17090
- return "channel: string expected";
17190
+ if (message.id != null && message.hasOwnProperty("id")) {
17191
+ if (!$util.isString(message.id))
17192
+ return "id: string expected";
17193
+ }
17194
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
17195
+ if (!$util.isString(message.compositionId))
17196
+ return "compositionId: string expected";
17091
17197
  }
17092
17198
  if (message.encoder != null && message.hasOwnProperty("encoder")) {
17093
17199
  let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17094
17200
  if (error)
17095
17201
  return "encoder." + error;
17096
17202
  }
17097
- if (message.metadataTracks != null && message.hasOwnProperty("metadataTracks")) {
17098
- if (!Array.isArray(message.metadataTracks))
17099
- return "metadataTracks: array expected";
17100
- for (let i = 0; i < message.metadataTracks.length; ++i)
17101
- if (!$util.isString(message.metadataTracks[i]))
17102
- return "metadataTracks: string[] expected";
17103
- }
17104
17203
  return null;
17105
17204
  };
17106
- EncodedWebSocketOutputConfig.fromObject = function fromObject(object) {
17107
- if (object instanceof $root.sesame.v1.outputs.EncodedWebSocketOutputConfig)
17205
+ EncoderUpdateRequest.fromObject = function fromObject(object) {
17206
+ if (object instanceof $root.sesame.v1.outputs.EncoderUpdateRequest)
17108
17207
  return object;
17109
- let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
17110
- if (object.channel != null)
17111
- message.channel = String(object.channel);
17112
- if (object.encoder != null) {
17113
- if (typeof object.encoder !== "object")
17114
- throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoder: object expected");
17115
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17208
+ let message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
17209
+ if (object.id != null)
17210
+ message.id = String(object.id);
17211
+ if (object.compositionId != null)
17212
+ message.compositionId = String(object.compositionId);
17213
+ if (object.encoder != null) {
17214
+ if (typeof object.encoder !== "object")
17215
+ throw TypeError(".sesame.v1.outputs.EncoderUpdateRequest.encoder: object expected");
17216
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17217
+ }
17218
+ return message;
17219
+ };
17220
+ EncoderUpdateRequest.toObject = function toObject(message, options) {
17221
+ if (!options)
17222
+ options = {};
17223
+ let object = {};
17224
+ if (options.defaults) {
17225
+ object.id = "";
17226
+ object.compositionId = "";
17227
+ object.encoder = null;
17228
+ }
17229
+ if (message.id != null && message.hasOwnProperty("id"))
17230
+ object.id = message.id;
17231
+ if (message.compositionId != null && message.hasOwnProperty("compositionId"))
17232
+ object.compositionId = message.compositionId;
17233
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
17234
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
17235
+ return object;
17236
+ };
17237
+ EncoderUpdateRequest.prototype.toJSON = function toJSON() {
17238
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17239
+ };
17240
+ EncoderUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17241
+ if (typeUrlPrefix === void 0) {
17242
+ typeUrlPrefix = "type.googleapis.com";
17243
+ }
17244
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderUpdateRequest";
17245
+ };
17246
+ return EncoderUpdateRequest;
17247
+ }();
17248
+ outputs.EncoderRemoveRequest = function() {
17249
+ function EncoderRemoveRequest(properties) {
17250
+ if (properties) {
17251
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17252
+ if (properties[keys[i]] != null)
17253
+ this[keys[i]] = properties[keys[i]];
17254
+ }
17255
+ }
17256
+ EncoderRemoveRequest.prototype.id = "";
17257
+ EncoderRemoveRequest.create = function create(properties) {
17258
+ return new EncoderRemoveRequest(properties);
17259
+ };
17260
+ EncoderRemoveRequest.encode = function encode(message, writer) {
17261
+ if (!writer)
17262
+ writer = $Writer.create();
17263
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
17264
+ writer.uint32(
17265
+ /* id 1, wireType 2 =*/
17266
+ 10
17267
+ ).string(message.id);
17268
+ return writer;
17269
+ };
17270
+ EncoderRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
17271
+ return this.encode(message, writer).ldelim();
17272
+ };
17273
+ EncoderRemoveRequest.decode = function decode(reader, length, error) {
17274
+ if (!(reader instanceof $Reader))
17275
+ reader = $Reader.create(reader);
17276
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
17277
+ while (reader.pos < end) {
17278
+ let tag = reader.uint32();
17279
+ if (tag === error)
17280
+ break;
17281
+ switch (tag >>> 3) {
17282
+ case 1: {
17283
+ message.id = reader.string();
17284
+ break;
17285
+ }
17286
+ default:
17287
+ reader.skipType(tag & 7);
17288
+ break;
17289
+ }
17290
+ }
17291
+ return message;
17292
+ };
17293
+ EncoderRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
17294
+ if (!(reader instanceof $Reader))
17295
+ reader = new $Reader(reader);
17296
+ return this.decode(reader, reader.uint32());
17297
+ };
17298
+ EncoderRemoveRequest.verify = function verify(message) {
17299
+ if (typeof message !== "object" || message === null)
17300
+ return "object expected";
17301
+ if (message.id != null && message.hasOwnProperty("id")) {
17302
+ if (!$util.isString(message.id))
17303
+ return "id: string expected";
17304
+ }
17305
+ return null;
17306
+ };
17307
+ EncoderRemoveRequest.fromObject = function fromObject(object) {
17308
+ if (object instanceof $root.sesame.v1.outputs.EncoderRemoveRequest)
17309
+ return object;
17310
+ let message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
17311
+ if (object.id != null)
17312
+ message.id = String(object.id);
17313
+ return message;
17314
+ };
17315
+ EncoderRemoveRequest.toObject = function toObject(message, options) {
17316
+ if (!options)
17317
+ options = {};
17318
+ let object = {};
17319
+ if (options.defaults)
17320
+ object.id = "";
17321
+ if (message.id != null && message.hasOwnProperty("id"))
17322
+ object.id = message.id;
17323
+ return object;
17324
+ };
17325
+ EncoderRemoveRequest.prototype.toJSON = function toJSON() {
17326
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17327
+ };
17328
+ EncoderRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17329
+ if (typeUrlPrefix === void 0) {
17330
+ typeUrlPrefix = "type.googleapis.com";
17331
+ }
17332
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderRemoveRequest";
17333
+ };
17334
+ return EncoderRemoveRequest;
17335
+ }();
17336
+ outputs.DecklinkOutputConfig = function() {
17337
+ function DecklinkOutputConfig(properties) {
17338
+ if (properties) {
17339
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17340
+ if (properties[keys[i]] != null)
17341
+ this[keys[i]] = properties[keys[i]];
17342
+ }
17343
+ }
17344
+ DecklinkOutputConfig.prototype.deviceIndex = 0;
17345
+ DecklinkOutputConfig.prototype.videoFormat = 0;
17346
+ DecklinkOutputConfig.prototype.keyAndFill = false;
17347
+ DecklinkOutputConfig.create = function create(properties) {
17348
+ return new DecklinkOutputConfig(properties);
17349
+ };
17350
+ DecklinkOutputConfig.encode = function encode(message, writer) {
17351
+ if (!writer)
17352
+ writer = $Writer.create();
17353
+ if (message.deviceIndex != null && Object.hasOwnProperty.call(message, "deviceIndex"))
17354
+ writer.uint32(
17355
+ /* id 1, wireType 0 =*/
17356
+ 8
17357
+ ).uint32(message.deviceIndex);
17358
+ if (message.videoFormat != null && Object.hasOwnProperty.call(message, "videoFormat"))
17359
+ writer.uint32(
17360
+ /* id 2, wireType 0 =*/
17361
+ 16
17362
+ ).int32(message.videoFormat);
17363
+ if (message.keyAndFill != null && Object.hasOwnProperty.call(message, "keyAndFill"))
17364
+ writer.uint32(
17365
+ /* id 3, wireType 0 =*/
17366
+ 24
17367
+ ).bool(message.keyAndFill);
17368
+ return writer;
17369
+ };
17370
+ DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
17371
+ return this.encode(message, writer).ldelim();
17372
+ };
17373
+ DecklinkOutputConfig.decode = function decode(reader, length, error) {
17374
+ if (!(reader instanceof $Reader))
17375
+ reader = $Reader.create(reader);
17376
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
17377
+ while (reader.pos < end) {
17378
+ let tag = reader.uint32();
17379
+ if (tag === error)
17380
+ break;
17381
+ switch (tag >>> 3) {
17382
+ case 1: {
17383
+ message.deviceIndex = reader.uint32();
17384
+ break;
17385
+ }
17386
+ case 2: {
17387
+ message.videoFormat = reader.int32();
17388
+ break;
17389
+ }
17390
+ case 3: {
17391
+ message.keyAndFill = reader.bool();
17392
+ break;
17393
+ }
17394
+ default:
17395
+ reader.skipType(tag & 7);
17396
+ break;
17397
+ }
17398
+ }
17399
+ return message;
17400
+ };
17401
+ DecklinkOutputConfig.decodeDelimited = function decodeDelimited(reader) {
17402
+ if (!(reader instanceof $Reader))
17403
+ reader = new $Reader(reader);
17404
+ return this.decode(reader, reader.uint32());
17405
+ };
17406
+ DecklinkOutputConfig.verify = function verify(message) {
17407
+ if (typeof message !== "object" || message === null)
17408
+ return "object expected";
17409
+ if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex")) {
17410
+ if (!$util.isInteger(message.deviceIndex))
17411
+ return "deviceIndex: integer expected";
17412
+ }
17413
+ if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
17414
+ switch (message.videoFormat) {
17415
+ default:
17416
+ return "videoFormat: enum value expected";
17417
+ case 0:
17418
+ case 1:
17419
+ case 2:
17420
+ case 3:
17421
+ case 4:
17422
+ break;
17423
+ }
17424
+ if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill")) {
17425
+ if (typeof message.keyAndFill !== "boolean")
17426
+ return "keyAndFill: boolean expected";
17427
+ }
17428
+ return null;
17429
+ };
17430
+ DecklinkOutputConfig.fromObject = function fromObject(object) {
17431
+ if (object instanceof $root.sesame.v1.outputs.DecklinkOutputConfig)
17432
+ return object;
17433
+ let message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
17434
+ if (object.deviceIndex != null)
17435
+ message.deviceIndex = object.deviceIndex >>> 0;
17436
+ switch (object.videoFormat) {
17437
+ default:
17438
+ if (typeof object.videoFormat === "number") {
17439
+ message.videoFormat = object.videoFormat;
17440
+ break;
17441
+ }
17442
+ break;
17443
+ case "VIDEO_FORMAT_UNSPECIFIED":
17444
+ case 0:
17445
+ message.videoFormat = 0;
17446
+ break;
17447
+ case "VIDEO_FORMAT_1080_50I":
17448
+ case 1:
17449
+ message.videoFormat = 1;
17450
+ break;
17451
+ case "VIDEO_FORMAT_1080_50P":
17452
+ case 2:
17453
+ message.videoFormat = 2;
17454
+ break;
17455
+ case "VIDEO_FORMAT_1080_60I":
17456
+ case 3:
17457
+ message.videoFormat = 3;
17458
+ break;
17459
+ case "VIDEO_FORMAT_1080_60P":
17460
+ case 4:
17461
+ message.videoFormat = 4;
17462
+ break;
17463
+ }
17464
+ if (object.keyAndFill != null)
17465
+ message.keyAndFill = Boolean(object.keyAndFill);
17466
+ return message;
17467
+ };
17468
+ DecklinkOutputConfig.toObject = function toObject(message, options) {
17469
+ if (!options)
17470
+ options = {};
17471
+ let object = {};
17472
+ if (options.defaults) {
17473
+ object.deviceIndex = 0;
17474
+ object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
17475
+ object.keyAndFill = false;
17476
+ }
17477
+ if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
17478
+ object.deviceIndex = message.deviceIndex;
17479
+ if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
17480
+ object.videoFormat = options.enums === String ? $root.sesame.v1.common.VideoFormat[message.videoFormat] === void 0 ? message.videoFormat : $root.sesame.v1.common.VideoFormat[message.videoFormat] : message.videoFormat;
17481
+ if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
17482
+ object.keyAndFill = message.keyAndFill;
17483
+ return object;
17484
+ };
17485
+ DecklinkOutputConfig.prototype.toJSON = function toJSON() {
17486
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17487
+ };
17488
+ DecklinkOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17489
+ if (typeUrlPrefix === void 0) {
17490
+ typeUrlPrefix = "type.googleapis.com";
17116
17491
  }
17492
+ return typeUrlPrefix + "/sesame.v1.outputs.DecklinkOutputConfig";
17493
+ };
17494
+ return DecklinkOutputConfig;
17495
+ }();
17496
+ outputs.EncodedWebSocketOutputConfig = function() {
17497
+ function EncodedWebSocketOutputConfig(properties) {
17498
+ this.metadataTracks = [];
17499
+ if (properties) {
17500
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17501
+ if (properties[keys[i]] != null)
17502
+ this[keys[i]] = properties[keys[i]];
17503
+ }
17504
+ }
17505
+ EncodedWebSocketOutputConfig.prototype.channel = "";
17506
+ EncodedWebSocketOutputConfig.prototype.encoderId = "";
17507
+ EncodedWebSocketOutputConfig.prototype.metadataTracks = $util.emptyArray;
17508
+ EncodedWebSocketOutputConfig.create = function create(properties) {
17509
+ return new EncodedWebSocketOutputConfig(properties);
17510
+ };
17511
+ EncodedWebSocketOutputConfig.encode = function encode(message, writer) {
17512
+ if (!writer)
17513
+ writer = $Writer.create();
17514
+ if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
17515
+ writer.uint32(
17516
+ /* id 1, wireType 2 =*/
17517
+ 10
17518
+ ).string(message.channel);
17519
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
17520
+ writer.uint32(
17521
+ /* id 2, wireType 2 =*/
17522
+ 18
17523
+ ).string(message.encoderId);
17524
+ if (message.metadataTracks != null && message.metadataTracks.length)
17525
+ for (let i = 0; i < message.metadataTracks.length; ++i)
17526
+ writer.uint32(
17527
+ /* id 3, wireType 2 =*/
17528
+ 26
17529
+ ).string(message.metadataTracks[i]);
17530
+ return writer;
17531
+ };
17532
+ EncodedWebSocketOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
17533
+ return this.encode(message, writer).ldelim();
17534
+ };
17535
+ EncodedWebSocketOutputConfig.decode = function decode(reader, length, error) {
17536
+ if (!(reader instanceof $Reader))
17537
+ reader = $Reader.create(reader);
17538
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
17539
+ while (reader.pos < end) {
17540
+ let tag = reader.uint32();
17541
+ if (tag === error)
17542
+ break;
17543
+ switch (tag >>> 3) {
17544
+ case 1: {
17545
+ message.channel = reader.string();
17546
+ break;
17547
+ }
17548
+ case 2: {
17549
+ message.encoderId = reader.string();
17550
+ break;
17551
+ }
17552
+ case 3: {
17553
+ if (!(message.metadataTracks && message.metadataTracks.length))
17554
+ message.metadataTracks = [];
17555
+ message.metadataTracks.push(reader.string());
17556
+ break;
17557
+ }
17558
+ default:
17559
+ reader.skipType(tag & 7);
17560
+ break;
17561
+ }
17562
+ }
17563
+ return message;
17564
+ };
17565
+ EncodedWebSocketOutputConfig.decodeDelimited = function decodeDelimited(reader) {
17566
+ if (!(reader instanceof $Reader))
17567
+ reader = new $Reader(reader);
17568
+ return this.decode(reader, reader.uint32());
17569
+ };
17570
+ EncodedWebSocketOutputConfig.verify = function verify(message) {
17571
+ if (typeof message !== "object" || message === null)
17572
+ return "object expected";
17573
+ if (message.channel != null && message.hasOwnProperty("channel")) {
17574
+ if (!$util.isString(message.channel))
17575
+ return "channel: string expected";
17576
+ }
17577
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
17578
+ if (!$util.isString(message.encoderId))
17579
+ return "encoderId: string expected";
17580
+ }
17581
+ if (message.metadataTracks != null && message.hasOwnProperty("metadataTracks")) {
17582
+ if (!Array.isArray(message.metadataTracks))
17583
+ return "metadataTracks: array expected";
17584
+ for (let i = 0; i < message.metadataTracks.length; ++i)
17585
+ if (!$util.isString(message.metadataTracks[i]))
17586
+ return "metadataTracks: string[] expected";
17587
+ }
17588
+ return null;
17589
+ };
17590
+ EncodedWebSocketOutputConfig.fromObject = function fromObject(object) {
17591
+ if (object instanceof $root.sesame.v1.outputs.EncodedWebSocketOutputConfig)
17592
+ return object;
17593
+ let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
17594
+ if (object.channel != null)
17595
+ message.channel = String(object.channel);
17596
+ if (object.encoderId != null)
17597
+ message.encoderId = String(object.encoderId);
17117
17598
  if (object.metadataTracks) {
17118
17599
  if (!Array.isArray(object.metadataTracks))
17119
17600
  throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.metadataTracks: array expected");
@@ -17131,12 +17612,12 @@ var sesame = $root.sesame = (() => {
17131
17612
  object.metadataTracks = [];
17132
17613
  if (options.defaults) {
17133
17614
  object.channel = "";
17134
- object.encoder = null;
17615
+ object.encoderId = "";
17135
17616
  }
17136
17617
  if (message.channel != null && message.hasOwnProperty("channel"))
17137
17618
  object.channel = message.channel;
17138
- if (message.encoder != null && message.hasOwnProperty("encoder"))
17139
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
17619
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
17620
+ object.encoderId = message.encoderId;
17140
17621
  if (message.metadataTracks && message.metadataTracks.length) {
17141
17622
  object.metadataTracks = [];
17142
17623
  for (let j = 0; j < message.metadataTracks.length; ++j)
@@ -17163,7 +17644,7 @@ var sesame = $root.sesame = (() => {
17163
17644
  this[keys[i]] = properties[keys[i]];
17164
17645
  }
17165
17646
  }
17166
- EncodedRecorderOutputConfig.prototype.encoder = null;
17647
+ EncodedRecorderOutputConfig.prototype.encoderId = "";
17167
17648
  EncodedRecorderOutputConfig.prototype.filename = "";
17168
17649
  EncodedRecorderOutputConfig.prototype.sizeGb = 0;
17169
17650
  EncodedRecorderOutputConfig.prototype.groupId = "";
@@ -17174,11 +17655,11 @@ var sesame = $root.sesame = (() => {
17174
17655
  EncodedRecorderOutputConfig.encode = function encode(message, writer) {
17175
17656
  if (!writer)
17176
17657
  writer = $Writer.create();
17177
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17178
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17658
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
17659
+ writer.uint32(
17179
17660
  /* id 1, wireType 2 =*/
17180
17661
  10
17181
- ).fork()).ldelim();
17662
+ ).string(message.encoderId);
17182
17663
  if (message.filename != null && Object.hasOwnProperty.call(message, "filename"))
17183
17664
  writer.uint32(
17184
17665
  /* id 2, wireType 2 =*/
@@ -17214,7 +17695,7 @@ var sesame = $root.sesame = (() => {
17214
17695
  break;
17215
17696
  switch (tag >>> 3) {
17216
17697
  case 1: {
17217
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
17698
+ message.encoderId = reader.string();
17218
17699
  break;
17219
17700
  }
17220
17701
  case 2: {
@@ -17248,10 +17729,9 @@ var sesame = $root.sesame = (() => {
17248
17729
  EncodedRecorderOutputConfig.verify = function verify(message) {
17249
17730
  if (typeof message !== "object" || message === null)
17250
17731
  return "object expected";
17251
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
17252
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17253
- if (error)
17254
- return "encoder." + error;
17732
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
17733
+ if (!$util.isString(message.encoderId))
17734
+ return "encoderId: string expected";
17255
17735
  }
17256
17736
  if (message.filename != null && message.hasOwnProperty("filename")) {
17257
17737
  if (!$util.isString(message.filename))
@@ -17280,11 +17760,8 @@ var sesame = $root.sesame = (() => {
17280
17760
  if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
17281
17761
  return object;
17282
17762
  let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
17283
- if (object.encoder != null) {
17284
- if (typeof object.encoder !== "object")
17285
- throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
17286
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17287
- }
17763
+ if (object.encoderId != null)
17764
+ message.encoderId = String(object.encoderId);
17288
17765
  if (object.filename != null)
17289
17766
  message.filename = String(object.filename);
17290
17767
  if (object.sizeGb != null)
@@ -17318,14 +17795,14 @@ var sesame = $root.sesame = (() => {
17318
17795
  options = {};
17319
17796
  let object = {};
17320
17797
  if (options.defaults) {
17321
- object.encoder = null;
17798
+ object.encoderId = "";
17322
17799
  object.filename = "";
17323
17800
  object.sizeGb = 0;
17324
17801
  object.groupId = "";
17325
17802
  object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
17326
- }
17327
- if (message.encoder != null && message.hasOwnProperty("encoder"))
17328
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
17803
+ }
17804
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
17805
+ object.encoderId = message.encoderId;
17329
17806
  if (message.filename != null && message.hasOwnProperty("filename"))
17330
17807
  object.filename = message.filename;
17331
17808
  if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
@@ -17618,7 +18095,7 @@ var sesame = $root.sesame = (() => {
17618
18095
  }
17619
18096
  }
17620
18097
  EncodedSrtOutputConfig.prototype.url = "";
17621
- EncodedSrtOutputConfig.prototype.encoder = null;
18098
+ EncodedSrtOutputConfig.prototype.encoderId = "";
17622
18099
  EncodedSrtOutputConfig.create = function create(properties) {
17623
18100
  return new EncodedSrtOutputConfig(properties);
17624
18101
  };
@@ -17630,11 +18107,11 @@ var sesame = $root.sesame = (() => {
17630
18107
  /* id 1, wireType 2 =*/
17631
18108
  10
17632
18109
  ).string(message.url);
17633
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17634
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
18110
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
18111
+ writer.uint32(
17635
18112
  /* id 2, wireType 2 =*/
17636
18113
  18
17637
- ).fork()).ldelim();
18114
+ ).string(message.encoderId);
17638
18115
  return writer;
17639
18116
  };
17640
18117
  EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -17654,7 +18131,7 @@ var sesame = $root.sesame = (() => {
17654
18131
  break;
17655
18132
  }
17656
18133
  case 2: {
17657
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
18134
+ message.encoderId = reader.string();
17658
18135
  break;
17659
18136
  }
17660
18137
  default:
@@ -17676,10 +18153,9 @@ var sesame = $root.sesame = (() => {
17676
18153
  if (!$util.isString(message.url))
17677
18154
  return "url: string expected";
17678
18155
  }
17679
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
17680
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17681
- if (error)
17682
- return "encoder." + error;
18156
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
18157
+ if (!$util.isString(message.encoderId))
18158
+ return "encoderId: string expected";
17683
18159
  }
17684
18160
  return null;
17685
18161
  };
@@ -17689,11 +18165,8 @@ var sesame = $root.sesame = (() => {
17689
18165
  let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
17690
18166
  if (object.url != null)
17691
18167
  message.url = String(object.url);
17692
- if (object.encoder != null) {
17693
- if (typeof object.encoder !== "object")
17694
- throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
17695
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17696
- }
18168
+ if (object.encoderId != null)
18169
+ message.encoderId = String(object.encoderId);
17697
18170
  return message;
17698
18171
  };
17699
18172
  EncodedSrtOutputConfig.toObject = function toObject(message, options) {
@@ -17702,12 +18175,12 @@ var sesame = $root.sesame = (() => {
17702
18175
  let object = {};
17703
18176
  if (options.defaults) {
17704
18177
  object.url = "";
17705
- object.encoder = null;
18178
+ object.encoderId = "";
17706
18179
  }
17707
18180
  if (message.url != null && message.hasOwnProperty("url"))
17708
18181
  object.url = message.url;
17709
- if (message.encoder != null && message.hasOwnProperty("encoder"))
17710
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
18182
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
18183
+ object.encoderId = message.encoderId;
17711
18184
  return object;
17712
18185
  };
17713
18186
  EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
@@ -17730,7 +18203,7 @@ var sesame = $root.sesame = (() => {
17730
18203
  this[keys[i]] = properties[keys[i]];
17731
18204
  }
17732
18205
  }
17733
- EncodedMoqOutputConfig.prototype.encoder = null;
18206
+ EncodedMoqOutputConfig.prototype.encoderId = "";
17734
18207
  EncodedMoqOutputConfig.prototype.url = "";
17735
18208
  EncodedMoqOutputConfig.prototype.broadcast = "";
17736
18209
  EncodedMoqOutputConfig.prototype.key = "";
@@ -17741,11 +18214,11 @@ var sesame = $root.sesame = (() => {
17741
18214
  EncodedMoqOutputConfig.encode = function encode(message, writer) {
17742
18215
  if (!writer)
17743
18216
  writer = $Writer.create();
17744
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17745
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
18217
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
18218
+ writer.uint32(
17746
18219
  /* id 1, wireType 2 =*/
17747
18220
  10
17748
- ).fork()).ldelim();
18221
+ ).string(message.encoderId);
17749
18222
  if (message.url != null && Object.hasOwnProperty.call(message, "url"))
17750
18223
  writer.uint32(
17751
18224
  /* id 2, wireType 2 =*/
@@ -17782,7 +18255,7 @@ var sesame = $root.sesame = (() => {
17782
18255
  break;
17783
18256
  switch (tag >>> 3) {
17784
18257
  case 1: {
17785
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
18258
+ message.encoderId = reader.string();
17786
18259
  break;
17787
18260
  }
17788
18261
  case 2: {
@@ -17818,10 +18291,9 @@ var sesame = $root.sesame = (() => {
17818
18291
  EncodedMoqOutputConfig.verify = function verify(message) {
17819
18292
  if (typeof message !== "object" || message === null)
17820
18293
  return "object expected";
17821
- if (message.encoder != null && message.hasOwnProperty("encoder")) {
17822
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17823
- if (error)
17824
- return "encoder." + error;
18294
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
18295
+ if (!$util.isString(message.encoderId))
18296
+ return "encoderId: string expected";
17825
18297
  }
17826
18298
  if (message.url != null && message.hasOwnProperty("url")) {
17827
18299
  if (!$util.isString(message.url))
@@ -17848,11 +18320,8 @@ var sesame = $root.sesame = (() => {
17848
18320
  if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
17849
18321
  return object;
17850
18322
  let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
17851
- if (object.encoder != null) {
17852
- if (typeof object.encoder !== "object")
17853
- throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
17854
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
17855
- }
18323
+ if (object.encoderId != null)
18324
+ message.encoderId = String(object.encoderId);
17856
18325
  if (object.url != null)
17857
18326
  message.url = String(object.url);
17858
18327
  if (object.broadcast != null)
@@ -17875,13 +18344,13 @@ var sesame = $root.sesame = (() => {
17875
18344
  if (options.arrays || options.defaults)
17876
18345
  object.metadataTracks = [];
17877
18346
  if (options.defaults) {
17878
- object.encoder = null;
18347
+ object.encoderId = "";
17879
18348
  object.url = "";
17880
18349
  object.broadcast = "";
17881
18350
  object.key = "";
17882
18351
  }
17883
- if (message.encoder != null && message.hasOwnProperty("encoder"))
17884
- object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
18352
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
18353
+ object.encoderId = message.encoderId;
17885
18354
  if (message.url != null && message.hasOwnProperty("url"))
17886
18355
  object.url = message.url;
17887
18356
  if (message.broadcast != null && message.hasOwnProperty("broadcast"))
@@ -18937,6 +19406,7 @@ var sesame = $root.sesame = (() => {
18937
19406
  OutputStatus.prototype.url = "";
18938
19407
  OutputStatus.prototype.bufferSize = 0;
18939
19408
  OutputStatus.prototype.srtStats = null;
19409
+ OutputStatus.prototype.encoderId = "";
18940
19410
  let $oneOfFields;
18941
19411
  Object.defineProperty(OutputStatus.prototype, "_msg", {
18942
19412
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -18987,6 +19457,11 @@ var sesame = $root.sesame = (() => {
18987
19457
  /* id 7, wireType 2 =*/
18988
19458
  58
18989
19459
  ).fork()).ldelim();
19460
+ if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
19461
+ writer.uint32(
19462
+ /* id 8, wireType 2 =*/
19463
+ 66
19464
+ ).string(message.encoderId);
18990
19465
  return writer;
18991
19466
  };
18992
19467
  OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -19029,6 +19504,10 @@ var sesame = $root.sesame = (() => {
19029
19504
  message.srtStats = $root.sesame.v1.status.SRTSendStatistics.decode(reader, reader.uint32());
19030
19505
  break;
19031
19506
  }
19507
+ case 8: {
19508
+ message.encoderId = reader.string();
19509
+ break;
19510
+ }
19032
19511
  default:
19033
19512
  reader.skipType(tag & 7);
19034
19513
  break;
@@ -19097,6 +19576,10 @@ var sesame = $root.sesame = (() => {
19097
19576
  return "srtStats." + error;
19098
19577
  }
19099
19578
  }
19579
+ if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
19580
+ if (!$util.isString(message.encoderId))
19581
+ return "encoderId: string expected";
19582
+ }
19100
19583
  return null;
19101
19584
  };
19102
19585
  OutputStatus.fromObject = function fromObject(object) {
@@ -19192,6 +19675,8 @@ var sesame = $root.sesame = (() => {
19192
19675
  throw TypeError(".sesame.v1.outputs.OutputStatus.srtStats: object expected");
19193
19676
  message.srtStats = $root.sesame.v1.status.SRTSendStatistics.fromObject(object.srtStats);
19194
19677
  }
19678
+ if (object.encoderId != null)
19679
+ message.encoderId = String(object.encoderId);
19195
19680
  return message;
19196
19681
  };
19197
19682
  OutputStatus.toObject = function toObject(message, options) {
@@ -19204,6 +19689,7 @@ var sesame = $root.sesame = (() => {
19204
19689
  object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
19205
19690
  object.url = "";
19206
19691
  object.bufferSize = 0;
19692
+ object.encoderId = "";
19207
19693
  }
19208
19694
  if (message.id != null && message.hasOwnProperty("id"))
19209
19695
  object.id = message.id;
@@ -19225,6 +19711,8 @@ var sesame = $root.sesame = (() => {
19225
19711
  if (options.oneofs)
19226
19712
  object._srtStats = "srtStats";
19227
19713
  }
19714
+ if (message.encoderId != null && message.hasOwnProperty("encoderId"))
19715
+ object.encoderId = message.encoderId;
19228
19716
  return object;
19229
19717
  };
19230
19718
  OutputStatus.prototype.toJSON = function toJSON() {
@@ -19238,6 +19726,241 @@ var sesame = $root.sesame = (() => {
19238
19726
  };
19239
19727
  return OutputStatus;
19240
19728
  }();
19729
+ outputs.EncoderStatus = function() {
19730
+ function EncoderStatus(properties) {
19731
+ if (properties) {
19732
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19733
+ if (properties[keys[i]] != null)
19734
+ this[keys[i]] = properties[keys[i]];
19735
+ }
19736
+ }
19737
+ EncoderStatus.prototype.id = "";
19738
+ EncoderStatus.prototype.type = 0;
19739
+ EncoderStatus.prototype.state = 0;
19740
+ EncoderStatus.prototype.msg = null;
19741
+ EncoderStatus.prototype.compositionId = "";
19742
+ let $oneOfFields;
19743
+ Object.defineProperty(EncoderStatus.prototype, "_msg", {
19744
+ get: $util.oneOfGetter($oneOfFields = ["msg"]),
19745
+ set: $util.oneOfSetter($oneOfFields)
19746
+ });
19747
+ EncoderStatus.create = function create(properties) {
19748
+ return new EncoderStatus(properties);
19749
+ };
19750
+ EncoderStatus.encode = function encode(message, writer) {
19751
+ if (!writer)
19752
+ writer = $Writer.create();
19753
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
19754
+ writer.uint32(
19755
+ /* id 1, wireType 2 =*/
19756
+ 10
19757
+ ).string(message.id);
19758
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
19759
+ writer.uint32(
19760
+ /* id 2, wireType 0 =*/
19761
+ 16
19762
+ ).int32(message.type);
19763
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
19764
+ writer.uint32(
19765
+ /* id 3, wireType 0 =*/
19766
+ 24
19767
+ ).int32(message.state);
19768
+ if (message.msg != null && Object.hasOwnProperty.call(message, "msg"))
19769
+ writer.uint32(
19770
+ /* id 4, wireType 2 =*/
19771
+ 34
19772
+ ).string(message.msg);
19773
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
19774
+ writer.uint32(
19775
+ /* id 5, wireType 2 =*/
19776
+ 42
19777
+ ).string(message.compositionId);
19778
+ return writer;
19779
+ };
19780
+ EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
19781
+ return this.encode(message, writer).ldelim();
19782
+ };
19783
+ EncoderStatus.decode = function decode(reader, length, error) {
19784
+ if (!(reader instanceof $Reader))
19785
+ reader = $Reader.create(reader);
19786
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderStatus();
19787
+ while (reader.pos < end) {
19788
+ let tag = reader.uint32();
19789
+ if (tag === error)
19790
+ break;
19791
+ switch (tag >>> 3) {
19792
+ case 1: {
19793
+ message.id = reader.string();
19794
+ break;
19795
+ }
19796
+ case 2: {
19797
+ message.type = reader.int32();
19798
+ break;
19799
+ }
19800
+ case 3: {
19801
+ message.state = reader.int32();
19802
+ break;
19803
+ }
19804
+ case 4: {
19805
+ message.msg = reader.string();
19806
+ break;
19807
+ }
19808
+ case 5: {
19809
+ message.compositionId = reader.string();
19810
+ break;
19811
+ }
19812
+ default:
19813
+ reader.skipType(tag & 7);
19814
+ break;
19815
+ }
19816
+ }
19817
+ return message;
19818
+ };
19819
+ EncoderStatus.decodeDelimited = function decodeDelimited(reader) {
19820
+ if (!(reader instanceof $Reader))
19821
+ reader = new $Reader(reader);
19822
+ return this.decode(reader, reader.uint32());
19823
+ };
19824
+ EncoderStatus.verify = function verify(message) {
19825
+ if (typeof message !== "object" || message === null)
19826
+ return "object expected";
19827
+ let properties = {};
19828
+ if (message.id != null && message.hasOwnProperty("id")) {
19829
+ if (!$util.isString(message.id))
19830
+ return "id: string expected";
19831
+ }
19832
+ if (message.type != null && message.hasOwnProperty("type"))
19833
+ switch (message.type) {
19834
+ default:
19835
+ return "type: enum value expected";
19836
+ case 0:
19837
+ case 1:
19838
+ break;
19839
+ }
19840
+ if (message.state != null && message.hasOwnProperty("state"))
19841
+ switch (message.state) {
19842
+ default:
19843
+ return "state: enum value expected";
19844
+ case 0:
19845
+ case 1:
19846
+ case 2:
19847
+ case 3:
19848
+ case 4:
19849
+ case 5:
19850
+ case 6:
19851
+ break;
19852
+ }
19853
+ if (message.msg != null && message.hasOwnProperty("msg")) {
19854
+ properties._msg = 1;
19855
+ if (!$util.isString(message.msg))
19856
+ return "msg: string expected";
19857
+ }
19858
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
19859
+ if (!$util.isString(message.compositionId))
19860
+ return "compositionId: string expected";
19861
+ }
19862
+ return null;
19863
+ };
19864
+ EncoderStatus.fromObject = function fromObject(object) {
19865
+ if (object instanceof $root.sesame.v1.outputs.EncoderStatus)
19866
+ return object;
19867
+ let message = new $root.sesame.v1.outputs.EncoderStatus();
19868
+ if (object.id != null)
19869
+ message.id = String(object.id);
19870
+ switch (object.type) {
19871
+ default:
19872
+ if (typeof object.type === "number") {
19873
+ message.type = object.type;
19874
+ break;
19875
+ }
19876
+ break;
19877
+ case "ENCODER_TYPE_UNSPECIFIED":
19878
+ case 0:
19879
+ message.type = 0;
19880
+ break;
19881
+ case "ENCODER_TYPE_VIDEO":
19882
+ case 1:
19883
+ message.type = 1;
19884
+ break;
19885
+ }
19886
+ switch (object.state) {
19887
+ default:
19888
+ if (typeof object.state === "number") {
19889
+ message.state = object.state;
19890
+ break;
19891
+ }
19892
+ break;
19893
+ case "CONNECTION_STATE_UNSPECIFIED":
19894
+ case 0:
19895
+ message.state = 0;
19896
+ break;
19897
+ case "CONNECTION_STATE_INITIALIZING":
19898
+ case 1:
19899
+ message.state = 1;
19900
+ break;
19901
+ case "CONNECTION_STATE_CONNECTING":
19902
+ case 2:
19903
+ message.state = 2;
19904
+ break;
19905
+ case "CONNECTION_STATE_ONLINE":
19906
+ case 3:
19907
+ message.state = 3;
19908
+ break;
19909
+ case "CONNECTION_STATE_DEGRADED":
19910
+ case 4:
19911
+ message.state = 4;
19912
+ break;
19913
+ case "CONNECTION_STATE_OFFLINE":
19914
+ case 5:
19915
+ message.state = 5;
19916
+ break;
19917
+ case "CONNECTION_STATE_ERROR":
19918
+ case 6:
19919
+ message.state = 6;
19920
+ break;
19921
+ }
19922
+ if (object.msg != null)
19923
+ message.msg = String(object.msg);
19924
+ if (object.compositionId != null)
19925
+ message.compositionId = String(object.compositionId);
19926
+ return message;
19927
+ };
19928
+ EncoderStatus.toObject = function toObject(message, options) {
19929
+ if (!options)
19930
+ options = {};
19931
+ let object = {};
19932
+ if (options.defaults) {
19933
+ object.id = "";
19934
+ object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
19935
+ object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
19936
+ object.compositionId = "";
19937
+ }
19938
+ if (message.id != null && message.hasOwnProperty("id"))
19939
+ object.id = message.id;
19940
+ if (message.type != null && message.hasOwnProperty("type"))
19941
+ 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;
19942
+ if (message.state != null && message.hasOwnProperty("state"))
19943
+ 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;
19944
+ if (message.msg != null && message.hasOwnProperty("msg")) {
19945
+ object.msg = message.msg;
19946
+ if (options.oneofs)
19947
+ object._msg = "msg";
19948
+ }
19949
+ if (message.compositionId != null && message.hasOwnProperty("compositionId"))
19950
+ object.compositionId = message.compositionId;
19951
+ return object;
19952
+ };
19953
+ EncoderStatus.prototype.toJSON = function toJSON() {
19954
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19955
+ };
19956
+ EncoderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19957
+ if (typeUrlPrefix === void 0) {
19958
+ typeUrlPrefix = "type.googleapis.com";
19959
+ }
19960
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderStatus";
19961
+ };
19962
+ return EncoderStatus;
19963
+ }();
19241
19964
  return outputs;
19242
19965
  }();
19243
19966
  v1.compositor = function() {
@@ -24656,6 +25379,21 @@ var CommandList = class {
24656
25379
  item.removeOutput = { id };
24657
25380
  return this.add(item, timeOffsetMs);
24658
25381
  }
25382
+ encoderAdd(id, cfg, timeOffsetMs) {
25383
+ let item = new sesame.v1.commands.CommandListItem();
25384
+ item.addEncoder = { id, ...cfg };
25385
+ return this.add(item, timeOffsetMs);
25386
+ }
25387
+ encoderUpdate(id, cfg, timeOffsetMs) {
25388
+ let item = new sesame.v1.commands.CommandListItem();
25389
+ item.updateEncoder = { id, ...cfg };
25390
+ return this.add(item, timeOffsetMs);
25391
+ }
25392
+ encoderRemove(id, timeOffsetMs) {
25393
+ let item = new sesame.v1.commands.CommandListItem();
25394
+ item.removeEncoder = { id };
25395
+ return this.add(item, timeOffsetMs);
25396
+ }
24659
25397
  audioMixerAdd(id, cfg, timeOffsetMs) {
24660
25398
  let item = new sesame.v1.commands.CommandListItem();
24661
25399
  item.addAudioMixer = { id, config: cfg };