@stinkycomputing/sesame-api-client 1.4.1-alpha.1 → 1.4.1-alpha.11

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.cjs CHANGED
@@ -4492,7 +4492,6 @@ var sesame = $root.sesame = (() => {
4492
4492
  SourceCommonConfig.prototype.playState = 0;
4493
4493
  SourceCommonConfig.prototype.mipMap = false;
4494
4494
  SourceCommonConfig.prototype.textureSize = 0;
4495
- SourceCommonConfig.prototype.decoderType = 0;
4496
4495
  SourceCommonConfig.prototype.deinterlace = 0;
4497
4496
  SourceCommonConfig.prototype.videoProcessors = $util.emptyArray;
4498
4497
  SourceCommonConfig.create = function create(properties) {
@@ -4541,11 +4540,6 @@ var sesame = $root.sesame = (() => {
4541
4540
  /* id 8, wireType 0 =*/
4542
4541
  64
4543
4542
  ).int32(message.textureSize);
4544
- if (message.decoderType != null && Object.hasOwnProperty.call(message, "decoderType"))
4545
- writer.uint32(
4546
- /* id 9, wireType 0 =*/
4547
- 72
4548
- ).int32(message.decoderType);
4549
4543
  if (message.deinterlace != null && Object.hasOwnProperty.call(message, "deinterlace"))
4550
4544
  writer.uint32(
4551
4545
  /* id 10, wireType 0 =*/
@@ -4603,10 +4597,6 @@ var sesame = $root.sesame = (() => {
4603
4597
  message.textureSize = reader.int32();
4604
4598
  break;
4605
4599
  }
4606
- case 9: {
4607
- message.decoderType = reader.int32();
4608
- break;
4609
- }
4610
4600
  case 10: {
4611
4601
  message.deinterlace = reader.int32();
4612
4602
  break;
@@ -4676,16 +4666,6 @@ var sesame = $root.sesame = (() => {
4676
4666
  case 2:
4677
4667
  break;
4678
4668
  }
4679
- if (message.decoderType != null && message.hasOwnProperty("decoderType"))
4680
- switch (message.decoderType) {
4681
- default:
4682
- return "decoderType: enum value expected";
4683
- case 0:
4684
- case 1:
4685
- case 2:
4686
- case 3:
4687
- break;
4688
- }
4689
4669
  if (message.deinterlace != null && message.hasOwnProperty("deinterlace"))
4690
4670
  switch (message.deinterlace) {
4691
4671
  default:
@@ -4771,30 +4751,6 @@ var sesame = $root.sesame = (() => {
4771
4751
  message.textureSize = 2;
4772
4752
  break;
4773
4753
  }
4774
- switch (object.decoderType) {
4775
- default:
4776
- if (typeof object.decoderType === "number") {
4777
- message.decoderType = object.decoderType;
4778
- break;
4779
- }
4780
- break;
4781
- case "DECODER_TYPE_UNSPECIFIED":
4782
- case 0:
4783
- message.decoderType = 0;
4784
- break;
4785
- case "DECODER_TYPE_H264":
4786
- case 1:
4787
- message.decoderType = 1;
4788
- break;
4789
- case "DECODER_TYPE_HEVC":
4790
- case 2:
4791
- message.decoderType = 2;
4792
- break;
4793
- case "DECODER_TYPE_AV1":
4794
- case 3:
4795
- message.decoderType = 3;
4796
- break;
4797
- }
4798
4754
  switch (object.deinterlace) {
4799
4755
  default:
4800
4756
  if (typeof object.deinterlace === "number") {
@@ -4846,7 +4802,6 @@ var sesame = $root.sesame = (() => {
4846
4802
  object.playState = options.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0;
4847
4803
  object.mipMap = false;
4848
4804
  object.textureSize = options.enums === String ? "SOURCE_TEXTURE_SIZE_UNSPECIFIED" : 0;
4849
- object.decoderType = options.enums === String ? "DECODER_TYPE_UNSPECIFIED" : 0;
4850
4805
  object.deinterlace = options.enums === String ? "DEINTERLACE_TYPE_PROGRESSIVE" : 0;
4851
4806
  }
4852
4807
  if (message.userId != null && message.hasOwnProperty("userId"))
@@ -4865,8 +4820,6 @@ var sesame = $root.sesame = (() => {
4865
4820
  object.mipMap = message.mipMap;
4866
4821
  if (message.textureSize != null && message.hasOwnProperty("textureSize"))
4867
4822
  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;
4868
- if (message.decoderType != null && message.hasOwnProperty("decoderType"))
4869
- 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;
4870
4823
  if (message.deinterlace != null && message.hasOwnProperty("deinterlace"))
4871
4824
  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;
4872
4825
  if (message.videoProcessors && message.videoProcessors.length) {
@@ -4984,6 +4937,7 @@ var sesame = $root.sesame = (() => {
4984
4937
  }
4985
4938
  }
4986
4939
  RecorderSourceConfig.prototype.recorderId = "";
4940
+ RecorderSourceConfig.prototype.decoderType = 0;
4987
4941
  RecorderSourceConfig.create = function create(properties) {
4988
4942
  return new RecorderSourceConfig(properties);
4989
4943
  };
@@ -4995,6 +4949,11 @@ var sesame = $root.sesame = (() => {
4995
4949
  /* id 1, wireType 2 =*/
4996
4950
  10
4997
4951
  ).string(message.recorderId);
4952
+ if (message.decoderType != null && Object.hasOwnProperty.call(message, "decoderType"))
4953
+ writer.uint32(
4954
+ /* id 2, wireType 0 =*/
4955
+ 16
4956
+ ).int32(message.decoderType);
4998
4957
  return writer;
4999
4958
  };
5000
4959
  RecorderSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -5013,6 +4972,10 @@ var sesame = $root.sesame = (() => {
5013
4972
  message.recorderId = reader.string();
5014
4973
  break;
5015
4974
  }
4975
+ case 2: {
4976
+ message.decoderType = reader.int32();
4977
+ break;
4978
+ }
5016
4979
  default:
5017
4980
  reader.skipType(tag & 7);
5018
4981
  break;
@@ -5032,6 +4995,16 @@ var sesame = $root.sesame = (() => {
5032
4995
  if (!$util.isString(message.recorderId))
5033
4996
  return "recorderId: string expected";
5034
4997
  }
4998
+ if (message.decoderType != null && message.hasOwnProperty("decoderType"))
4999
+ switch (message.decoderType) {
5000
+ default:
5001
+ return "decoderType: enum value expected";
5002
+ case 0:
5003
+ case 1:
5004
+ case 2:
5005
+ case 3:
5006
+ break;
5007
+ }
5035
5008
  return null;
5036
5009
  };
5037
5010
  RecorderSourceConfig.fromObject = function fromObject(object) {
@@ -5040,16 +5013,44 @@ var sesame = $root.sesame = (() => {
5040
5013
  let message = new $root.sesame.v1.sources.RecorderSourceConfig();
5041
5014
  if (object.recorderId != null)
5042
5015
  message.recorderId = String(object.recorderId);
5016
+ switch (object.decoderType) {
5017
+ default:
5018
+ if (typeof object.decoderType === "number") {
5019
+ message.decoderType = object.decoderType;
5020
+ break;
5021
+ }
5022
+ break;
5023
+ case "DECODER_TYPE_UNSPECIFIED":
5024
+ case 0:
5025
+ message.decoderType = 0;
5026
+ break;
5027
+ case "DECODER_TYPE_H264":
5028
+ case 1:
5029
+ message.decoderType = 1;
5030
+ break;
5031
+ case "DECODER_TYPE_HEVC":
5032
+ case 2:
5033
+ message.decoderType = 2;
5034
+ break;
5035
+ case "DECODER_TYPE_AV1":
5036
+ case 3:
5037
+ message.decoderType = 3;
5038
+ break;
5039
+ }
5043
5040
  return message;
5044
5041
  };
5045
5042
  RecorderSourceConfig.toObject = function toObject(message, options) {
5046
5043
  if (!options)
5047
5044
  options = {};
5048
5045
  let object = {};
5049
- if (options.defaults)
5046
+ if (options.defaults) {
5050
5047
  object.recorderId = "";
5048
+ object.decoderType = options.enums === String ? "DECODER_TYPE_UNSPECIFIED" : 0;
5049
+ }
5051
5050
  if (message.recorderId != null && message.hasOwnProperty("recorderId"))
5052
5051
  object.recorderId = message.recorderId;
5052
+ if (message.decoderType != null && message.hasOwnProperty("decoderType"))
5053
+ 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;
5053
5054
  return object;
5054
5055
  };
5055
5056
  RecorderSourceConfig.prototype.toJSON = function toJSON() {
@@ -8223,7 +8224,7 @@ var sesame = $root.sesame = (() => {
8223
8224
  RecorderClip.prototype.endTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8224
8225
  RecorderClip.prototype.lockedStartUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8225
8226
  RecorderClip.prototype.lockedEndUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8226
- RecorderClip.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8227
+ RecorderClip.prototype.userTimeMs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8227
8228
  RecorderClip.create = function create(properties) {
8228
8229
  return new RecorderClip(properties);
8229
8230
  };
@@ -8270,11 +8271,11 @@ var sesame = $root.sesame = (() => {
8270
8271
  /* id 8, wireType 0 =*/
8271
8272
  64
8272
8273
  ).int64(message.lockedEndUs);
8273
- if (message.userTimeUs != null && Object.hasOwnProperty.call(message, "userTimeUs"))
8274
+ if (message.userTimeMs != null && Object.hasOwnProperty.call(message, "userTimeMs"))
8274
8275
  writer.uint32(
8275
8276
  /* id 9, wireType 0 =*/
8276
8277
  72
8277
- ).int64(message.userTimeUs);
8278
+ ).int64(message.userTimeMs);
8278
8279
  return writer;
8279
8280
  };
8280
8281
  RecorderClip.encodeDelimited = function encodeDelimited(message, writer) {
@@ -8322,7 +8323,7 @@ var sesame = $root.sesame = (() => {
8322
8323
  break;
8323
8324
  }
8324
8325
  case 9: {
8325
- message.userTimeUs = reader.int64();
8326
+ message.userTimeMs = reader.int64();
8326
8327
  break;
8327
8328
  }
8328
8329
  default:
@@ -8372,9 +8373,9 @@ var sesame = $root.sesame = (() => {
8372
8373
  if (!$util.isInteger(message.lockedEndUs) && !(message.lockedEndUs && $util.isInteger(message.lockedEndUs.low) && $util.isInteger(message.lockedEndUs.high)))
8373
8374
  return "lockedEndUs: integer|Long expected";
8374
8375
  }
8375
- if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs")) {
8376
- if (!$util.isInteger(message.userTimeUs) && !(message.userTimeUs && $util.isInteger(message.userTimeUs.low) && $util.isInteger(message.userTimeUs.high)))
8377
- return "userTimeUs: integer|Long expected";
8376
+ if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs")) {
8377
+ if (!$util.isInteger(message.userTimeMs) && !(message.userTimeMs && $util.isInteger(message.userTimeMs.low) && $util.isInteger(message.userTimeMs.high)))
8378
+ return "userTimeMs: integer|Long expected";
8378
8379
  }
8379
8380
  return null;
8380
8381
  };
@@ -8446,15 +8447,15 @@ var sesame = $root.sesame = (() => {
8446
8447
  else if (typeof object.lockedEndUs === "object")
8447
8448
  message.lockedEndUs = new $util.LongBits(object.lockedEndUs.low >>> 0, object.lockedEndUs.high >>> 0).toNumber();
8448
8449
  }
8449
- if (object.userTimeUs != null) {
8450
+ if (object.userTimeMs != null) {
8450
8451
  if ($util.Long)
8451
- (message.userTimeUs = $util.Long.fromValue(object.userTimeUs)).unsigned = false;
8452
- else if (typeof object.userTimeUs === "string")
8453
- message.userTimeUs = parseInt(object.userTimeUs, 10);
8454
- else if (typeof object.userTimeUs === "number")
8455
- message.userTimeUs = object.userTimeUs;
8456
- else if (typeof object.userTimeUs === "object")
8457
- message.userTimeUs = new $util.LongBits(object.userTimeUs.low >>> 0, object.userTimeUs.high >>> 0).toNumber();
8452
+ (message.userTimeMs = $util.Long.fromValue(object.userTimeMs)).unsigned = false;
8453
+ else if (typeof object.userTimeMs === "string")
8454
+ message.userTimeMs = parseInt(object.userTimeMs, 10);
8455
+ else if (typeof object.userTimeMs === "number")
8456
+ message.userTimeMs = object.userTimeMs;
8457
+ else if (typeof object.userTimeMs === "object")
8458
+ message.userTimeMs = new $util.LongBits(object.userTimeMs.low >>> 0, object.userTimeMs.high >>> 0).toNumber();
8458
8459
  }
8459
8460
  return message;
8460
8461
  };
@@ -8497,9 +8498,9 @@ var sesame = $root.sesame = (() => {
8497
8498
  object.lockedEndUs = options.longs === String ? "0" : 0;
8498
8499
  if ($util.Long) {
8499
8500
  let long = new $util.Long(0, 0, false);
8500
- object.userTimeUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
8501
+ object.userTimeMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
8501
8502
  } else
8502
- object.userTimeUs = options.longs === String ? "0" : 0;
8503
+ object.userTimeMs = options.longs === String ? "0" : 0;
8503
8504
  }
8504
8505
  if (message.id != null && message.hasOwnProperty("id"))
8505
8506
  if (typeof message.id === "number")
@@ -8535,11 +8536,11 @@ var sesame = $root.sesame = (() => {
8535
8536
  object.lockedEndUs = options.longs === String ? String(message.lockedEndUs) : message.lockedEndUs;
8536
8537
  else
8537
8538
  object.lockedEndUs = options.longs === String ? $util.Long.prototype.toString.call(message.lockedEndUs) : options.longs === Number ? new $util.LongBits(message.lockedEndUs.low >>> 0, message.lockedEndUs.high >>> 0).toNumber() : message.lockedEndUs;
8538
- if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs"))
8539
- if (typeof message.userTimeUs === "number")
8540
- object.userTimeUs = options.longs === String ? String(message.userTimeUs) : message.userTimeUs;
8539
+ if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs"))
8540
+ if (typeof message.userTimeMs === "number")
8541
+ object.userTimeMs = options.longs === String ? String(message.userTimeMs) : message.userTimeMs;
8541
8542
  else
8542
- object.userTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeUs) : options.longs === Number ? new $util.LongBits(message.userTimeUs.low >>> 0, message.userTimeUs.high >>> 0).toNumber() : message.userTimeUs;
8543
+ object.userTimeMs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeMs) : options.longs === Number ? new $util.LongBits(message.userTimeMs.low >>> 0, message.userTimeMs.high >>> 0).toNumber() : message.userTimeMs;
8543
8544
  return object;
8544
8545
  };
8545
8546
  RecorderClip.prototype.toJSON = function toJSON() {
@@ -14209,6 +14210,9 @@ var sesame = $root.sesame = (() => {
14209
14210
  EncoderConfig.prototype.preset = 0;
14210
14211
  EncoderConfig.prototype.bitrateKbps = 0;
14211
14212
  EncoderConfig.prototype.keyframeInterval = 0;
14213
+ EncoderConfig.prototype.width = 0;
14214
+ EncoderConfig.prototype.height = 0;
14215
+ EncoderConfig.prototype.fps = 0;
14212
14216
  EncoderConfig.create = function create(properties) {
14213
14217
  return new EncoderConfig(properties);
14214
14218
  };
@@ -14235,6 +14239,21 @@ var sesame = $root.sesame = (() => {
14235
14239
  /* id 4, wireType 0 =*/
14236
14240
  32
14237
14241
  ).uint32(message.keyframeInterval);
14242
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
14243
+ writer.uint32(
14244
+ /* id 5, wireType 0 =*/
14245
+ 40
14246
+ ).uint32(message.width);
14247
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
14248
+ writer.uint32(
14249
+ /* id 6, wireType 0 =*/
14250
+ 48
14251
+ ).uint32(message.height);
14252
+ if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
14253
+ writer.uint32(
14254
+ /* id 7, wireType 5 =*/
14255
+ 61
14256
+ ).float(message.fps);
14238
14257
  return writer;
14239
14258
  };
14240
14259
  EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -14265,6 +14284,18 @@ var sesame = $root.sesame = (() => {
14265
14284
  message.keyframeInterval = reader.uint32();
14266
14285
  break;
14267
14286
  }
14287
+ case 5: {
14288
+ message.width = reader.uint32();
14289
+ break;
14290
+ }
14291
+ case 6: {
14292
+ message.height = reader.uint32();
14293
+ break;
14294
+ }
14295
+ case 7: {
14296
+ message.fps = reader.float();
14297
+ break;
14298
+ }
14268
14299
  default:
14269
14300
  reader.skipType(tag & 7);
14270
14301
  break;
@@ -14311,6 +14342,18 @@ var sesame = $root.sesame = (() => {
14311
14342
  if (!$util.isInteger(message.keyframeInterval))
14312
14343
  return "keyframeInterval: integer expected";
14313
14344
  }
14345
+ if (message.width != null && message.hasOwnProperty("width")) {
14346
+ if (!$util.isInteger(message.width))
14347
+ return "width: integer expected";
14348
+ }
14349
+ if (message.height != null && message.hasOwnProperty("height")) {
14350
+ if (!$util.isInteger(message.height))
14351
+ return "height: integer expected";
14352
+ }
14353
+ if (message.fps != null && message.hasOwnProperty("fps")) {
14354
+ if (typeof message.fps !== "number")
14355
+ return "fps: number expected";
14356
+ }
14314
14357
  return null;
14315
14358
  };
14316
14359
  EncoderConfig.fromObject = function fromObject(object) {
@@ -14381,6 +14424,12 @@ var sesame = $root.sesame = (() => {
14381
14424
  message.bitrateKbps = object.bitrateKbps >>> 0;
14382
14425
  if (object.keyframeInterval != null)
14383
14426
  message.keyframeInterval = object.keyframeInterval >>> 0;
14427
+ if (object.width != null)
14428
+ message.width = object.width >>> 0;
14429
+ if (object.height != null)
14430
+ message.height = object.height >>> 0;
14431
+ if (object.fps != null)
14432
+ message.fps = Number(object.fps);
14384
14433
  return message;
14385
14434
  };
14386
14435
  EncoderConfig.toObject = function toObject(message, options) {
@@ -14392,6 +14441,9 @@ var sesame = $root.sesame = (() => {
14392
14441
  object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
14393
14442
  object.bitrateKbps = 0;
14394
14443
  object.keyframeInterval = 0;
14444
+ object.width = 0;
14445
+ object.height = 0;
14446
+ object.fps = 0;
14395
14447
  }
14396
14448
  if (message.codecId != null && message.hasOwnProperty("codecId"))
14397
14449
  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;
@@ -14401,168 +14453,24 @@ var sesame = $root.sesame = (() => {
14401
14453
  object.bitrateKbps = message.bitrateKbps;
14402
14454
  if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
14403
14455
  object.keyframeInterval = message.keyframeInterval;
14404
- return object;
14405
- };
14406
- EncoderConfig.prototype.toJSON = function toJSON() {
14407
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14408
- };
14409
- EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14410
- if (typeUrlPrefix === void 0) {
14411
- typeUrlPrefix = "type.googleapis.com";
14412
- }
14413
- return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
14414
- };
14415
- return EncoderConfig;
14416
- }();
14417
- outputs.OutputEncodedConfig = function() {
14418
- function OutputEncodedConfig(properties) {
14419
- if (properties) {
14420
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14421
- if (properties[keys[i]] != null)
14422
- this[keys[i]] = properties[keys[i]];
14423
- }
14424
- }
14425
- OutputEncodedConfig.prototype.width = 0;
14426
- OutputEncodedConfig.prototype.height = 0;
14427
- OutputEncodedConfig.prototype.fps = 0;
14428
- OutputEncodedConfig.prototype.encoderConfig = null;
14429
- OutputEncodedConfig.create = function create(properties) {
14430
- return new OutputEncodedConfig(properties);
14431
- };
14432
- OutputEncodedConfig.encode = function encode(message, writer) {
14433
- if (!writer)
14434
- writer = $Writer.create();
14435
- if (message.width != null && Object.hasOwnProperty.call(message, "width"))
14436
- writer.uint32(
14437
- /* id 1, wireType 0 =*/
14438
- 8
14439
- ).uint32(message.width);
14440
- if (message.height != null && Object.hasOwnProperty.call(message, "height"))
14441
- writer.uint32(
14442
- /* id 2, wireType 0 =*/
14443
- 16
14444
- ).uint32(message.height);
14445
- if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
14446
- writer.uint32(
14447
- /* id 3, wireType 5 =*/
14448
- 29
14449
- ).float(message.fps);
14450
- if (message.encoderConfig != null && Object.hasOwnProperty.call(message, "encoderConfig"))
14451
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoderConfig, writer.uint32(
14452
- /* id 4, wireType 2 =*/
14453
- 34
14454
- ).fork()).ldelim();
14455
- return writer;
14456
- };
14457
- OutputEncodedConfig.encodeDelimited = function encodeDelimited(message, writer) {
14458
- return this.encode(message, writer).ldelim();
14459
- };
14460
- OutputEncodedConfig.decode = function decode(reader, length, error) {
14461
- if (!(reader instanceof $Reader))
14462
- reader = $Reader.create(reader);
14463
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.OutputEncodedConfig();
14464
- while (reader.pos < end) {
14465
- let tag = reader.uint32();
14466
- if (tag === error)
14467
- break;
14468
- switch (tag >>> 3) {
14469
- case 1: {
14470
- message.width = reader.uint32();
14471
- break;
14472
- }
14473
- case 2: {
14474
- message.height = reader.uint32();
14475
- break;
14476
- }
14477
- case 3: {
14478
- message.fps = reader.float();
14479
- break;
14480
- }
14481
- case 4: {
14482
- message.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
14483
- break;
14484
- }
14485
- default:
14486
- reader.skipType(tag & 7);
14487
- break;
14488
- }
14489
- }
14490
- return message;
14491
- };
14492
- OutputEncodedConfig.decodeDelimited = function decodeDelimited(reader) {
14493
- if (!(reader instanceof $Reader))
14494
- reader = new $Reader(reader);
14495
- return this.decode(reader, reader.uint32());
14496
- };
14497
- OutputEncodedConfig.verify = function verify(message) {
14498
- if (typeof message !== "object" || message === null)
14499
- return "object expected";
14500
- if (message.width != null && message.hasOwnProperty("width")) {
14501
- if (!$util.isInteger(message.width))
14502
- return "width: integer expected";
14503
- }
14504
- if (message.height != null && message.hasOwnProperty("height")) {
14505
- if (!$util.isInteger(message.height))
14506
- return "height: integer expected";
14507
- }
14508
- if (message.fps != null && message.hasOwnProperty("fps")) {
14509
- if (typeof message.fps !== "number")
14510
- return "fps: number expected";
14511
- }
14512
- if (message.encoderConfig != null && message.hasOwnProperty("encoderConfig")) {
14513
- let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoderConfig);
14514
- if (error)
14515
- return "encoderConfig." + error;
14516
- }
14517
- return null;
14518
- };
14519
- OutputEncodedConfig.fromObject = function fromObject(object) {
14520
- if (object instanceof $root.sesame.v1.outputs.OutputEncodedConfig)
14521
- return object;
14522
- let message = new $root.sesame.v1.outputs.OutputEncodedConfig();
14523
- if (object.width != null)
14524
- message.width = object.width >>> 0;
14525
- if (object.height != null)
14526
- message.height = object.height >>> 0;
14527
- if (object.fps != null)
14528
- message.fps = Number(object.fps);
14529
- if (object.encoderConfig != null) {
14530
- if (typeof object.encoderConfig !== "object")
14531
- throw TypeError(".sesame.v1.outputs.OutputEncodedConfig.encoderConfig: object expected");
14532
- message.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoderConfig);
14533
- }
14534
- return message;
14535
- };
14536
- OutputEncodedConfig.toObject = function toObject(message, options) {
14537
- if (!options)
14538
- options = {};
14539
- let object = {};
14540
- if (options.defaults) {
14541
- object.width = 0;
14542
- object.height = 0;
14543
- object.fps = 0;
14544
- object.encoderConfig = null;
14545
- }
14546
14456
  if (message.width != null && message.hasOwnProperty("width"))
14547
14457
  object.width = message.width;
14548
14458
  if (message.height != null && message.hasOwnProperty("height"))
14549
14459
  object.height = message.height;
14550
14460
  if (message.fps != null && message.hasOwnProperty("fps"))
14551
14461
  object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
14552
- if (message.encoderConfig != null && message.hasOwnProperty("encoderConfig"))
14553
- object.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoderConfig, options);
14554
14462
  return object;
14555
14463
  };
14556
- OutputEncodedConfig.prototype.toJSON = function toJSON() {
14464
+ EncoderConfig.prototype.toJSON = function toJSON() {
14557
14465
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14558
14466
  };
14559
- OutputEncodedConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14467
+ EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14560
14468
  if (typeUrlPrefix === void 0) {
14561
14469
  typeUrlPrefix = "type.googleapis.com";
14562
14470
  }
14563
- return typeUrlPrefix + "/sesame.v1.outputs.OutputEncodedConfig";
14471
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
14564
14472
  };
14565
- return OutputEncodedConfig;
14473
+ return EncoderConfig;
14566
14474
  }();
14567
14475
  outputs.DecklinkOutputConfig = function() {
14568
14476
  function DecklinkOutputConfig(properties) {
@@ -14733,7 +14641,7 @@ var sesame = $root.sesame = (() => {
14733
14641
  }
14734
14642
  }
14735
14643
  EncodedWebSocketOutputConfig.prototype.channel = "";
14736
- EncodedWebSocketOutputConfig.prototype.encoded = null;
14644
+ EncodedWebSocketOutputConfig.prototype.encoder = null;
14737
14645
  EncodedWebSocketOutputConfig.create = function create(properties) {
14738
14646
  return new EncodedWebSocketOutputConfig(properties);
14739
14647
  };
@@ -14745,8 +14653,8 @@ var sesame = $root.sesame = (() => {
14745
14653
  /* id 1, wireType 2 =*/
14746
14654
  10
14747
14655
  ).string(message.channel);
14748
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
14749
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
14656
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
14657
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
14750
14658
  /* id 2, wireType 2 =*/
14751
14659
  18
14752
14660
  ).fork()).ldelim();
@@ -14769,7 +14677,7 @@ var sesame = $root.sesame = (() => {
14769
14677
  break;
14770
14678
  }
14771
14679
  case 2: {
14772
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
14680
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
14773
14681
  break;
14774
14682
  }
14775
14683
  default:
@@ -14791,10 +14699,10 @@ var sesame = $root.sesame = (() => {
14791
14699
  if (!$util.isString(message.channel))
14792
14700
  return "channel: string expected";
14793
14701
  }
14794
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
14795
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
14702
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
14703
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
14796
14704
  if (error)
14797
- return "encoded." + error;
14705
+ return "encoder." + error;
14798
14706
  }
14799
14707
  return null;
14800
14708
  };
@@ -14804,10 +14712,10 @@ var sesame = $root.sesame = (() => {
14804
14712
  let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
14805
14713
  if (object.channel != null)
14806
14714
  message.channel = String(object.channel);
14807
- if (object.encoded != null) {
14808
- if (typeof object.encoded !== "object")
14809
- throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoded: object expected");
14810
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
14715
+ if (object.encoder != null) {
14716
+ if (typeof object.encoder !== "object")
14717
+ throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoder: object expected");
14718
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
14811
14719
  }
14812
14720
  return message;
14813
14721
  };
@@ -14817,12 +14725,12 @@ var sesame = $root.sesame = (() => {
14817
14725
  let object = {};
14818
14726
  if (options.defaults) {
14819
14727
  object.channel = "";
14820
- object.encoded = null;
14728
+ object.encoder = null;
14821
14729
  }
14822
14730
  if (message.channel != null && message.hasOwnProperty("channel"))
14823
14731
  object.channel = message.channel;
14824
- if (message.encoded != null && message.hasOwnProperty("encoded"))
14825
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
14732
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
14733
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
14826
14734
  return object;
14827
14735
  };
14828
14736
  EncodedWebSocketOutputConfig.prototype.toJSON = function toJSON() {
@@ -14844,7 +14752,7 @@ var sesame = $root.sesame = (() => {
14844
14752
  this[keys[i]] = properties[keys[i]];
14845
14753
  }
14846
14754
  }
14847
- EncodedRecorderOutputConfig.prototype.encoded = null;
14755
+ EncodedRecorderOutputConfig.prototype.encoder = null;
14848
14756
  EncodedRecorderOutputConfig.prototype.filename = "";
14849
14757
  EncodedRecorderOutputConfig.prototype.sizeGb = 0;
14850
14758
  EncodedRecorderOutputConfig.prototype.groupId = "";
@@ -14855,8 +14763,8 @@ var sesame = $root.sesame = (() => {
14855
14763
  EncodedRecorderOutputConfig.encode = function encode(message, writer) {
14856
14764
  if (!writer)
14857
14765
  writer = $Writer.create();
14858
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
14859
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
14766
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
14767
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
14860
14768
  /* id 1, wireType 2 =*/
14861
14769
  10
14862
14770
  ).fork()).ldelim();
@@ -14895,7 +14803,7 @@ var sesame = $root.sesame = (() => {
14895
14803
  break;
14896
14804
  switch (tag >>> 3) {
14897
14805
  case 1: {
14898
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
14806
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
14899
14807
  break;
14900
14808
  }
14901
14809
  case 2: {
@@ -14929,10 +14837,10 @@ var sesame = $root.sesame = (() => {
14929
14837
  EncodedRecorderOutputConfig.verify = function verify(message) {
14930
14838
  if (typeof message !== "object" || message === null)
14931
14839
  return "object expected";
14932
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
14933
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
14840
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
14841
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
14934
14842
  if (error)
14935
- return "encoded." + error;
14843
+ return "encoder." + error;
14936
14844
  }
14937
14845
  if (message.filename != null && message.hasOwnProperty("filename")) {
14938
14846
  if (!$util.isString(message.filename))
@@ -14961,10 +14869,10 @@ var sesame = $root.sesame = (() => {
14961
14869
  if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
14962
14870
  return object;
14963
14871
  let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
14964
- if (object.encoded != null) {
14965
- if (typeof object.encoded !== "object")
14966
- throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoded: object expected");
14967
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
14872
+ if (object.encoder != null) {
14873
+ if (typeof object.encoder !== "object")
14874
+ throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
14875
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
14968
14876
  }
14969
14877
  if (object.filename != null)
14970
14878
  message.filename = String(object.filename);
@@ -14999,14 +14907,14 @@ var sesame = $root.sesame = (() => {
14999
14907
  options = {};
15000
14908
  let object = {};
15001
14909
  if (options.defaults) {
15002
- object.encoded = null;
14910
+ object.encoder = null;
15003
14911
  object.filename = "";
15004
14912
  object.sizeGb = 0;
15005
14913
  object.groupId = "";
15006
14914
  object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
15007
14915
  }
15008
- if (message.encoded != null && message.hasOwnProperty("encoded"))
15009
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
14916
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
14917
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
15010
14918
  if (message.filename != null && message.hasOwnProperty("filename"))
15011
14919
  object.filename = message.filename;
15012
14920
  if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
@@ -15038,7 +14946,7 @@ var sesame = $root.sesame = (() => {
15038
14946
  this[keys[i]] = properties[keys[i]];
15039
14947
  }
15040
14948
  }
15041
- EncodedSuperSlowMoRecorderOutputConfig.prototype.encoded = null;
14949
+ EncodedSuperSlowMoRecorderOutputConfig.prototype.encoder = null;
15042
14950
  EncodedSuperSlowMoRecorderOutputConfig.prototype.filename = "";
15043
14951
  EncodedSuperSlowMoRecorderOutputConfig.prototype.sizeGb = 0;
15044
14952
  EncodedSuperSlowMoRecorderOutputConfig.prototype.groupId = "";
@@ -15051,8 +14959,8 @@ var sesame = $root.sesame = (() => {
15051
14959
  EncodedSuperSlowMoRecorderOutputConfig.encode = function encode(message, writer) {
15052
14960
  if (!writer)
15053
14961
  writer = $Writer.create();
15054
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
15055
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
14962
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
14963
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
15056
14964
  /* id 1, wireType 2 =*/
15057
14965
  10
15058
14966
  ).fork()).ldelim();
@@ -15103,7 +15011,7 @@ var sesame = $root.sesame = (() => {
15103
15011
  break;
15104
15012
  switch (tag >>> 3) {
15105
15013
  case 1: {
15106
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
15014
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
15107
15015
  break;
15108
15016
  }
15109
15017
  case 2: {
@@ -15149,10 +15057,10 @@ var sesame = $root.sesame = (() => {
15149
15057
  EncodedSuperSlowMoRecorderOutputConfig.verify = function verify(message) {
15150
15058
  if (typeof message !== "object" || message === null)
15151
15059
  return "object expected";
15152
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
15153
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
15060
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
15061
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
15154
15062
  if (error)
15155
- return "encoded." + error;
15063
+ return "encoder." + error;
15156
15064
  }
15157
15065
  if (message.filename != null && message.hasOwnProperty("filename")) {
15158
15066
  if (!$util.isString(message.filename))
@@ -15195,10 +15103,10 @@ var sesame = $root.sesame = (() => {
15195
15103
  if (object instanceof $root.sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig)
15196
15104
  return object;
15197
15105
  let message = new $root.sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig();
15198
- if (object.encoded != null) {
15199
- if (typeof object.encoded !== "object")
15200
- throw TypeError(".sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig.encoded: object expected");
15201
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
15106
+ if (object.encoder != null) {
15107
+ if (typeof object.encoder !== "object")
15108
+ throw TypeError(".sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig.encoder: object expected");
15109
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
15202
15110
  }
15203
15111
  if (object.filename != null)
15204
15112
  message.filename = String(object.filename);
@@ -15251,14 +15159,14 @@ var sesame = $root.sesame = (() => {
15251
15159
  object.sourceIds = [];
15252
15160
  }
15253
15161
  if (options.defaults) {
15254
- object.encoded = null;
15162
+ object.encoder = null;
15255
15163
  object.filename = "";
15256
15164
  object.sizeGb = 0;
15257
15165
  object.groupId = "";
15258
15166
  object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
15259
15167
  }
15260
- if (message.encoded != null && message.hasOwnProperty("encoded"))
15261
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
15168
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
15169
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
15262
15170
  if (message.filename != null && message.hasOwnProperty("filename"))
15263
15171
  object.filename = message.filename;
15264
15172
  if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
@@ -15299,7 +15207,7 @@ var sesame = $root.sesame = (() => {
15299
15207
  }
15300
15208
  }
15301
15209
  EncodedSrtOutputConfig.prototype.url = "";
15302
- EncodedSrtOutputConfig.prototype.encoded = null;
15210
+ EncodedSrtOutputConfig.prototype.encoder = null;
15303
15211
  EncodedSrtOutputConfig.create = function create(properties) {
15304
15212
  return new EncodedSrtOutputConfig(properties);
15305
15213
  };
@@ -15311,8 +15219,8 @@ var sesame = $root.sesame = (() => {
15311
15219
  /* id 1, wireType 2 =*/
15312
15220
  10
15313
15221
  ).string(message.url);
15314
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
15315
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
15222
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
15223
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
15316
15224
  /* id 2, wireType 2 =*/
15317
15225
  18
15318
15226
  ).fork()).ldelim();
@@ -15335,7 +15243,7 @@ var sesame = $root.sesame = (() => {
15335
15243
  break;
15336
15244
  }
15337
15245
  case 2: {
15338
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
15246
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
15339
15247
  break;
15340
15248
  }
15341
15249
  default:
@@ -15357,10 +15265,10 @@ var sesame = $root.sesame = (() => {
15357
15265
  if (!$util.isString(message.url))
15358
15266
  return "url: string expected";
15359
15267
  }
15360
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
15361
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
15268
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
15269
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
15362
15270
  if (error)
15363
- return "encoded." + error;
15271
+ return "encoder." + error;
15364
15272
  }
15365
15273
  return null;
15366
15274
  };
@@ -15370,10 +15278,10 @@ var sesame = $root.sesame = (() => {
15370
15278
  let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
15371
15279
  if (object.url != null)
15372
15280
  message.url = String(object.url);
15373
- if (object.encoded != null) {
15374
- if (typeof object.encoded !== "object")
15375
- throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoded: object expected");
15376
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
15281
+ if (object.encoder != null) {
15282
+ if (typeof object.encoder !== "object")
15283
+ throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
15284
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
15377
15285
  }
15378
15286
  return message;
15379
15287
  };
@@ -15383,12 +15291,12 @@ var sesame = $root.sesame = (() => {
15383
15291
  let object = {};
15384
15292
  if (options.defaults) {
15385
15293
  object.url = "";
15386
- object.encoded = null;
15294
+ object.encoder = null;
15387
15295
  }
15388
15296
  if (message.url != null && message.hasOwnProperty("url"))
15389
15297
  object.url = message.url;
15390
- if (message.encoded != null && message.hasOwnProperty("encoded"))
15391
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
15298
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
15299
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
15392
15300
  return object;
15393
15301
  };
15394
15302
  EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
@@ -15410,7 +15318,7 @@ var sesame = $root.sesame = (() => {
15410
15318
  this[keys[i]] = properties[keys[i]];
15411
15319
  }
15412
15320
  }
15413
- EncodedMoqOutputConfig.prototype.encoded = null;
15321
+ EncodedMoqOutputConfig.prototype.encoder = null;
15414
15322
  EncodedMoqOutputConfig.prototype.url = "";
15415
15323
  EncodedMoqOutputConfig.prototype.broadcast = "";
15416
15324
  EncodedMoqOutputConfig.prototype.key = "";
@@ -15420,8 +15328,8 @@ var sesame = $root.sesame = (() => {
15420
15328
  EncodedMoqOutputConfig.encode = function encode(message, writer) {
15421
15329
  if (!writer)
15422
15330
  writer = $Writer.create();
15423
- if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded"))
15424
- $root.sesame.v1.outputs.OutputEncodedConfig.encode(message.encoded, writer.uint32(
15331
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
15332
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
15425
15333
  /* id 1, wireType 2 =*/
15426
15334
  10
15427
15335
  ).fork()).ldelim();
@@ -15455,7 +15363,7 @@ var sesame = $root.sesame = (() => {
15455
15363
  break;
15456
15364
  switch (tag >>> 3) {
15457
15365
  case 1: {
15458
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.decode(reader, reader.uint32());
15366
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
15459
15367
  break;
15460
15368
  }
15461
15369
  case 2: {
@@ -15485,10 +15393,10 @@ var sesame = $root.sesame = (() => {
15485
15393
  EncodedMoqOutputConfig.verify = function verify(message) {
15486
15394
  if (typeof message !== "object" || message === null)
15487
15395
  return "object expected";
15488
- if (message.encoded != null && message.hasOwnProperty("encoded")) {
15489
- let error = $root.sesame.v1.outputs.OutputEncodedConfig.verify(message.encoded);
15396
+ if (message.encoder != null && message.hasOwnProperty("encoder")) {
15397
+ let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
15490
15398
  if (error)
15491
- return "encoded." + error;
15399
+ return "encoder." + error;
15492
15400
  }
15493
15401
  if (message.url != null && message.hasOwnProperty("url")) {
15494
15402
  if (!$util.isString(message.url))
@@ -15508,10 +15416,10 @@ var sesame = $root.sesame = (() => {
15508
15416
  if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
15509
15417
  return object;
15510
15418
  let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
15511
- if (object.encoded != null) {
15512
- if (typeof object.encoded !== "object")
15513
- throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoded: object expected");
15514
- message.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.fromObject(object.encoded);
15419
+ if (object.encoder != null) {
15420
+ if (typeof object.encoder !== "object")
15421
+ throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
15422
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
15515
15423
  }
15516
15424
  if (object.url != null)
15517
15425
  message.url = String(object.url);
@@ -15526,13 +15434,13 @@ var sesame = $root.sesame = (() => {
15526
15434
  options = {};
15527
15435
  let object = {};
15528
15436
  if (options.defaults) {
15529
- object.encoded = null;
15437
+ object.encoder = null;
15530
15438
  object.url = "";
15531
15439
  object.broadcast = "";
15532
15440
  object.key = "";
15533
15441
  }
15534
- if (message.encoded != null && message.hasOwnProperty("encoded"))
15535
- object.encoded = $root.sesame.v1.outputs.OutputEncodedConfig.toObject(message.encoded, options);
15442
+ if (message.encoder != null && message.hasOwnProperty("encoder"))
15443
+ object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
15536
15444
  if (message.url != null && message.hasOwnProperty("url"))
15537
15445
  object.url = message.url;
15538
15446
  if (message.broadcast != null && message.hasOwnProperty("broadcast"))
@@ -21241,176 +21149,40 @@ var CommandList = class {
21241
21149
  this.cl.commandList.splice(this.cl.commandList.indexOf(item.del), 1);
21242
21150
  });
21243
21151
  }
21244
- get_command_list_msg() {
21152
+ getCommandListMsg() {
21245
21153
  return this.cl;
21246
21154
  }
21247
- buildSourceConfig(cfg) {
21248
- var _a;
21249
- const config = {
21250
- common: {
21251
- userId: cfg.userId,
21252
- useAsClock: cfg.useAsClock,
21253
- audioOnly: cfg.audioOnly,
21254
- audioChannels: cfg.audioChannels,
21255
- loop: cfg.loop,
21256
- playState: cfg.playState,
21257
- mipMap: cfg.mipMap,
21258
- textureSize: cfg.textureSize,
21259
- decoderType: cfg.decoderType,
21260
- deinterlace: cfg.deinterlace,
21261
- videoProcessors: cfg.videoProcessors || []
21262
- }
21263
- };
21264
- switch (cfg.sourceType) {
21265
- case sesame.v1.sources.SourceType.SOURCE_TYPE_FILE:
21266
- config.file = { url: ((_a = cfg.fileConfig) == null ? void 0 : _a.filename) || cfg.url || "" };
21267
- break;
21268
- case sesame.v1.sources.SourceType.SOURCE_TYPE_RECORDER:
21269
- if (cfg.recorderConfig == null) throw new Error("No recorder source config found");
21270
- config.recorder = cfg.recorderConfig;
21271
- break;
21272
- case sesame.v1.sources.SourceType.SOURCE_TYPE_BROWSER:
21273
- if (!cfg.url) throw new Error("No browser URL found");
21274
- config.browser = { url: cfg.url };
21275
- break;
21276
- case sesame.v1.sources.SourceType.SOURCE_TYPE_RTT:
21277
- if (cfg.rttConfig == null) throw new Error("No RTT config found");
21278
- config.rtt = cfg.rttConfig;
21279
- break;
21280
- case sesame.v1.sources.SourceType.SOURCE_TYPE_DECKLINK:
21281
- if (cfg.decklinkConfig == null) throw new Error("No decklink source config found");
21282
- config.decklink = cfg.decklinkConfig;
21283
- break;
21284
- case sesame.v1.sources.SourceType.SOURCE_TYPE_SIGNAL_GENERATOR:
21285
- config.signalGenerator = {};
21286
- break;
21287
- case sesame.v1.sources.SourceType.SOURCE_TYPE_SYSTEM_AUDIO:
21288
- config.systemAudio = { deviceName: cfg.url || "" };
21289
- break;
21290
- case sesame.v1.sources.SourceType.SOURCE_TYPE_SRT_STREAM:
21291
- config.srtStream = cfg.srtConfig || (cfg.url ? { url: cfg.url } : void 0);
21292
- if (config.srtStream == null) throw new Error("No SRT source config found");
21293
- if (cfg.decodeBufferFrames) config.srtStream.decodeBufferFrames = cfg.decodeBufferFrames;
21294
- break;
21295
- case sesame.v1.sources.SourceType.SOURCE_TYPE_WEBSOCKET:
21296
- if (!cfg.url) throw new Error("No websocket channel found");
21297
- config.websocket = { channel: cfg.url };
21298
- if (cfg.decodeBufferFrames) config.websocket.decodeBufferFrames = cfg.decodeBufferFrames;
21299
- break;
21300
- case sesame.v1.sources.SourceType.SOURCE_TYPE_MOQ:
21301
- if (cfg.moqConfig == null) throw new Error("No MoQ source config found");
21302
- config.moq = cfg.moqConfig;
21303
- if (cfg.decodeBufferFrames) config.moq.decodeBufferFrames = cfg.decodeBufferFrames;
21304
- break;
21305
- default:
21306
- throw new Error(`Unsupported source type: ${cfg.sourceType}`);
21307
- }
21308
- return config;
21309
- }
21310
- buildOutputEncodedConfig(cfg) {
21311
- return {
21312
- width: cfg.width,
21313
- height: cfg.height,
21314
- fps: cfg.fps,
21315
- encoderConfig: cfg.encoderConfig
21316
- };
21317
- }
21318
- buildOutputConfig(id, cfg) {
21319
- const outputConfig = {
21320
- id,
21321
- audioMixIds: cfg.audioMixIds,
21322
- compositionId: cfg.compositionId,
21323
- useAsClock: !!cfg.useAsClock
21324
- };
21325
- switch (cfg.outputType) {
21326
- case sesame.v1.outputs.OutputType.OUTPUT_TYPE_DECKLINK:
21327
- if (cfg.decklinkConfig == null) throw new Error("No decklink config found");
21328
- outputConfig.decklink = cfg.decklinkConfig;
21329
- break;
21330
- case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_RECORDER:
21331
- if (cfg.recorderConfig == null) throw new Error("No recorder config found");
21332
- if (cfg.encodedConfig == null) throw new Error("No output config found");
21333
- outputConfig.recorder = {
21334
- encoded: this.buildOutputEncodedConfig(cfg.encodedConfig),
21335
- filename: cfg.recorderConfig.filename,
21336
- sizeGb: cfg.recorderConfig.sizeGb,
21337
- groupId: cfg.recorderConfig.groupId,
21338
- recorderType: cfg.recorderConfig.type
21339
- };
21340
- break;
21341
- case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_SUPER_SLOWMO_RECORDER:
21342
- if (cfg.recorderConfig == null) throw new Error("No recorder config found");
21343
- if (cfg.encodedConfig == null) throw new Error("No output config found");
21344
- outputConfig.superSlowmoRecorder = {
21345
- encoded: this.buildOutputEncodedConfig(cfg.encodedConfig),
21346
- filename: cfg.recorderConfig.filename,
21347
- sizeGb: cfg.recorderConfig.sizeGb,
21348
- groupId: cfg.recorderConfig.groupId,
21349
- recorderType: cfg.recorderConfig.type
21350
- };
21351
- break;
21352
- case sesame.v1.outputs.OutputType.OUTPUT_TYPE_SYSTEM_AUDIO:
21353
- if (cfg.systemAudioConfig == null) throw new Error("No system audio config found");
21354
- outputConfig.systemAudio = cfg.systemAudioConfig;
21355
- break;
21356
- case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_SRT:
21357
- if (cfg.encodedConfig == null) throw new Error("No output config found");
21358
- outputConfig.srt = {
21359
- url: cfg.encodedConfig.url,
21360
- encoded: this.buildOutputEncodedConfig(cfg.encodedConfig)
21361
- };
21362
- break;
21363
- case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_WEBSOCKET:
21364
- if (cfg.encodedConfig == null) throw new Error("No output config found");
21365
- outputConfig.websocket = {
21366
- channel: cfg.encodedConfig.url,
21367
- encoded: this.buildOutputEncodedConfig(cfg.encodedConfig)
21368
- };
21369
- break;
21370
- case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_MOQ:
21371
- if (cfg.moqConfig == null) throw new Error("No MoQ config found");
21372
- if (cfg.encodedConfig == null) throw new Error("No output config found");
21373
- outputConfig.moq = {
21374
- ...cfg.moqConfig,
21375
- encoded: this.buildOutputEncodedConfig(cfg.encodedConfig)
21376
- };
21377
- break;
21378
- default:
21379
- throw new Error(`Unsupported output type: ${cfg.outputType}`);
21380
- }
21381
- return outputConfig;
21382
- }
21383
21155
  callback(event, data, timeOffsetMs) {
21384
21156
  let item = new sesame.v1.commands.CommandListItem();
21385
21157
  item.callback = { event, data };
21386
21158
  return this.add(item, timeOffsetMs);
21387
21159
  }
21388
- add_compositor(id, width, height, multisample, timeOffsetMs) {
21160
+ compositorAdd(id, width, height, multisample, timeOffsetMs) {
21389
21161
  let item = new sesame.v1.commands.CommandListItem();
21390
21162
  item.addCompositor = { id, multisample, width, height };
21391
21163
  return this.add(item, timeOffsetMs);
21392
21164
  }
21393
- remove_compositor(id, timeOffsetMs) {
21165
+ compositorRemove(id, timeOffsetMs) {
21394
21166
  let item = new sesame.v1.commands.CommandListItem();
21395
21167
  item.removeCompositor = { id };
21396
21168
  return this.add(item, timeOffsetMs);
21397
21169
  }
21398
- clear_compositor(id, timeOffsetMs) {
21170
+ compositorClear(id, timeOffsetMs) {
21399
21171
  let item = new sesame.v1.commands.CommandListItem();
21400
21172
  item.clearCompositor = { id };
21401
21173
  return this.add(item, timeOffsetMs);
21402
21174
  }
21403
- add_source(id, cfg, timeOffsetMs) {
21175
+ sourceAdd(id, cfg, timeOffsetMs) {
21404
21176
  let item = new sesame.v1.commands.CommandListItem();
21405
- item.addSource = { id, config: this.buildSourceConfig(cfg) };
21177
+ item.addSource = { id, config: cfg };
21406
21178
  return this.add(item, timeOffsetMs);
21407
21179
  }
21408
- remove_source(id, timeOffsetMs) {
21180
+ sourceRemove(id, timeOffsetMs) {
21409
21181
  let item = new sesame.v1.commands.CommandListItem();
21410
21182
  item.removeSource = { id };
21411
21183
  return this.add(item, timeOffsetMs);
21412
21184
  }
21413
- add_node(id, cfg, timeOffsetMs) {
21185
+ nodeAdd(id, cfg, timeOffsetMs) {
21414
21186
  let item = new sesame.v1.commands.CommandListItem();
21415
21187
  item.addNode = {
21416
21188
  compositorId: cfg.compositorId,
@@ -21420,12 +21192,12 @@ var CommandList = class {
21420
21192
  };
21421
21193
  return this.add(item, timeOffsetMs);
21422
21194
  }
21423
- remove_node(compositorId, address, timeOffsetMs) {
21195
+ nodeRemove(compositorId, address, timeOffsetMs) {
21424
21196
  let item = new sesame.v1.commands.CommandListItem();
21425
21197
  item.removeNode = { compositorId, address };
21426
21198
  return this.add(item, timeOffsetMs);
21427
21199
  }
21428
- set_property(propertyDomain, addr, prop, val, timeOffsetMs) {
21200
+ propertySet(propertyDomain, addr, prop, val, timeOffsetMs) {
21429
21201
  let item = new sesame.v1.commands.CommandListItem();
21430
21202
  item.setProperty = {
21431
21203
  address: addr,
@@ -21435,17 +21207,17 @@ var CommandList = class {
21435
21207
  };
21436
21208
  return this.add(item, timeOffsetMs);
21437
21209
  }
21438
- add_load_playlist_command(sourceId, playlist) {
21210
+ playlistLoad(sourceId, playlist) {
21439
21211
  const item = new sesame.v1.commands.CommandListItem();
21440
21212
  const loadPlaylistCmd = {
21441
21213
  items: playlist.clips.map((clip) => ({
21442
21214
  id: clip.id,
21443
21215
  recorderId: clip.recorderId,
21444
- transitionTimeUs: (clip.transitionTime || 0) * 1e3,
21216
+ transitionTimeUs: clip.transitionTimeUs,
21445
21217
  speed: clip.speed || 1,
21446
21218
  audioRouting: clip.audioRouting,
21447
- startTimeUs: clip.startTime,
21448
- endTimeUs: clip.endTime,
21219
+ startTimeUs: clip.startTimeUs,
21220
+ endTimeUs: clip.endTimeUs,
21449
21221
  transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
21450
21222
  transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 }
21451
21223
  })),
@@ -21458,13 +21230,13 @@ var CommandList = class {
21458
21230
  item.loadPlaylist = loadPlaylistCmd;
21459
21231
  return this.add(item, 0);
21460
21232
  }
21461
- add_eject_playlist_command(sourceId) {
21233
+ playlistEject(sourceId) {
21462
21234
  const item = new sesame.v1.commands.CommandListItem();
21463
21235
  const ejectPlaylistCmd = { sourceId };
21464
21236
  item.ejectPlaylist = ejectPlaylistCmd;
21465
21237
  return this.add(item, 0);
21466
21238
  }
21467
- add_transport_command(id, msg, timeOffsetMs) {
21239
+ transportCommand(id, msg, timeOffsetMs) {
21468
21240
  let item = new sesame.v1.commands.CommandListItem();
21469
21241
  let transportCmd = { sourceId: id };
21470
21242
  let cmd;
@@ -21537,17 +21309,17 @@ var CommandList = class {
21537
21309
  item.updateSourceTransport = transportCmd;
21538
21310
  return this.add(item, timeOffsetMs, { transactionId: msg.transactionId, dependencies: [] });
21539
21311
  }
21540
- update_source(id, cfg, timeOffsetMs) {
21312
+ sourceUpdate(id, cfg, timeOffsetMs) {
21541
21313
  let item = new sesame.v1.commands.CommandListItem();
21542
- item.updateSource = { id, config: this.buildSourceConfig(cfg) };
21314
+ item.updateSource = { id, config: cfg };
21543
21315
  return this.add(item, timeOffsetMs);
21544
21316
  }
21545
- update_source_metadata(id, metadata, timeOffsetMs) {
21317
+ sourceUpdateMetadata(id, metadata, timeOffsetMs) {
21546
21318
  let item = new sesame.v1.commands.CommandListItem();
21547
21319
  item.setSourceMetadata = { sourceId: id, metadata };
21548
21320
  return this.add(item, timeOffsetMs);
21549
21321
  }
21550
- update_source_transport(id, cfg, timeOffsetMs) {
21322
+ sourceUpdateTransport(id, cfg, timeOffsetMs) {
21551
21323
  let item = new sesame.v1.commands.CommandListItem();
21552
21324
  item.updateSourceTransport = {
21553
21325
  sourceId: id,
@@ -21556,47 +21328,47 @@ var CommandList = class {
21556
21328
  };
21557
21329
  return this.add(item, timeOffsetMs);
21558
21330
  }
21559
- add_output(id, cfg, timeOffsetMs) {
21331
+ outputAdd(id, cfg, timeOffsetMs) {
21560
21332
  let item = new sesame.v1.commands.CommandListItem();
21561
- item.addOutput = this.buildOutputConfig(id, cfg);
21333
+ item.addOutput = { id, ...cfg };
21562
21334
  return this.add(item, timeOffsetMs);
21563
21335
  }
21564
- update_output(id, cfg, timeOffsetMs) {
21336
+ outputUpdate(id, cfg, timeOffsetMs) {
21565
21337
  let item = new sesame.v1.commands.CommandListItem();
21566
- item.updateOutput = this.buildOutputConfig(id, cfg);
21338
+ item.updateOutput = { id, ...cfg };
21567
21339
  return this.add(item, timeOffsetMs);
21568
21340
  }
21569
- remove_output(id, timeOffsetMs) {
21341
+ outputRemove(id, timeOffsetMs) {
21570
21342
  let item = new sesame.v1.commands.CommandListItem();
21571
21343
  item.removeOutput = { id };
21572
21344
  return this.add(item, timeOffsetMs);
21573
21345
  }
21574
- add_audio_mixer(id, cfg, timeOffsetMs) {
21346
+ audioMixerAdd(id, cfg, timeOffsetMs) {
21575
21347
  let item = new sesame.v1.commands.CommandListItem();
21576
21348
  item.addAudioMixer = { id, config: cfg };
21577
21349
  return this.add(item, timeOffsetMs);
21578
21350
  }
21579
- update_audio_mixer(id, cfg, timeOffsetMs) {
21351
+ audioMixerUpdate(id, cfg, timeOffsetMs) {
21580
21352
  let item = new sesame.v1.commands.CommandListItem();
21581
21353
  item.updateAudioMixer = { id, config: cfg };
21582
21354
  return this.add(item, timeOffsetMs);
21583
21355
  }
21584
- add_audio_mixer_channel(mixerId, cfg, timeOffsetMs) {
21356
+ audioMixerChannelAdd(mixerId, cfg, timeOffsetMs) {
21585
21357
  let item = new sesame.v1.commands.CommandListItem();
21586
21358
  item.addAudioChannel = { mixerId, channelConfig: cfg };
21587
21359
  return this.add(item, timeOffsetMs);
21588
21360
  }
21589
- remove_audio_mixer(mixerId, timeOffsetMs) {
21361
+ audioMixerRemove(mixerId, timeOffsetMs) {
21590
21362
  let item = new sesame.v1.commands.CommandListItem();
21591
21363
  item.removeAudioMixer = { id: mixerId };
21592
21364
  return this.add(item, timeOffsetMs);
21593
21365
  }
21594
- remove_audio_mixer_channel(mixerId, channelId, timeOffsetMs) {
21366
+ audioMixerChannelRemove(mixerId, channelId, timeOffsetMs) {
21595
21367
  let item = new sesame.v1.commands.CommandListItem();
21596
21368
  item.removeAudioChannel = { mixerId, channelId };
21597
21369
  return this.add(item, timeOffsetMs);
21598
21370
  }
21599
- animate_property(propertyDomain, addr, prop, before, after, keyframes, timeOffsetMs) {
21371
+ propertyAnimate(propertyDomain, addr, prop, before, after, keyframes, timeOffsetMs) {
21600
21372
  let item = new sesame.v1.commands.CommandListItem();
21601
21373
  item.animateProperty = {
21602
21374
  address: addr,