@stinkycomputing/sesame-api-client 1.4.1-alpha.3 → 1.4.1-alpha.5

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/browser.mjs CHANGED
@@ -4448,7 +4448,6 @@ var sesame = $root.sesame = (() => {
4448
4448
  SourceCommonConfig.prototype.playState = 0;
4449
4449
  SourceCommonConfig.prototype.mipMap = false;
4450
4450
  SourceCommonConfig.prototype.textureSize = 0;
4451
- SourceCommonConfig.prototype.decoderType = 0;
4452
4451
  SourceCommonConfig.prototype.deinterlace = 0;
4453
4452
  SourceCommonConfig.prototype.videoProcessors = $util.emptyArray;
4454
4453
  SourceCommonConfig.create = function create(properties) {
@@ -4497,11 +4496,6 @@ var sesame = $root.sesame = (() => {
4497
4496
  /* id 8, wireType 0 =*/
4498
4497
  64
4499
4498
  ).int32(message.textureSize);
4500
- if (message.decoderType != null && Object.hasOwnProperty.call(message, "decoderType"))
4501
- writer.uint32(
4502
- /* id 9, wireType 0 =*/
4503
- 72
4504
- ).int32(message.decoderType);
4505
4499
  if (message.deinterlace != null && Object.hasOwnProperty.call(message, "deinterlace"))
4506
4500
  writer.uint32(
4507
4501
  /* id 10, wireType 0 =*/
@@ -4559,10 +4553,6 @@ var sesame = $root.sesame = (() => {
4559
4553
  message.textureSize = reader.int32();
4560
4554
  break;
4561
4555
  }
4562
- case 9: {
4563
- message.decoderType = reader.int32();
4564
- break;
4565
- }
4566
4556
  case 10: {
4567
4557
  message.deinterlace = reader.int32();
4568
4558
  break;
@@ -4632,16 +4622,6 @@ var sesame = $root.sesame = (() => {
4632
4622
  case 2:
4633
4623
  break;
4634
4624
  }
4635
- if (message.decoderType != null && message.hasOwnProperty("decoderType"))
4636
- switch (message.decoderType) {
4637
- default:
4638
- return "decoderType: enum value expected";
4639
- case 0:
4640
- case 1:
4641
- case 2:
4642
- case 3:
4643
- break;
4644
- }
4645
4625
  if (message.deinterlace != null && message.hasOwnProperty("deinterlace"))
4646
4626
  switch (message.deinterlace) {
4647
4627
  default:
@@ -4727,30 +4707,6 @@ var sesame = $root.sesame = (() => {
4727
4707
  message.textureSize = 2;
4728
4708
  break;
4729
4709
  }
4730
- switch (object.decoderType) {
4731
- default:
4732
- if (typeof object.decoderType === "number") {
4733
- message.decoderType = object.decoderType;
4734
- break;
4735
- }
4736
- break;
4737
- case "DECODER_TYPE_UNSPECIFIED":
4738
- case 0:
4739
- message.decoderType = 0;
4740
- break;
4741
- case "DECODER_TYPE_H264":
4742
- case 1:
4743
- message.decoderType = 1;
4744
- break;
4745
- case "DECODER_TYPE_HEVC":
4746
- case 2:
4747
- message.decoderType = 2;
4748
- break;
4749
- case "DECODER_TYPE_AV1":
4750
- case 3:
4751
- message.decoderType = 3;
4752
- break;
4753
- }
4754
4710
  switch (object.deinterlace) {
4755
4711
  default:
4756
4712
  if (typeof object.deinterlace === "number") {
@@ -4802,7 +4758,6 @@ var sesame = $root.sesame = (() => {
4802
4758
  object.playState = options.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0;
4803
4759
  object.mipMap = false;
4804
4760
  object.textureSize = options.enums === String ? "SOURCE_TEXTURE_SIZE_UNSPECIFIED" : 0;
4805
- object.decoderType = options.enums === String ? "DECODER_TYPE_UNSPECIFIED" : 0;
4806
4761
  object.deinterlace = options.enums === String ? "DEINTERLACE_TYPE_PROGRESSIVE" : 0;
4807
4762
  }
4808
4763
  if (message.userId != null && message.hasOwnProperty("userId"))
@@ -4821,8 +4776,6 @@ var sesame = $root.sesame = (() => {
4821
4776
  object.mipMap = message.mipMap;
4822
4777
  if (message.textureSize != null && message.hasOwnProperty("textureSize"))
4823
4778
  object.textureSize = options.enums === String ? $root.sesame.v1.sources.SourceTextureSize[message.textureSize] === void 0 ? message.textureSize : $root.sesame.v1.sources.SourceTextureSize[message.textureSize] : message.textureSize;
4824
- if (message.decoderType != null && message.hasOwnProperty("decoderType"))
4825
- object.decoderType = options.enums === String ? $root.sesame.v1.sources.DecoderType[message.decoderType] === void 0 ? message.decoderType : $root.sesame.v1.sources.DecoderType[message.decoderType] : message.decoderType;
4826
4779
  if (message.deinterlace != null && message.hasOwnProperty("deinterlace"))
4827
4780
  object.deinterlace = options.enums === String ? $root.sesame.v1.sources.DeinterlaceType[message.deinterlace] === void 0 ? message.deinterlace : $root.sesame.v1.sources.DeinterlaceType[message.deinterlace] : message.deinterlace;
4828
4781
  if (message.videoProcessors && message.videoProcessors.length) {
@@ -4940,6 +4893,7 @@ var sesame = $root.sesame = (() => {
4940
4893
  }
4941
4894
  }
4942
4895
  RecorderSourceConfig.prototype.recorderId = "";
4896
+ RecorderSourceConfig.prototype.decoderType = 0;
4943
4897
  RecorderSourceConfig.create = function create(properties) {
4944
4898
  return new RecorderSourceConfig(properties);
4945
4899
  };
@@ -4951,6 +4905,11 @@ var sesame = $root.sesame = (() => {
4951
4905
  /* id 1, wireType 2 =*/
4952
4906
  10
4953
4907
  ).string(message.recorderId);
4908
+ if (message.decoderType != null && Object.hasOwnProperty.call(message, "decoderType"))
4909
+ writer.uint32(
4910
+ /* id 2, wireType 0 =*/
4911
+ 16
4912
+ ).int32(message.decoderType);
4954
4913
  return writer;
4955
4914
  };
4956
4915
  RecorderSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -4969,6 +4928,10 @@ var sesame = $root.sesame = (() => {
4969
4928
  message.recorderId = reader.string();
4970
4929
  break;
4971
4930
  }
4931
+ case 2: {
4932
+ message.decoderType = reader.int32();
4933
+ break;
4934
+ }
4972
4935
  default:
4973
4936
  reader.skipType(tag & 7);
4974
4937
  break;
@@ -4988,6 +4951,16 @@ var sesame = $root.sesame = (() => {
4988
4951
  if (!$util.isString(message.recorderId))
4989
4952
  return "recorderId: string expected";
4990
4953
  }
4954
+ if (message.decoderType != null && message.hasOwnProperty("decoderType"))
4955
+ switch (message.decoderType) {
4956
+ default:
4957
+ return "decoderType: enum value expected";
4958
+ case 0:
4959
+ case 1:
4960
+ case 2:
4961
+ case 3:
4962
+ break;
4963
+ }
4991
4964
  return null;
4992
4965
  };
4993
4966
  RecorderSourceConfig.fromObject = function fromObject(object) {
@@ -4996,16 +4969,44 @@ var sesame = $root.sesame = (() => {
4996
4969
  let message = new $root.sesame.v1.sources.RecorderSourceConfig();
4997
4970
  if (object.recorderId != null)
4998
4971
  message.recorderId = String(object.recorderId);
4972
+ switch (object.decoderType) {
4973
+ default:
4974
+ if (typeof object.decoderType === "number") {
4975
+ message.decoderType = object.decoderType;
4976
+ break;
4977
+ }
4978
+ break;
4979
+ case "DECODER_TYPE_UNSPECIFIED":
4980
+ case 0:
4981
+ message.decoderType = 0;
4982
+ break;
4983
+ case "DECODER_TYPE_H264":
4984
+ case 1:
4985
+ message.decoderType = 1;
4986
+ break;
4987
+ case "DECODER_TYPE_HEVC":
4988
+ case 2:
4989
+ message.decoderType = 2;
4990
+ break;
4991
+ case "DECODER_TYPE_AV1":
4992
+ case 3:
4993
+ message.decoderType = 3;
4994
+ break;
4995
+ }
4999
4996
  return message;
5000
4997
  };
5001
4998
  RecorderSourceConfig.toObject = function toObject(message, options) {
5002
4999
  if (!options)
5003
5000
  options = {};
5004
5001
  let object = {};
5005
- if (options.defaults)
5002
+ if (options.defaults) {
5006
5003
  object.recorderId = "";
5004
+ object.decoderType = options.enums === String ? "DECODER_TYPE_UNSPECIFIED" : 0;
5005
+ }
5007
5006
  if (message.recorderId != null && message.hasOwnProperty("recorderId"))
5008
5007
  object.recorderId = message.recorderId;
5008
+ if (message.decoderType != null && message.hasOwnProperty("decoderType"))
5009
+ object.decoderType = options.enums === String ? $root.sesame.v1.sources.DecoderType[message.decoderType] === void 0 ? message.decoderType : $root.sesame.v1.sources.DecoderType[message.decoderType] : message.decoderType;
5009
5010
  return object;
5010
5011
  };
5011
5012
  RecorderSourceConfig.prototype.toJSON = function toJSON() {
@@ -14165,6 +14166,9 @@ var sesame = $root.sesame = (() => {
14165
14166
  EncoderConfig.prototype.preset = 0;
14166
14167
  EncoderConfig.prototype.bitrateKbps = 0;
14167
14168
  EncoderConfig.prototype.keyframeInterval = 0;
14169
+ EncoderConfig.prototype.width = 0;
14170
+ EncoderConfig.prototype.height = 0;
14171
+ EncoderConfig.prototype.fps = 0;
14168
14172
  EncoderConfig.create = function create(properties) {
14169
14173
  return new EncoderConfig(properties);
14170
14174
  };
@@ -14191,6 +14195,21 @@ var sesame = $root.sesame = (() => {
14191
14195
  /* id 4, wireType 0 =*/
14192
14196
  32
14193
14197
  ).uint32(message.keyframeInterval);
14198
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
14199
+ writer.uint32(
14200
+ /* id 5, wireType 0 =*/
14201
+ 40
14202
+ ).uint32(message.width);
14203
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
14204
+ writer.uint32(
14205
+ /* id 6, wireType 0 =*/
14206
+ 48
14207
+ ).uint32(message.height);
14208
+ if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
14209
+ writer.uint32(
14210
+ /* id 7, wireType 5 =*/
14211
+ 61
14212
+ ).float(message.fps);
14194
14213
  return writer;
14195
14214
  };
14196
14215
  EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -14221,6 +14240,18 @@ var sesame = $root.sesame = (() => {
14221
14240
  message.keyframeInterval = reader.uint32();
14222
14241
  break;
14223
14242
  }
14243
+ case 5: {
14244
+ message.width = reader.uint32();
14245
+ break;
14246
+ }
14247
+ case 6: {
14248
+ message.height = reader.uint32();
14249
+ break;
14250
+ }
14251
+ case 7: {
14252
+ message.fps = reader.float();
14253
+ break;
14254
+ }
14224
14255
  default:
14225
14256
  reader.skipType(tag & 7);
14226
14257
  break;
@@ -14267,6 +14298,18 @@ var sesame = $root.sesame = (() => {
14267
14298
  if (!$util.isInteger(message.keyframeInterval))
14268
14299
  return "keyframeInterval: integer expected";
14269
14300
  }
14301
+ if (message.width != null && message.hasOwnProperty("width")) {
14302
+ if (!$util.isInteger(message.width))
14303
+ return "width: integer expected";
14304
+ }
14305
+ if (message.height != null && message.hasOwnProperty("height")) {
14306
+ if (!$util.isInteger(message.height))
14307
+ return "height: integer expected";
14308
+ }
14309
+ if (message.fps != null && message.hasOwnProperty("fps")) {
14310
+ if (typeof message.fps !== "number")
14311
+ return "fps: number expected";
14312
+ }
14270
14313
  return null;
14271
14314
  };
14272
14315
  EncoderConfig.fromObject = function fromObject(object) {
@@ -14337,6 +14380,12 @@ var sesame = $root.sesame = (() => {
14337
14380
  message.bitrateKbps = object.bitrateKbps >>> 0;
14338
14381
  if (object.keyframeInterval != null)
14339
14382
  message.keyframeInterval = object.keyframeInterval >>> 0;
14383
+ if (object.width != null)
14384
+ message.width = object.width >>> 0;
14385
+ if (object.height != null)
14386
+ message.height = object.height >>> 0;
14387
+ if (object.fps != null)
14388
+ message.fps = Number(object.fps);
14340
14389
  return message;
14341
14390
  };
14342
14391
  EncoderConfig.toObject = function toObject(message, options) {
@@ -14348,6 +14397,9 @@ var sesame = $root.sesame = (() => {
14348
14397
  object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
14349
14398
  object.bitrateKbps = 0;
14350
14399
  object.keyframeInterval = 0;
14400
+ object.width = 0;
14401
+ object.height = 0;
14402
+ object.fps = 0;
14351
14403
  }
14352
14404
  if (message.codecId != null && message.hasOwnProperty("codecId"))
14353
14405
  object.codecId = options.enums === String ? $root.sesame.v1.common.CodecId[message.codecId] === void 0 ? message.codecId : $root.sesame.v1.common.CodecId[message.codecId] : message.codecId;
@@ -14357,168 +14409,24 @@ var sesame = $root.sesame = (() => {
14357
14409
  object.bitrateKbps = message.bitrateKbps;
14358
14410
  if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
14359
14411
  object.keyframeInterval = message.keyframeInterval;
14360
- return object;
14361
- };
14362
- EncoderConfig.prototype.toJSON = function toJSON() {
14363
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14364
- };
14365
- EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14366
- if (typeUrlPrefix === void 0) {
14367
- typeUrlPrefix = "type.googleapis.com";
14368
- }
14369
- return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
14370
- };
14371
- return EncoderConfig;
14372
- }();
14373
- outputs.OutputEncodedConfig = function() {
14374
- function OutputEncodedConfig(properties) {
14375
- if (properties) {
14376
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14377
- if (properties[keys[i]] != null)
14378
- this[keys[i]] = properties[keys[i]];
14379
- }
14380
- }
14381
- OutputEncodedConfig.prototype.width = 0;
14382
- OutputEncodedConfig.prototype.height = 0;
14383
- OutputEncodedConfig.prototype.fps = 0;
14384
- OutputEncodedConfig.prototype.encoderConfig = null;
14385
- OutputEncodedConfig.create = function create(properties) {
14386
- return new OutputEncodedConfig(properties);
14387
- };
14388
- OutputEncodedConfig.encode = function encode(message, writer) {
14389
- if (!writer)
14390
- writer = $Writer.create();
14391
- if (message.width != null && Object.hasOwnProperty.call(message, "width"))
14392
- writer.uint32(
14393
- /* id 1, wireType 0 =*/
14394
- 8
14395
- ).uint32(message.width);
14396
- if (message.height != null && Object.hasOwnProperty.call(message, "height"))
14397
- writer.uint32(
14398
- /* id 2, wireType 0 =*/
14399
- 16
14400
- ).uint32(message.height);
14401
- if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
14402
- writer.uint32(
14403
- /* id 3, wireType 5 =*/
14404
- 29
14405
- ).float(message.fps);
14406
- if (message.encoderConfig != null && Object.hasOwnProperty.call(message, "encoderConfig"))
14407
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoderConfig, writer.uint32(
14408
- /* id 4, wireType 2 =*/
14409
- 34
14410
- ).fork()).ldelim();
14411
- return writer;
14412
- };
14413
- OutputEncodedConfig.encodeDelimited = function encodeDelimited(message, writer) {
14414
- return this.encode(message, writer).ldelim();
14415
- };
14416
- OutputEncodedConfig.decode = function decode(reader, length, error) {
14417
- if (!(reader instanceof $Reader))
14418
- reader = $Reader.create(reader);
14419
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.OutputEncodedConfig();
14420
- while (reader.pos < end) {
14421
- let tag = reader.uint32();
14422
- if (tag === error)
14423
- break;
14424
- switch (tag >>> 3) {
14425
- case 1: {
14426
- message.width = reader.uint32();
14427
- break;
14428
- }
14429
- case 2: {
14430
- message.height = reader.uint32();
14431
- break;
14432
- }
14433
- case 3: {
14434
- message.fps = reader.float();
14435
- break;
14436
- }
14437
- case 4: {
14438
- message.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
14439
- break;
14440
- }
14441
- default:
14442
- reader.skipType(tag & 7);
14443
- break;
14444
- }
14445
- }
14446
- return message;
14447
- };
14448
- OutputEncodedConfig.decodeDelimited = function decodeDelimited(reader) {
14449
- if (!(reader instanceof $Reader))
14450
- reader = new $Reader(reader);
14451
- return this.decode(reader, reader.uint32());
14452
- };
14453
- OutputEncodedConfig.verify = function verify(message) {
14454
- if (typeof message !== "object" || message === null)
14455
- return "object expected";
14456
- if (message.width != null && message.hasOwnProperty("width")) {
14457
- if (!$util.isInteger(message.width))
14458
- return "width: integer expected";
14459
- }
14460
- if (message.height != null && message.hasOwnProperty("height")) {
14461
- if (!$util.isInteger(message.height))
14462
- return "height: integer expected";
14463
- }
14464
- if (message.fps != null && message.hasOwnProperty("fps")) {
14465
- if (typeof message.fps !== "number")
14466
- return "fps: number expected";
14467
- }
14468
- if (message.encoderConfig != null && message.hasOwnProperty("encoderConfig")) {
14469
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoderConfig);
14470
- if (error)
14471
- return "encoderConfig." + error;
14472
- }
14473
- return null;
14474
- };
14475
- OutputEncodedConfig.fromObject = function fromObject(object) {
14476
- if (object instanceof $root.sesame.v1.outputs.OutputEncodedConfig)
14477
- return object;
14478
- let message = new $root.sesame.v1.outputs.OutputEncodedConfig();
14479
- if (object.width != null)
14480
- message.width = object.width >>> 0;
14481
- if (object.height != null)
14482
- message.height = object.height >>> 0;
14483
- if (object.fps != null)
14484
- message.fps = Number(object.fps);
14485
- if (object.encoderConfig != null) {
14486
- if (typeof object.encoderConfig !== "object")
14487
- throw TypeError(".sesame.v1.outputs.OutputEncodedConfig.encoderConfig: object expected");
14488
- message.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoderConfig);
14489
- }
14490
- return message;
14491
- };
14492
- OutputEncodedConfig.toObject = function toObject(message, options) {
14493
- if (!options)
14494
- options = {};
14495
- let object = {};
14496
- if (options.defaults) {
14497
- object.width = 0;
14498
- object.height = 0;
14499
- object.fps = 0;
14500
- object.encoderConfig = null;
14501
- }
14502
14412
  if (message.width != null && message.hasOwnProperty("width"))
14503
14413
  object.width = message.width;
14504
14414
  if (message.height != null && message.hasOwnProperty("height"))
14505
14415
  object.height = message.height;
14506
14416
  if (message.fps != null && message.hasOwnProperty("fps"))
14507
14417
  object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
14508
- if (message.encoderConfig != null && message.hasOwnProperty("encoderConfig"))
14509
- object.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoderConfig, options);
14510
14418
  return object;
14511
14419
  };
14512
- OutputEncodedConfig.prototype.toJSON = function toJSON() {
14420
+ EncoderConfig.prototype.toJSON = function toJSON() {
14513
14421
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14514
14422
  };
14515
- OutputEncodedConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14423
+ EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14516
14424
  if (typeUrlPrefix === void 0) {
14517
14425
  typeUrlPrefix = "type.googleapis.com";
14518
14426
  }
14519
- return typeUrlPrefix + "/sesame.v1.outputs.OutputEncodedConfig";
14427
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
14520
14428
  };
14521
- return OutputEncodedConfig;
14429
+ return EncoderConfig;
14522
14430
  }();
14523
14431
  outputs.DecklinkOutputConfig = function() {
14524
14432
  function DecklinkOutputConfig(properties) {
@@ -14689,7 +14597,7 @@ var sesame = $root.sesame = (() => {
14689
14597
  }
14690
14598
  }
14691
14599
  EncodedWebSocketOutputConfig.prototype.channel = "";
14692
- EncodedWebSocketOutputConfig.prototype.encoded = null;
14600
+ EncodedWebSocketOutputConfig.prototype.encoder = null;
14693
14601
  EncodedWebSocketOutputConfig.create = function create(properties) {
14694
14602
  return new EncodedWebSocketOutputConfig(properties);
14695
14603
  };
@@ -14701,8 +14609,8 @@ var sesame = $root.sesame = (() => {
14701
14609
  /* id 1, wireType 2 =*/
14702
14610
  10
14703
14611
  ).string(message.channel);
14704
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
14705
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
14612
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
14613
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
14706
14614
  /* id 2, wireType 2 =*/
14707
14615
  18
14708
14616
  ).fork()).ldelim();
@@ -14725,7 +14633,7 @@ var sesame = $root.sesame = (() => {
14725
14633
  break;
14726
14634
  }
14727
14635
  case 2: {
14728
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
14636
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
14729
14637
  break;
14730
14638
  }
14731
14639
  default:
@@ -14747,10 +14655,10 @@ var sesame = $root.sesame = (() => {
14747
14655
  if (!$util.isString(message.channel))
14748
14656
  return "channel: string expected";
14749
14657
  }
14750
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
14751
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
14658
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
14659
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
14752
14660
  if (error)
14753
- return "encoded." + error;
14661
+ return "encoder." + error;
14754
14662
  }
14755
14663
  return null;
14756
14664
  };
@@ -14760,10 +14668,10 @@ var sesame = $root.sesame = (() => {
14760
14668
  let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
14761
14669
  if (object.channel != null)
14762
14670
  message.channel = String(object.channel);
14763
- if (object.encoded != null) {
14764
- if (typeof object.encoded !== "object")
14765
- throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoded: object expected");
14766
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
14671
+ if (object.encoder != null) {
14672
+ if (typeof object.encoder !== "object")
14673
+ throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoder: object expected");
14674
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
14767
14675
  }
14768
14676
  return message;
14769
14677
  };
@@ -14773,12 +14681,12 @@ var sesame = $root.sesame = (() => {
14773
14681
  let object = {};
14774
14682
  if (options.defaults) {
14775
14683
  object.channel = "";
14776
- object.encoded = null;
14684
+ object.encoder = null;
14777
14685
  }
14778
14686
  if (message.channel != null && message.hasOwnProperty("channel"))
14779
14687
  object.channel = message.channel;
14780
- if (message.encoded != null && message.hasOwnProperty("encoded"))
14781
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
14688
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
14689
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
14782
14690
  return object;
14783
14691
  };
14784
14692
  EncodedWebSocketOutputConfig.prototype.toJSON = function toJSON() {
@@ -14800,7 +14708,7 @@ var sesame = $root.sesame = (() => {
14800
14708
  this[keys[i]] = properties[keys[i]];
14801
14709
  }
14802
14710
  }
14803
- EncodedRecorderOutputConfig.prototype.encoded = null;
14711
+ EncodedRecorderOutputConfig.prototype.encoder = null;
14804
14712
  EncodedRecorderOutputConfig.prototype.filename = "";
14805
14713
  EncodedRecorderOutputConfig.prototype.sizeGb = 0;
14806
14714
  EncodedRecorderOutputConfig.prototype.groupId = "";
@@ -14811,8 +14719,8 @@ var sesame = $root.sesame = (() => {
14811
14719
  EncodedRecorderOutputConfig.encode = function encode(message, writer) {
14812
14720
  if (!writer)
14813
14721
  writer = $Writer.create();
14814
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
14815
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
14722
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
14723
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
14816
14724
  /* id 1, wireType 2 =*/
14817
14725
  10
14818
14726
  ).fork()).ldelim();
@@ -14851,7 +14759,7 @@ var sesame = $root.sesame = (() => {
14851
14759
  break;
14852
14760
  switch (tag >>> 3) {
14853
14761
  case 1: {
14854
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
14762
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
14855
14763
  break;
14856
14764
  }
14857
14765
  case 2: {
@@ -14885,10 +14793,10 @@ var sesame = $root.sesame = (() => {
14885
14793
  EncodedRecorderOutputConfig.verify = function verify(message) {
14886
14794
  if (typeof message !== "object" || message === null)
14887
14795
  return "object expected";
14888
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
14889
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
14796
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
14797
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
14890
14798
  if (error)
14891
- return "encoded." + error;
14799
+ return "encoder." + error;
14892
14800
  }
14893
14801
  if (message.filename != null && message.hasOwnProperty("filename")) {
14894
14802
  if (!$util.isString(message.filename))
@@ -14917,10 +14825,10 @@ var sesame = $root.sesame = (() => {
14917
14825
  if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
14918
14826
  return object;
14919
14827
  let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
14920
- if (object.encoded != null) {
14921
- if (typeof object.encoded !== "object")
14922
- throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoded: object expected");
14923
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
14828
+ if (object.encoder != null) {
14829
+ if (typeof object.encoder !== "object")
14830
+ throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
14831
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
14924
14832
  }
14925
14833
  if (object.filename != null)
14926
14834
  message.filename = String(object.filename);
@@ -14955,14 +14863,14 @@ var sesame = $root.sesame = (() => {
14955
14863
  options = {};
14956
14864
  let object = {};
14957
14865
  if (options.defaults) {
14958
- object.encoded = null;
14866
+ object.encoder = null;
14959
14867
  object.filename = "";
14960
14868
  object.sizeGb = 0;
14961
14869
  object.groupId = "";
14962
14870
  object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
14963
14871
  }
14964
- if (message.encoded != null && message.hasOwnProperty("encoded"))
14965
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
14872
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
14873
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
14966
14874
  if (message.filename != null && message.hasOwnProperty("filename"))
14967
14875
  object.filename = message.filename;
14968
14876
  if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
@@ -14994,7 +14902,7 @@ var sesame = $root.sesame = (() => {
14994
14902
  this[keys[i]] = properties[keys[i]];
14995
14903
  }
14996
14904
  }
14997
- EncodedSuperSlowMoRecorderOutputConfig.prototype.encoded = null;
14905
+ EncodedSuperSlowMoRecorderOutputConfig.prototype.encoder = null;
14998
14906
  EncodedSuperSlowMoRecorderOutputConfig.prototype.filename = "";
14999
14907
  EncodedSuperSlowMoRecorderOutputConfig.prototype.sizeGb = 0;
15000
14908
  EncodedSuperSlowMoRecorderOutputConfig.prototype.groupId = "";
@@ -15007,8 +14915,8 @@ var sesame = $root.sesame = (() => {
15007
14915
  EncodedSuperSlowMoRecorderOutputConfig.encode = function encode(message, writer) {
15008
14916
  if (!writer)
15009
14917
  writer = $Writer.create();
15010
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
15011
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
14918
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
14919
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
15012
14920
  /* id 1, wireType 2 =*/
15013
14921
  10
15014
14922
  ).fork()).ldelim();
@@ -15059,7 +14967,7 @@ var sesame = $root.sesame = (() => {
15059
14967
  break;
15060
14968
  switch (tag >>> 3) {
15061
14969
  case 1: {
15062
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
14970
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
15063
14971
  break;
15064
14972
  }
15065
14973
  case 2: {
@@ -15105,10 +15013,10 @@ var sesame = $root.sesame = (() => {
15105
15013
  EncodedSuperSlowMoRecorderOutputConfig.verify = function verify(message) {
15106
15014
  if (typeof message !== "object" || message === null)
15107
15015
  return "object expected";
15108
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
15109
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
15016
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
15017
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
15110
15018
  if (error)
15111
- return "encoded." + error;
15019
+ return "encoder." + error;
15112
15020
  }
15113
15021
  if (message.filename != null && message.hasOwnProperty("filename")) {
15114
15022
  if (!$util.isString(message.filename))
@@ -15151,10 +15059,10 @@ var sesame = $root.sesame = (() => {
15151
15059
  if (object instanceof $root.sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig)
15152
15060
  return object;
15153
15061
  let message = new $root.sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig();
15154
- if (object.encoded != null) {
15155
- if (typeof object.encoded !== "object")
15156
- throw TypeError(".sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig.encoded: object expected");
15157
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
15062
+ if (object.encoder != null) {
15063
+ if (typeof object.encoder !== "object")
15064
+ throw TypeError(".sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig.encoder: object expected");
15065
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
15158
15066
  }
15159
15067
  if (object.filename != null)
15160
15068
  message.filename = String(object.filename);
@@ -15207,14 +15115,14 @@ var sesame = $root.sesame = (() => {
15207
15115
  object.sourceIds = [];
15208
15116
  }
15209
15117
  if (options.defaults) {
15210
- object.encoded = null;
15118
+ object.encoder = null;
15211
15119
  object.filename = "";
15212
15120
  object.sizeGb = 0;
15213
15121
  object.groupId = "";
15214
15122
  object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
15215
15123
  }
15216
- if (message.encoded != null && message.hasOwnProperty("encoded"))
15217
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
15124
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
15125
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
15218
15126
  if (message.filename != null && message.hasOwnProperty("filename"))
15219
15127
  object.filename = message.filename;
15220
15128
  if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
@@ -15255,7 +15163,7 @@ var sesame = $root.sesame = (() => {
15255
15163
  }
15256
15164
  }
15257
15165
  EncodedSrtOutputConfig.prototype.url = "";
15258
- EncodedSrtOutputConfig.prototype.encoded = null;
15166
+ EncodedSrtOutputConfig.prototype.encoder = null;
15259
15167
  EncodedSrtOutputConfig.create = function create(properties) {
15260
15168
  return new EncodedSrtOutputConfig(properties);
15261
15169
  };
@@ -15267,8 +15175,8 @@ var sesame = $root.sesame = (() => {
15267
15175
  /* id 1, wireType 2 =*/
15268
15176
  10
15269
15177
  ).string(message.url);
15270
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
15271
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
15178
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
15179
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
15272
15180
  /* id 2, wireType 2 =*/
15273
15181
  18
15274
15182
  ).fork()).ldelim();
@@ -15291,7 +15199,7 @@ var sesame = $root.sesame = (() => {
15291
15199
  break;
15292
15200
  }
15293
15201
  case 2: {
15294
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
15202
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
15295
15203
  break;
15296
15204
  }
15297
15205
  default:
@@ -15313,10 +15221,10 @@ var sesame = $root.sesame = (() => {
15313
15221
  if (!$util.isString(message.url))
15314
15222
  return "url: string expected";
15315
15223
  }
15316
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
15317
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
15224
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
15225
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
15318
15226
  if (error)
15319
- return "encoded." + error;
15227
+ return "encoder." + error;
15320
15228
  }
15321
15229
  return null;
15322
15230
  };
@@ -15326,10 +15234,10 @@ var sesame = $root.sesame = (() => {
15326
15234
  let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
15327
15235
  if (object.url != null)
15328
15236
  message.url = String(object.url);
15329
- if (object.encoded != null) {
15330
- if (typeof object.encoded !== "object")
15331
- throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoded: object expected");
15332
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
15237
+ if (object.encoder != null) {
15238
+ if (typeof object.encoder !== "object")
15239
+ throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
15240
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
15333
15241
  }
15334
15242
  return message;
15335
15243
  };
@@ -15339,12 +15247,12 @@ var sesame = $root.sesame = (() => {
15339
15247
  let object = {};
15340
15248
  if (options.defaults) {
15341
15249
  object.url = "";
15342
- object.encoded = null;
15250
+ object.encoder = null;
15343
15251
  }
15344
15252
  if (message.url != null && message.hasOwnProperty("url"))
15345
15253
  object.url = message.url;
15346
- if (message.encoded != null && message.hasOwnProperty("encoded"))
15347
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
15254
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
15255
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
15348
15256
  return object;
15349
15257
  };
15350
15258
  EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
@@ -15366,7 +15274,7 @@ var sesame = $root.sesame = (() => {
15366
15274
  this[keys[i]] = properties[keys[i]];
15367
15275
  }
15368
15276
  }
15369
- EncodedMoqOutputConfig.prototype.encoded = null;
15277
+ EncodedMoqOutputConfig.prototype.encoder = null;
15370
15278
  EncodedMoqOutputConfig.prototype.url = "";
15371
15279
  EncodedMoqOutputConfig.prototype.broadcast = "";
15372
15280
  EncodedMoqOutputConfig.prototype.key = "";
@@ -15376,8 +15284,8 @@ var sesame = $root.sesame = (() => {
15376
15284
  EncodedMoqOutputConfig.encode = function encode(message, writer) {
15377
15285
  if (!writer)
15378
15286
  writer = $Writer.create();
15379
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
15380
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
15287
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
15288
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
15381
15289
  /* id 1, wireType 2 =*/
15382
15290
  10
15383
15291
  ).fork()).ldelim();
@@ -15411,7 +15319,7 @@ var sesame = $root.sesame = (() => {
15411
15319
  break;
15412
15320
  switch (tag >>> 3) {
15413
15321
  case 1: {
15414
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
15322
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
15415
15323
  break;
15416
15324
  }
15417
15325
  case 2: {
@@ -15441,10 +15349,10 @@ var sesame = $root.sesame = (() => {
15441
15349
  EncodedMoqOutputConfig.verify = function verify(message) {
15442
15350
  if (typeof message !== "object" || message === null)
15443
15351
  return "object expected";
15444
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
15445
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
15352
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
15353
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
15446
15354
  if (error)
15447
- return "encoded." + error;
15355
+ return "encoder." + error;
15448
15356
  }
15449
15357
  if (message.url != null && message.hasOwnProperty("url")) {
15450
15358
  if (!$util.isString(message.url))
@@ -15464,10 +15372,10 @@ var sesame = $root.sesame = (() => {
15464
15372
  if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
15465
15373
  return object;
15466
15374
  let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
15467
- if (object.encoded != null) {
15468
- if (typeof object.encoded !== "object")
15469
- throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoded: object expected");
15470
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
15375
+ if (object.encoder != null) {
15376
+ if (typeof object.encoder !== "object")
15377
+ throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
15378
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
15471
15379
  }
15472
15380
  if (object.url != null)
15473
15381
  message.url = String(object.url);
@@ -15482,13 +15390,13 @@ var sesame = $root.sesame = (() => {
15482
15390
  options = {};
15483
15391
  let object = {};
15484
15392
  if (options.defaults) {
15485
- object.encoded = null;
15393
+ object.encoder = null;
15486
15394
  object.url = "";
15487
15395
  object.broadcast = "";
15488
15396
  object.key = "";
15489
15397
  }
15490
- if (message.encoded != null && message.hasOwnProperty("encoded"))
15491
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
15398
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
15399
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
15492
15400
  if (message.url != null && message.hasOwnProperty("url"))
15493
15401
  object.url = message.url;
15494
15402
  if (message.broadcast != null && message.hasOwnProperty("broadcast"))