@stinkycomputing/sesame-api-client 1.6.0 → 1.9.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -46,12 +46,15 @@ __export(index_exports, {
46
46
  Response: () => Response,
47
47
  SesameClient: () => SesameClient,
48
48
  SesameConnection: () => SesameConnection,
49
+ SideData: () => SideData,
50
+ SideDataTracker: () => SideDataTracker,
49
51
  StatusApi: () => StatusApi,
50
52
  WireProtocol: () => WireProtocol,
51
53
  buildAudioControlFrame: () => buildAudioControlFrame,
52
54
  buildBinaryDataFrame: () => buildBinaryDataFrame,
53
55
  buildTransportControlFrame: () => buildTransportControlFrame,
54
56
  getLogger: () => getLogger,
57
+ getSideData: () => getSideData,
55
58
  log: () => log,
56
59
  parseDataFrame: () => parseDataFrame,
57
60
  sesame: () => sesame,
@@ -3582,11 +3585,14 @@ var sesame = $root.sesame = (() => {
3582
3585
  CommandListItem.prototype.updateEncoder = null;
3583
3586
  CommandListItem.prototype.removeEncoder = null;
3584
3587
  CommandListItem.prototype.takePlaylist = null;
3588
+ CommandListItem.prototype.outputControl = null;
3589
+ CommandListItem.prototype.setSideData = null;
3590
+ CommandListItem.prototype.removeSideData = null;
3585
3591
  CommandListItem.prototype.transactionId = null;
3586
3592
  CommandListItem.prototype.transactionDeps = $util.emptyArray;
3587
3593
  let $oneOfFields;
3588
3594
  Object.defineProperty(CommandListItem.prototype, "item", {
3589
- get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist"]),
3595
+ get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist", "outputControl", "setSideData", "removeSideData"]),
3590
3596
  set: $util.oneOfSetter($oneOfFields)
3591
3597
  });
3592
3598
  Object.defineProperty(CommandListItem.prototype, "_transactionId", {
@@ -3758,6 +3764,21 @@ var sesame = $root.sesame = (() => {
3758
3764
  /* id 31, wireType 2 =*/
3759
3765
  250
3760
3766
  ).fork()).ldelim();
3767
+ if (message.outputControl != null && Object.hasOwnProperty.call(message, "outputControl"))
3768
+ $root.sesame.v1.outputs.OutputControlRequest.encode(message.outputControl, writer.uint32(
3769
+ /* id 32, wireType 2 =*/
3770
+ 258
3771
+ ).fork()).ldelim();
3772
+ if (message.setSideData != null && Object.hasOwnProperty.call(message, "setSideData"))
3773
+ $root.sesame.v1.compositor.SideDataSetRequest.encode(message.setSideData, writer.uint32(
3774
+ /* id 33, wireType 2 =*/
3775
+ 266
3776
+ ).fork()).ldelim();
3777
+ if (message.removeSideData != null && Object.hasOwnProperty.call(message, "removeSideData"))
3778
+ $root.sesame.v1.compositor.SideDataRemoveRequest.encode(message.removeSideData, writer.uint32(
3779
+ /* id 34, wireType 2 =*/
3780
+ 274
3781
+ ).fork()).ldelim();
3761
3782
  return writer;
3762
3783
  };
3763
3784
  CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
@@ -3888,6 +3909,18 @@ var sesame = $root.sesame = (() => {
3888
3909
  message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.decode(reader, reader.uint32());
3889
3910
  break;
3890
3911
  }
3912
+ case 32: {
3913
+ message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.decode(reader, reader.uint32());
3914
+ break;
3915
+ }
3916
+ case 33: {
3917
+ message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.decode(reader, reader.uint32());
3918
+ break;
3919
+ }
3920
+ case 34: {
3921
+ message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.decode(reader, reader.uint32());
3922
+ break;
3923
+ }
3891
3924
  case 25: {
3892
3925
  message.transactionId = reader.uint32();
3893
3926
  break;
@@ -4201,6 +4234,36 @@ var sesame = $root.sesame = (() => {
4201
4234
  return "takePlaylist." + error;
4202
4235
  }
4203
4236
  }
4237
+ if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
4238
+ if (properties.item === 1)
4239
+ return "item: multiple values";
4240
+ properties.item = 1;
4241
+ {
4242
+ let error = $root.sesame.v1.outputs.OutputControlRequest.verify(message.outputControl);
4243
+ if (error)
4244
+ return "outputControl." + error;
4245
+ }
4246
+ }
4247
+ if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
4248
+ if (properties.item === 1)
4249
+ return "item: multiple values";
4250
+ properties.item = 1;
4251
+ {
4252
+ let error = $root.sesame.v1.compositor.SideDataSetRequest.verify(message.setSideData);
4253
+ if (error)
4254
+ return "setSideData." + error;
4255
+ }
4256
+ }
4257
+ if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
4258
+ if (properties.item === 1)
4259
+ return "item: multiple values";
4260
+ properties.item = 1;
4261
+ {
4262
+ let error = $root.sesame.v1.compositor.SideDataRemoveRequest.verify(message.removeSideData);
4263
+ if (error)
4264
+ return "removeSideData." + error;
4265
+ }
4266
+ }
4204
4267
  if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
4205
4268
  properties._transactionId = 1;
4206
4269
  if (!$util.isInteger(message.transactionId))
@@ -4369,6 +4432,21 @@ var sesame = $root.sesame = (() => {
4369
4432
  throw TypeError(".sesame.v1.commands.CommandListItem.takePlaylist: object expected");
4370
4433
  message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.fromObject(object.takePlaylist);
4371
4434
  }
4435
+ if (object.outputControl != null) {
4436
+ if (typeof object.outputControl !== "object")
4437
+ throw TypeError(".sesame.v1.commands.CommandListItem.outputControl: object expected");
4438
+ message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.fromObject(object.outputControl);
4439
+ }
4440
+ if (object.setSideData != null) {
4441
+ if (typeof object.setSideData !== "object")
4442
+ throw TypeError(".sesame.v1.commands.CommandListItem.setSideData: object expected");
4443
+ message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.fromObject(object.setSideData);
4444
+ }
4445
+ if (object.removeSideData != null) {
4446
+ if (typeof object.removeSideData !== "object")
4447
+ throw TypeError(".sesame.v1.commands.CommandListItem.removeSideData: object expected");
4448
+ message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.fromObject(object.removeSideData);
4449
+ }
4372
4450
  if (object.transactionId != null)
4373
4451
  message.transactionId = object.transactionId >>> 0;
4374
4452
  if (object.transactionDeps) {
@@ -4547,6 +4625,21 @@ var sesame = $root.sesame = (() => {
4547
4625
  if (options.oneofs)
4548
4626
  object.item = "takePlaylist";
4549
4627
  }
4628
+ if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
4629
+ object.outputControl = $root.sesame.v1.outputs.OutputControlRequest.toObject(message.outputControl, options);
4630
+ if (options.oneofs)
4631
+ object.item = "outputControl";
4632
+ }
4633
+ if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
4634
+ object.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.toObject(message.setSideData, options);
4635
+ if (options.oneofs)
4636
+ object.item = "setSideData";
4637
+ }
4638
+ if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
4639
+ object.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.toObject(message.removeSideData, options);
4640
+ if (options.oneofs)
4641
+ object.item = "removeSideData";
4642
+ }
4550
4643
  return object;
4551
4644
  };
4552
4645
  CommandListItem.prototype.toJSON = function toJSON() {
@@ -5018,6 +5111,7 @@ var sesame = $root.sesame = (() => {
5018
5111
  values[valuesById[4] = "CONNECTION_STATE_DEGRADED"] = 4;
5019
5112
  values[valuesById[5] = "CONNECTION_STATE_OFFLINE"] = 5;
5020
5113
  values[valuesById[6] = "CONNECTION_STATE_ERROR"] = 6;
5114
+ values[valuesById[7] = "CONNECTION_STATE_DISABLED"] = 7;
5021
5115
  return values;
5022
5116
  }();
5023
5117
  common.VideoFormat = function() {
@@ -7411,6 +7505,13 @@ var sesame = $root.sesame = (() => {
7411
7505
  values[valuesById[3] = "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE"] = 3;
7412
7506
  return values;
7413
7507
  }();
7508
+ sources.SignalGeneratorTimecodeMode = function() {
7509
+ const valuesById = {}, values = Object.create(valuesById);
7510
+ values[valuesById[0] = "SIGNAL_GENERATOR_TIMECODE_MODE_NONE"] = 0;
7511
+ values[valuesById[1] = "SIGNAL_GENERATOR_TIMECODE_MODE_FREE_RUN"] = 1;
7512
+ values[valuesById[2] = "SIGNAL_GENERATOR_TIMECODE_MODE_TIME_OF_DAY"] = 2;
7513
+ return values;
7514
+ }();
7414
7515
  sources.SignalGeneratorSourceConfig = function() {
7415
7516
  function SignalGeneratorSourceConfig(properties) {
7416
7517
  if (properties) {
@@ -7422,6 +7523,8 @@ var sesame = $root.sesame = (() => {
7422
7523
  SignalGeneratorSourceConfig.prototype.freeze = false;
7423
7524
  SignalGeneratorSourceConfig.prototype.videoPattern = 0;
7424
7525
  SignalGeneratorSourceConfig.prototype.audioMode = 0;
7526
+ SignalGeneratorSourceConfig.prototype.timecodeMode = 0;
7527
+ SignalGeneratorSourceConfig.prototype.timecodeStartFrame = 0;
7425
7528
  SignalGeneratorSourceConfig.create = function create(properties) {
7426
7529
  return new SignalGeneratorSourceConfig(properties);
7427
7530
  };
@@ -7443,6 +7546,16 @@ var sesame = $root.sesame = (() => {
7443
7546
  /* id 3, wireType 0 =*/
7444
7547
  24
7445
7548
  ).int32(message.audioMode);
7549
+ if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
7550
+ writer.uint32(
7551
+ /* id 4, wireType 0 =*/
7552
+ 32
7553
+ ).int32(message.timecodeMode);
7554
+ if (message.timecodeStartFrame != null && Object.hasOwnProperty.call(message, "timecodeStartFrame"))
7555
+ writer.uint32(
7556
+ /* id 5, wireType 0 =*/
7557
+ 40
7558
+ ).uint32(message.timecodeStartFrame);
7446
7559
  return writer;
7447
7560
  };
7448
7561
  SignalGeneratorSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -7469,6 +7582,14 @@ var sesame = $root.sesame = (() => {
7469
7582
  message.audioMode = reader.int32();
7470
7583
  break;
7471
7584
  }
7585
+ case 4: {
7586
+ message.timecodeMode = reader.int32();
7587
+ break;
7588
+ }
7589
+ case 5: {
7590
+ message.timecodeStartFrame = reader.uint32();
7591
+ break;
7592
+ }
7472
7593
  default:
7473
7594
  reader.skipType(tag & 7);
7474
7595
  break;
@@ -7508,6 +7629,19 @@ var sesame = $root.sesame = (() => {
7508
7629
  case 3:
7509
7630
  break;
7510
7631
  }
7632
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
7633
+ switch (message.timecodeMode) {
7634
+ default:
7635
+ return "timecodeMode: enum value expected";
7636
+ case 0:
7637
+ case 1:
7638
+ case 2:
7639
+ break;
7640
+ }
7641
+ if (message.timecodeStartFrame != null && message.hasOwnProperty("timecodeStartFrame")) {
7642
+ if (!$util.isInteger(message.timecodeStartFrame))
7643
+ return "timecodeStartFrame: integer expected";
7644
+ }
7511
7645
  return null;
7512
7646
  };
7513
7647
  SignalGeneratorSourceConfig.fromObject = function fromObject(object) {
@@ -7564,6 +7698,28 @@ var sesame = $root.sesame = (() => {
7564
7698
  message.audioMode = 3;
7565
7699
  break;
7566
7700
  }
7701
+ switch (object.timecodeMode) {
7702
+ default:
7703
+ if (typeof object.timecodeMode === "number") {
7704
+ message.timecodeMode = object.timecodeMode;
7705
+ break;
7706
+ }
7707
+ break;
7708
+ case "SIGNAL_GENERATOR_TIMECODE_MODE_NONE":
7709
+ case 0:
7710
+ message.timecodeMode = 0;
7711
+ break;
7712
+ case "SIGNAL_GENERATOR_TIMECODE_MODE_FREE_RUN":
7713
+ case 1:
7714
+ message.timecodeMode = 1;
7715
+ break;
7716
+ case "SIGNAL_GENERATOR_TIMECODE_MODE_TIME_OF_DAY":
7717
+ case 2:
7718
+ message.timecodeMode = 2;
7719
+ break;
7720
+ }
7721
+ if (object.timecodeStartFrame != null)
7722
+ message.timecodeStartFrame = object.timecodeStartFrame >>> 0;
7567
7723
  return message;
7568
7724
  };
7569
7725
  SignalGeneratorSourceConfig.toObject = function toObject(message, options) {
@@ -7574,6 +7730,8 @@ var sesame = $root.sesame = (() => {
7574
7730
  object.freeze = false;
7575
7731
  object.videoPattern = options.enums === String ? "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS" : 0;
7576
7732
  object.audioMode = options.enums === String ? "SIGNAL_GENERATOR_AUDIO_MODE_SYNC" : 0;
7733
+ object.timecodeMode = options.enums === String ? "SIGNAL_GENERATOR_TIMECODE_MODE_NONE" : 0;
7734
+ object.timecodeStartFrame = 0;
7577
7735
  }
7578
7736
  if (message.freeze != null && message.hasOwnProperty("freeze"))
7579
7737
  object.freeze = message.freeze;
@@ -7581,6 +7739,10 @@ var sesame = $root.sesame = (() => {
7581
7739
  object.videoPattern = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] === void 0 ? message.videoPattern : $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] : message.videoPattern;
7582
7740
  if (message.audioMode != null && message.hasOwnProperty("audioMode"))
7583
7741
  object.audioMode = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorAudioMode[message.audioMode] === void 0 ? message.audioMode : $root.sesame.v1.sources.SignalGeneratorAudioMode[message.audioMode] : message.audioMode;
7742
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
7743
+ object.timecodeMode = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorTimecodeMode[message.timecodeMode] === void 0 ? message.timecodeMode : $root.sesame.v1.sources.SignalGeneratorTimecodeMode[message.timecodeMode] : message.timecodeMode;
7744
+ if (message.timecodeStartFrame != null && message.hasOwnProperty("timecodeStartFrame"))
7745
+ object.timecodeStartFrame = message.timecodeStartFrame;
7584
7746
  return object;
7585
7747
  };
7586
7748
  SignalGeneratorSourceConfig.prototype.toJSON = function toJSON() {
@@ -9121,6 +9283,7 @@ var sesame = $root.sesame = (() => {
9121
9283
  case 4:
9122
9284
  case 5:
9123
9285
  case 6:
9286
+ case 7:
9124
9287
  break;
9125
9288
  }
9126
9289
  if (message.transportState != null && message.hasOwnProperty("transportState"))
@@ -9301,6 +9464,10 @@ var sesame = $root.sesame = (() => {
9301
9464
  case 6:
9302
9465
  message.state = 6;
9303
9466
  break;
9467
+ case "CONNECTION_STATE_DISABLED":
9468
+ case 7:
9469
+ message.state = 7;
9470
+ break;
9304
9471
  }
9305
9472
  switch (object.transportState) {
9306
9473
  default:
@@ -14707,6 +14874,8 @@ var sesame = $root.sesame = (() => {
14707
14874
  SystemStatus.prototype.gpuName = "";
14708
14875
  SystemStatus.prototype.vmaBytes = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
14709
14876
  SystemStatus.prototype.version = "";
14877
+ SystemStatus.prototype.nvencSessions = 0;
14878
+ SystemStatus.prototype.nvdecSessions = 0;
14710
14879
  SystemStatus.create = function create(properties) {
14711
14880
  return new SystemStatus(properties);
14712
14881
  };
@@ -14803,6 +14972,16 @@ var sesame = $root.sesame = (() => {
14803
14972
  /* id 18, wireType 2 =*/
14804
14973
  146
14805
14974
  ).string(message.version);
14975
+ if (message.nvencSessions != null && Object.hasOwnProperty.call(message, "nvencSessions"))
14976
+ writer.uint32(
14977
+ /* id 19, wireType 0 =*/
14978
+ 152
14979
+ ).uint32(message.nvencSessions);
14980
+ if (message.nvdecSessions != null && Object.hasOwnProperty.call(message, "nvdecSessions"))
14981
+ writer.uint32(
14982
+ /* id 20, wireType 0 =*/
14983
+ 160
14984
+ ).uint32(message.nvdecSessions);
14806
14985
  return writer;
14807
14986
  };
14808
14987
  SystemStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -14889,6 +15068,14 @@ var sesame = $root.sesame = (() => {
14889
15068
  message.version = reader.string();
14890
15069
  break;
14891
15070
  }
15071
+ case 19: {
15072
+ message.nvencSessions = reader.uint32();
15073
+ break;
15074
+ }
15075
+ case 20: {
15076
+ message.nvdecSessions = reader.uint32();
15077
+ break;
15078
+ }
14892
15079
  default:
14893
15080
  reader.skipType(tag & 7);
14894
15081
  break;
@@ -14980,6 +15167,14 @@ var sesame = $root.sesame = (() => {
14980
15167
  if (!$util.isString(message.version))
14981
15168
  return "version: string expected";
14982
15169
  }
15170
+ if (message.nvencSessions != null && message.hasOwnProperty("nvencSessions")) {
15171
+ if (!$util.isInteger(message.nvencSessions))
15172
+ return "nvencSessions: integer expected";
15173
+ }
15174
+ if (message.nvdecSessions != null && message.hasOwnProperty("nvdecSessions")) {
15175
+ if (!$util.isInteger(message.nvdecSessions))
15176
+ return "nvdecSessions: integer expected";
15177
+ }
14983
15178
  return null;
14984
15179
  };
14985
15180
  SystemStatus.fromObject = function fromObject(object) {
@@ -15082,6 +15277,10 @@ var sesame = $root.sesame = (() => {
15082
15277
  }
15083
15278
  if (object.version != null)
15084
15279
  message.version = String(object.version);
15280
+ if (object.nvencSessions != null)
15281
+ message.nvencSessions = object.nvencSessions >>> 0;
15282
+ if (object.nvdecSessions != null)
15283
+ message.nvdecSessions = object.nvdecSessions >>> 0;
15085
15284
  return message;
15086
15285
  };
15087
15286
  SystemStatus.toObject = function toObject(message, options) {
@@ -15131,6 +15330,8 @@ var sesame = $root.sesame = (() => {
15131
15330
  } else
15132
15331
  object.vmaBytes = options.longs === String ? "0" : 0;
15133
15332
  object.version = "";
15333
+ object.nvencSessions = 0;
15334
+ object.nvdecSessions = 0;
15134
15335
  }
15135
15336
  if (message.uptime != null && message.hasOwnProperty("uptime"))
15136
15337
  if (typeof message.uptime === "number")
@@ -15186,6 +15387,10 @@ var sesame = $root.sesame = (() => {
15186
15387
  object.vmaBytes = options.longs === String ? $util.Long.prototype.toString.call(message.vmaBytes) : options.longs === Number ? new $util.LongBits(message.vmaBytes.low >>> 0, message.vmaBytes.high >>> 0).toNumber(true) : message.vmaBytes;
15187
15388
  if (message.version != null && message.hasOwnProperty("version"))
15188
15389
  object.version = message.version;
15390
+ if (message.nvencSessions != null && message.hasOwnProperty("nvencSessions"))
15391
+ object.nvencSessions = message.nvencSessions;
15392
+ if (message.nvdecSessions != null && message.hasOwnProperty("nvdecSessions"))
15393
+ object.nvdecSessions = message.nvdecSessions;
15189
15394
  return object;
15190
15395
  };
15191
15396
  SystemStatus.prototype.toJSON = function toJSON() {
@@ -17239,117 +17444,219 @@ var sesame = $root.sesame = (() => {
17239
17444
  values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
17240
17445
  return values;
17241
17446
  }();
17242
- outputs.EncoderPreset = function() {
17447
+ outputs.EncoderTuning = function() {
17243
17448
  const valuesById = {}, values = Object.create(valuesById);
17244
- values[valuesById[0] = "ENCODER_PRESET_UNSPECIFIED"] = 0;
17245
- values[valuesById[1] = "ENCODER_PRESET_LOW_LATENCY"] = 1;
17246
- values[valuesById[2] = "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY"] = 2;
17247
- values[valuesById[3] = "ENCODER_PRESET_HIGH_QUALITY"] = 3;
17449
+ values[valuesById[0] = "ENCODER_TUNING_UNSPECIFIED"] = 0;
17450
+ values[valuesById[1] = "ENCODER_TUNING_ULTRA_LOW_LATENCY"] = 1;
17451
+ values[valuesById[2] = "ENCODER_TUNING_LOW_LATENCY"] = 2;
17452
+ values[valuesById[3] = "ENCODER_TUNING_HIGH_QUALITY"] = 3;
17248
17453
  return values;
17249
17454
  }();
17250
- outputs.RecorderType = function() {
17455
+ outputs.EncoderRateControl = function() {
17251
17456
  const valuesById = {}, values = Object.create(valuesById);
17252
- values[valuesById[0] = "RECORDER_TYPE_UNSPECIFIED"] = 0;
17253
- values[valuesById[1] = "RECORDER_TYPE_LIVE"] = 1;
17254
- values[valuesById[2] = "RECORDER_TYPE_CLIPS"] = 2;
17457
+ values[valuesById[0] = "ENCODER_RATE_CONTROL_UNSPECIFIED"] = 0;
17458
+ values[valuesById[1] = "ENCODER_RATE_CONTROL_CBR"] = 1;
17459
+ values[valuesById[2] = "ENCODER_RATE_CONTROL_VBR"] = 2;
17255
17460
  return values;
17256
17461
  }();
17257
- outputs.EncoderConfig = function() {
17258
- function EncoderConfig(properties) {
17462
+ outputs.EncoderProfile = function() {
17463
+ const valuesById = {}, values = Object.create(valuesById);
17464
+ values[valuesById[0] = "ENCODER_PROFILE_AUTO"] = 0;
17465
+ values[valuesById[1] = "ENCODER_PROFILE_BASELINE"] = 1;
17466
+ values[valuesById[2] = "ENCODER_PROFILE_MAIN"] = 2;
17467
+ values[valuesById[3] = "ENCODER_PROFILE_MAIN10"] = 3;
17468
+ values[valuesById[4] = "ENCODER_PROFILE_HIGH"] = 4;
17469
+ return values;
17470
+ }();
17471
+ outputs.EncoderMultipass = function() {
17472
+ const valuesById = {}, values = Object.create(valuesById);
17473
+ values[valuesById[0] = "ENCODER_MULTIPASS_DISABLED"] = 0;
17474
+ values[valuesById[1] = "ENCODER_MULTIPASS_QUARTER_RESOLUTION"] = 1;
17475
+ values[valuesById[2] = "ENCODER_MULTIPASS_FULL_RESOLUTION"] = 2;
17476
+ return values;
17477
+ }();
17478
+ outputs.EncoderChromaFormat = function() {
17479
+ const valuesById = {}, values = Object.create(valuesById);
17480
+ values[valuesById[0] = "ENCODER_CHROMA_FORMAT_420"] = 0;
17481
+ values[valuesById[1] = "ENCODER_CHROMA_FORMAT_444"] = 1;
17482
+ return values;
17483
+ }();
17484
+ outputs.EncoderSettings = function() {
17485
+ function EncoderSettings(properties) {
17259
17486
  if (properties) {
17260
17487
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17261
17488
  if (properties[keys[i]] != null)
17262
17489
  this[keys[i]] = properties[keys[i]];
17263
17490
  }
17264
17491
  }
17265
- EncoderConfig.prototype.codec = 0;
17266
- EncoderConfig.prototype.preset = 0;
17267
- EncoderConfig.prototype.bitrateKbps = 0;
17268
- EncoderConfig.prototype.keyframeInterval = 0;
17269
- EncoderConfig.prototype.width = 0;
17270
- EncoderConfig.prototype.height = 0;
17271
- EncoderConfig.prototype.fps = 0;
17272
- EncoderConfig.create = function create(properties) {
17273
- return new EncoderConfig(properties);
17274
- };
17275
- EncoderConfig.encode = function encode(message, writer) {
17492
+ EncoderSettings.prototype.tuning = 0;
17493
+ EncoderSettings.prototype.effort = 0;
17494
+ EncoderSettings.prototype.rateControl = 0;
17495
+ EncoderSettings.prototype.maxBitrateKbps = 0;
17496
+ EncoderSettings.prototype.profile = 0;
17497
+ EncoderSettings.prototype.bframes = 0;
17498
+ EncoderSettings.prototype.idrOnly = false;
17499
+ EncoderSettings.prototype.spatialAq = false;
17500
+ EncoderSettings.prototype.multipass = 0;
17501
+ EncoderSettings.prototype.lookaheadDepth = 0;
17502
+ EncoderSettings.prototype.zeroReorderDelay = false;
17503
+ EncoderSettings.prototype.bitDepth = 0;
17504
+ EncoderSettings.prototype.chromaFormat = 0;
17505
+ EncoderSettings.prototype.outputAud = false;
17506
+ EncoderSettings.prototype.level = "";
17507
+ EncoderSettings.create = function create(properties) {
17508
+ return new EncoderSettings(properties);
17509
+ };
17510
+ EncoderSettings.encode = function encode(message, writer) {
17276
17511
  if (!writer)
17277
17512
  writer = $Writer.create();
17278
- if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
17513
+ if (message.tuning != null && Object.hasOwnProperty.call(message, "tuning"))
17279
17514
  writer.uint32(
17280
17515
  /* id 1, wireType 0 =*/
17281
17516
  8
17282
- ).int32(message.codec);
17283
- if (message.preset != null && Object.hasOwnProperty.call(message, "preset"))
17517
+ ).int32(message.tuning);
17518
+ if (message.effort != null && Object.hasOwnProperty.call(message, "effort"))
17284
17519
  writer.uint32(
17285
17520
  /* id 2, wireType 0 =*/
17286
17521
  16
17287
- ).int32(message.preset);
17288
- if (message.bitrateKbps != null && Object.hasOwnProperty.call(message, "bitrateKbps"))
17522
+ ).uint32(message.effort);
17523
+ if (message.rateControl != null && Object.hasOwnProperty.call(message, "rateControl"))
17289
17524
  writer.uint32(
17290
17525
  /* id 3, wireType 0 =*/
17291
17526
  24
17292
- ).uint32(message.bitrateKbps);
17293
- if (message.keyframeInterval != null && Object.hasOwnProperty.call(message, "keyframeInterval"))
17527
+ ).int32(message.rateControl);
17528
+ if (message.maxBitrateKbps != null && Object.hasOwnProperty.call(message, "maxBitrateKbps"))
17294
17529
  writer.uint32(
17295
17530
  /* id 4, wireType 0 =*/
17296
17531
  32
17297
- ).uint32(message.keyframeInterval);
17298
- if (message.width != null && Object.hasOwnProperty.call(message, "width"))
17532
+ ).uint32(message.maxBitrateKbps);
17533
+ if (message.profile != null && Object.hasOwnProperty.call(message, "profile"))
17299
17534
  writer.uint32(
17300
17535
  /* id 5, wireType 0 =*/
17301
17536
  40
17302
- ).uint32(message.width);
17303
- if (message.height != null && Object.hasOwnProperty.call(message, "height"))
17537
+ ).int32(message.profile);
17538
+ if (message.bframes != null && Object.hasOwnProperty.call(message, "bframes"))
17304
17539
  writer.uint32(
17305
17540
  /* id 6, wireType 0 =*/
17306
17541
  48
17307
- ).uint32(message.height);
17308
- if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
17542
+ ).uint32(message.bframes);
17543
+ if (message.idrOnly != null && Object.hasOwnProperty.call(message, "idrOnly"))
17309
17544
  writer.uint32(
17310
- /* id 7, wireType 5 =*/
17311
- 61
17312
- ).float(message.fps);
17545
+ /* id 7, wireType 0 =*/
17546
+ 56
17547
+ ).bool(message.idrOnly);
17548
+ if (message.spatialAq != null && Object.hasOwnProperty.call(message, "spatialAq"))
17549
+ writer.uint32(
17550
+ /* id 8, wireType 0 =*/
17551
+ 64
17552
+ ).bool(message.spatialAq);
17553
+ if (message.multipass != null && Object.hasOwnProperty.call(message, "multipass"))
17554
+ writer.uint32(
17555
+ /* id 9, wireType 0 =*/
17556
+ 72
17557
+ ).int32(message.multipass);
17558
+ if (message.lookaheadDepth != null && Object.hasOwnProperty.call(message, "lookaheadDepth"))
17559
+ writer.uint32(
17560
+ /* id 10, wireType 0 =*/
17561
+ 80
17562
+ ).uint32(message.lookaheadDepth);
17563
+ if (message.zeroReorderDelay != null && Object.hasOwnProperty.call(message, "zeroReorderDelay"))
17564
+ writer.uint32(
17565
+ /* id 11, wireType 0 =*/
17566
+ 88
17567
+ ).bool(message.zeroReorderDelay);
17568
+ if (message.bitDepth != null && Object.hasOwnProperty.call(message, "bitDepth"))
17569
+ writer.uint32(
17570
+ /* id 12, wireType 0 =*/
17571
+ 96
17572
+ ).uint32(message.bitDepth);
17573
+ if (message.chromaFormat != null && Object.hasOwnProperty.call(message, "chromaFormat"))
17574
+ writer.uint32(
17575
+ /* id 13, wireType 0 =*/
17576
+ 104
17577
+ ).int32(message.chromaFormat);
17578
+ if (message.outputAud != null && Object.hasOwnProperty.call(message, "outputAud"))
17579
+ writer.uint32(
17580
+ /* id 14, wireType 0 =*/
17581
+ 112
17582
+ ).bool(message.outputAud);
17583
+ if (message.level != null && Object.hasOwnProperty.call(message, "level"))
17584
+ writer.uint32(
17585
+ /* id 15, wireType 2 =*/
17586
+ 122
17587
+ ).string(message.level);
17313
17588
  return writer;
17314
17589
  };
17315
- EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
17590
+ EncoderSettings.encodeDelimited = function encodeDelimited(message, writer) {
17316
17591
  return this.encode(message, writer).ldelim();
17317
17592
  };
17318
- EncoderConfig.decode = function decode(reader, length, error) {
17593
+ EncoderSettings.decode = function decode(reader, length, error) {
17319
17594
  if (!(reader instanceof $Reader))
17320
17595
  reader = $Reader.create(reader);
17321
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderConfig();
17596
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderSettings();
17322
17597
  while (reader.pos < end) {
17323
17598
  let tag = reader.uint32();
17324
17599
  if (tag === error)
17325
17600
  break;
17326
17601
  switch (tag >>> 3) {
17327
17602
  case 1: {
17328
- message.codec = reader.int32();
17603
+ message.tuning = reader.int32();
17329
17604
  break;
17330
17605
  }
17331
17606
  case 2: {
17332
- message.preset = reader.int32();
17607
+ message.effort = reader.uint32();
17333
17608
  break;
17334
17609
  }
17335
17610
  case 3: {
17336
- message.bitrateKbps = reader.uint32();
17611
+ message.rateControl = reader.int32();
17337
17612
  break;
17338
17613
  }
17339
17614
  case 4: {
17340
- message.keyframeInterval = reader.uint32();
17615
+ message.maxBitrateKbps = reader.uint32();
17341
17616
  break;
17342
17617
  }
17343
17618
  case 5: {
17344
- message.width = reader.uint32();
17619
+ message.profile = reader.int32();
17345
17620
  break;
17346
17621
  }
17347
17622
  case 6: {
17348
- message.height = reader.uint32();
17623
+ message.bframes = reader.uint32();
17349
17624
  break;
17350
17625
  }
17351
17626
  case 7: {
17352
- message.fps = reader.float();
17627
+ message.idrOnly = reader.bool();
17628
+ break;
17629
+ }
17630
+ case 8: {
17631
+ message.spatialAq = reader.bool();
17632
+ break;
17633
+ }
17634
+ case 9: {
17635
+ message.multipass = reader.int32();
17636
+ break;
17637
+ }
17638
+ case 10: {
17639
+ message.lookaheadDepth = reader.uint32();
17640
+ break;
17641
+ }
17642
+ case 11: {
17643
+ message.zeroReorderDelay = reader.bool();
17644
+ break;
17645
+ }
17646
+ case 12: {
17647
+ message.bitDepth = reader.uint32();
17648
+ break;
17649
+ }
17650
+ case 13: {
17651
+ message.chromaFormat = reader.int32();
17652
+ break;
17653
+ }
17654
+ case 14: {
17655
+ message.outputAud = reader.bool();
17656
+ break;
17657
+ }
17658
+ case 15: {
17659
+ message.level = reader.string();
17353
17660
  break;
17354
17661
  }
17355
17662
  default:
@@ -17359,256 +17666,431 @@ var sesame = $root.sesame = (() => {
17359
17666
  }
17360
17667
  return message;
17361
17668
  };
17362
- EncoderConfig.decodeDelimited = function decodeDelimited(reader) {
17669
+ EncoderSettings.decodeDelimited = function decodeDelimited(reader) {
17363
17670
  if (!(reader instanceof $Reader))
17364
17671
  reader = new $Reader(reader);
17365
17672
  return this.decode(reader, reader.uint32());
17366
17673
  };
17367
- EncoderConfig.verify = function verify(message) {
17674
+ EncoderSettings.verify = function verify(message) {
17368
17675
  if (typeof message !== "object" || message === null)
17369
17676
  return "object expected";
17370
- if (message.codec != null && message.hasOwnProperty("codec"))
17371
- switch (message.codec) {
17677
+ if (message.tuning != null && message.hasOwnProperty("tuning"))
17678
+ switch (message.tuning) {
17372
17679
  default:
17373
- return "codec: enum value expected";
17680
+ return "tuning: enum value expected";
17374
17681
  case 0:
17375
17682
  case 1:
17376
17683
  case 2:
17377
17684
  case 3:
17378
- case 4:
17379
- case 5:
17380
- case 6:
17381
- case 7:
17382
- case 64:
17383
- case 65:
17384
- case 66:
17385
- case 67:
17386
17685
  break;
17387
17686
  }
17388
- if (message.preset != null && message.hasOwnProperty("preset"))
17389
- switch (message.preset) {
17687
+ if (message.effort != null && message.hasOwnProperty("effort")) {
17688
+ if (!$util.isInteger(message.effort))
17689
+ return "effort: integer expected";
17690
+ }
17691
+ if (message.rateControl != null && message.hasOwnProperty("rateControl"))
17692
+ switch (message.rateControl) {
17693
+ default:
17694
+ return "rateControl: enum value expected";
17695
+ case 0:
17696
+ case 1:
17697
+ case 2:
17698
+ break;
17699
+ }
17700
+ if (message.maxBitrateKbps != null && message.hasOwnProperty("maxBitrateKbps")) {
17701
+ if (!$util.isInteger(message.maxBitrateKbps))
17702
+ return "maxBitrateKbps: integer expected";
17703
+ }
17704
+ if (message.profile != null && message.hasOwnProperty("profile"))
17705
+ switch (message.profile) {
17390
17706
  default:
17391
- return "preset: enum value expected";
17707
+ return "profile: enum value expected";
17392
17708
  case 0:
17393
17709
  case 1:
17394
17710
  case 2:
17395
17711
  case 3:
17712
+ case 4:
17396
17713
  break;
17397
17714
  }
17398
- if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
17399
- if (!$util.isInteger(message.bitrateKbps))
17400
- return "bitrateKbps: integer expected";
17715
+ if (message.bframes != null && message.hasOwnProperty("bframes")) {
17716
+ if (!$util.isInteger(message.bframes))
17717
+ return "bframes: integer expected";
17401
17718
  }
17402
- if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
17403
- if (!$util.isInteger(message.keyframeInterval))
17404
- return "keyframeInterval: integer expected";
17719
+ if (message.idrOnly != null && message.hasOwnProperty("idrOnly")) {
17720
+ if (typeof message.idrOnly !== "boolean")
17721
+ return "idrOnly: boolean expected";
17405
17722
  }
17406
- if (message.width != null && message.hasOwnProperty("width")) {
17407
- if (!$util.isInteger(message.width))
17408
- return "width: integer expected";
17723
+ if (message.spatialAq != null && message.hasOwnProperty("spatialAq")) {
17724
+ if (typeof message.spatialAq !== "boolean")
17725
+ return "spatialAq: boolean expected";
17409
17726
  }
17410
- if (message.height != null && message.hasOwnProperty("height")) {
17411
- if (!$util.isInteger(message.height))
17412
- return "height: integer expected";
17727
+ if (message.multipass != null && message.hasOwnProperty("multipass"))
17728
+ switch (message.multipass) {
17729
+ default:
17730
+ return "multipass: enum value expected";
17731
+ case 0:
17732
+ case 1:
17733
+ case 2:
17734
+ break;
17735
+ }
17736
+ if (message.lookaheadDepth != null && message.hasOwnProperty("lookaheadDepth")) {
17737
+ if (!$util.isInteger(message.lookaheadDepth))
17738
+ return "lookaheadDepth: integer expected";
17413
17739
  }
17414
- if (message.fps != null && message.hasOwnProperty("fps")) {
17415
- if (typeof message.fps !== "number")
17416
- return "fps: number expected";
17740
+ if (message.zeroReorderDelay != null && message.hasOwnProperty("zeroReorderDelay")) {
17741
+ if (typeof message.zeroReorderDelay !== "boolean")
17742
+ return "zeroReorderDelay: boolean expected";
17417
17743
  }
17418
- return null;
17419
- };
17420
- EncoderConfig.fromObject = function fromObject(object) {
17421
- if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
17422
- return object;
17423
- let message = new $root.sesame.v1.outputs.EncoderConfig();
17424
- switch (object.codec) {
17425
- default:
17426
- if (typeof object.codec === "number") {
17427
- message.codec = object.codec;
17428
- break;
17429
- }
17744
+ if (message.bitDepth != null && message.hasOwnProperty("bitDepth")) {
17745
+ if (!$util.isInteger(message.bitDepth))
17746
+ return "bitDepth: integer expected";
17747
+ }
17748
+ if (message.chromaFormat != null && message.hasOwnProperty("chromaFormat"))
17749
+ switch (message.chromaFormat) {
17750
+ default:
17751
+ return "chromaFormat: enum value expected";
17752
+ case 0:
17753
+ case 1:
17754
+ break;
17755
+ }
17756
+ if (message.outputAud != null && message.hasOwnProperty("outputAud")) {
17757
+ if (typeof message.outputAud !== "boolean")
17758
+ return "outputAud: boolean expected";
17759
+ }
17760
+ if (message.level != null && message.hasOwnProperty("level")) {
17761
+ if (!$util.isString(message.level))
17762
+ return "level: string expected";
17763
+ }
17764
+ return null;
17765
+ };
17766
+ EncoderSettings.fromObject = function fromObject(object) {
17767
+ if (object instanceof $root.sesame.v1.outputs.EncoderSettings)
17768
+ return object;
17769
+ let message = new $root.sesame.v1.outputs.EncoderSettings();
17770
+ switch (object.tuning) {
17771
+ default:
17772
+ if (typeof object.tuning === "number") {
17773
+ message.tuning = object.tuning;
17774
+ break;
17775
+ }
17430
17776
  break;
17431
- case "CODEC_TYPE_UNSPECIFIED":
17777
+ case "ENCODER_TUNING_UNSPECIFIED":
17432
17778
  case 0:
17433
- message.codec = 0;
17779
+ message.tuning = 0;
17434
17780
  break;
17435
- case "CODEC_TYPE_VIDEO_VP8":
17781
+ case "ENCODER_TUNING_ULTRA_LOW_LATENCY":
17436
17782
  case 1:
17437
- message.codec = 1;
17783
+ message.tuning = 1;
17438
17784
  break;
17439
- case "CODEC_TYPE_VIDEO_VP9":
17785
+ case "ENCODER_TUNING_LOW_LATENCY":
17440
17786
  case 2:
17441
- message.codec = 2;
17787
+ message.tuning = 2;
17442
17788
  break;
17443
- case "CODEC_TYPE_VIDEO_AVC":
17789
+ case "ENCODER_TUNING_HIGH_QUALITY":
17444
17790
  case 3:
17445
- message.codec = 3;
17791
+ message.tuning = 3;
17446
17792
  break;
17447
- case "CODEC_TYPE_VIDEO_HEVC":
17448
- case 4:
17449
- message.codec = 4;
17793
+ }
17794
+ if (object.effort != null)
17795
+ message.effort = object.effort >>> 0;
17796
+ switch (object.rateControl) {
17797
+ default:
17798
+ if (typeof object.rateControl === "number") {
17799
+ message.rateControl = object.rateControl;
17800
+ break;
17801
+ }
17450
17802
  break;
17451
- case "CODEC_TYPE_VIDEO_AV1":
17452
- case 5:
17453
- message.codec = 5;
17803
+ case "ENCODER_RATE_CONTROL_UNSPECIFIED":
17804
+ case 0:
17805
+ message.rateControl = 0;
17454
17806
  break;
17455
- case "CODEC_TYPE_VIDEO_PRORES":
17456
- case 6:
17457
- message.codec = 6;
17807
+ case "ENCODER_RATE_CONTROL_CBR":
17808
+ case 1:
17809
+ message.rateControl = 1;
17458
17810
  break;
17459
- case "CODEC_TYPE_VIDEO_DNXHR":
17460
- case 7:
17461
- message.codec = 7;
17811
+ case "ENCODER_RATE_CONTROL_VBR":
17812
+ case 2:
17813
+ message.rateControl = 2;
17462
17814
  break;
17463
- case "CODEC_TYPE_AUDIO_OPUS":
17464
- case 64:
17465
- message.codec = 64;
17815
+ }
17816
+ if (object.maxBitrateKbps != null)
17817
+ message.maxBitrateKbps = object.maxBitrateKbps >>> 0;
17818
+ switch (object.profile) {
17819
+ default:
17820
+ if (typeof object.profile === "number") {
17821
+ message.profile = object.profile;
17822
+ break;
17823
+ }
17466
17824
  break;
17467
- case "CODEC_TYPE_AUDIO_AAC":
17468
- case 65:
17469
- message.codec = 65;
17825
+ case "ENCODER_PROFILE_AUTO":
17826
+ case 0:
17827
+ message.profile = 0;
17470
17828
  break;
17471
- case "CODEC_TYPE_AUDIO_PCM":
17472
- case 66:
17473
- message.codec = 66;
17829
+ case "ENCODER_PROFILE_BASELINE":
17830
+ case 1:
17831
+ message.profile = 1;
17474
17832
  break;
17475
- case "CODEC_TYPE_AUDIO_PCM_S24LE":
17476
- case 67:
17477
- message.codec = 67;
17833
+ case "ENCODER_PROFILE_MAIN":
17834
+ case 2:
17835
+ message.profile = 2;
17836
+ break;
17837
+ case "ENCODER_PROFILE_MAIN10":
17838
+ case 3:
17839
+ message.profile = 3;
17840
+ break;
17841
+ case "ENCODER_PROFILE_HIGH":
17842
+ case 4:
17843
+ message.profile = 4;
17478
17844
  break;
17479
17845
  }
17480
- switch (object.preset) {
17846
+ if (object.bframes != null)
17847
+ message.bframes = object.bframes >>> 0;
17848
+ if (object.idrOnly != null)
17849
+ message.idrOnly = Boolean(object.idrOnly);
17850
+ if (object.spatialAq != null)
17851
+ message.spatialAq = Boolean(object.spatialAq);
17852
+ switch (object.multipass) {
17481
17853
  default:
17482
- if (typeof object.preset === "number") {
17483
- message.preset = object.preset;
17854
+ if (typeof object.multipass === "number") {
17855
+ message.multipass = object.multipass;
17484
17856
  break;
17485
17857
  }
17486
17858
  break;
17487
- case "ENCODER_PRESET_UNSPECIFIED":
17859
+ case "ENCODER_MULTIPASS_DISABLED":
17488
17860
  case 0:
17489
- message.preset = 0;
17861
+ message.multipass = 0;
17490
17862
  break;
17491
- case "ENCODER_PRESET_LOW_LATENCY":
17863
+ case "ENCODER_MULTIPASS_QUARTER_RESOLUTION":
17492
17864
  case 1:
17493
- message.preset = 1;
17865
+ message.multipass = 1;
17494
17866
  break;
17495
- case "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY":
17867
+ case "ENCODER_MULTIPASS_FULL_RESOLUTION":
17496
17868
  case 2:
17497
- message.preset = 2;
17869
+ message.multipass = 2;
17498
17870
  break;
17499
- case "ENCODER_PRESET_HIGH_QUALITY":
17500
- case 3:
17501
- message.preset = 3;
17871
+ }
17872
+ if (object.lookaheadDepth != null)
17873
+ message.lookaheadDepth = object.lookaheadDepth >>> 0;
17874
+ if (object.zeroReorderDelay != null)
17875
+ message.zeroReorderDelay = Boolean(object.zeroReorderDelay);
17876
+ if (object.bitDepth != null)
17877
+ message.bitDepth = object.bitDepth >>> 0;
17878
+ switch (object.chromaFormat) {
17879
+ default:
17880
+ if (typeof object.chromaFormat === "number") {
17881
+ message.chromaFormat = object.chromaFormat;
17882
+ break;
17883
+ }
17884
+ break;
17885
+ case "ENCODER_CHROMA_FORMAT_420":
17886
+ case 0:
17887
+ message.chromaFormat = 0;
17888
+ break;
17889
+ case "ENCODER_CHROMA_FORMAT_444":
17890
+ case 1:
17891
+ message.chromaFormat = 1;
17502
17892
  break;
17503
17893
  }
17504
- if (object.bitrateKbps != null)
17505
- message.bitrateKbps = object.bitrateKbps >>> 0;
17506
- if (object.keyframeInterval != null)
17507
- message.keyframeInterval = object.keyframeInterval >>> 0;
17508
- if (object.width != null)
17509
- message.width = object.width >>> 0;
17510
- if (object.height != null)
17511
- message.height = object.height >>> 0;
17512
- if (object.fps != null)
17513
- message.fps = Number(object.fps);
17894
+ if (object.outputAud != null)
17895
+ message.outputAud = Boolean(object.outputAud);
17896
+ if (object.level != null)
17897
+ message.level = String(object.level);
17514
17898
  return message;
17515
17899
  };
17516
- EncoderConfig.toObject = function toObject(message, options) {
17900
+ EncoderSettings.toObject = function toObject(message, options) {
17517
17901
  if (!options)
17518
17902
  options = {};
17519
17903
  let object = {};
17520
17904
  if (options.defaults) {
17521
- object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
17522
- object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
17523
- object.bitrateKbps = 0;
17524
- object.keyframeInterval = 0;
17525
- object.width = 0;
17526
- object.height = 0;
17527
- object.fps = 0;
17905
+ object.tuning = options.enums === String ? "ENCODER_TUNING_UNSPECIFIED" : 0;
17906
+ object.effort = 0;
17907
+ object.rateControl = options.enums === String ? "ENCODER_RATE_CONTROL_UNSPECIFIED" : 0;
17908
+ object.maxBitrateKbps = 0;
17909
+ object.profile = options.enums === String ? "ENCODER_PROFILE_AUTO" : 0;
17910
+ object.bframes = 0;
17911
+ object.idrOnly = false;
17912
+ object.spatialAq = false;
17913
+ object.multipass = options.enums === String ? "ENCODER_MULTIPASS_DISABLED" : 0;
17914
+ object.lookaheadDepth = 0;
17915
+ object.zeroReorderDelay = false;
17916
+ object.bitDepth = 0;
17917
+ object.chromaFormat = options.enums === String ? "ENCODER_CHROMA_FORMAT_420" : 0;
17918
+ object.outputAud = false;
17919
+ object.level = "";
17528
17920
  }
17529
- if (message.codec != null && message.hasOwnProperty("codec"))
17530
- object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
17531
- if (message.preset != null && message.hasOwnProperty("preset"))
17532
- object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
17533
- if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
17534
- object.bitrateKbps = message.bitrateKbps;
17535
- if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
17536
- object.keyframeInterval = message.keyframeInterval;
17537
- if (message.width != null && message.hasOwnProperty("width"))
17538
- object.width = message.width;
17539
- if (message.height != null && message.hasOwnProperty("height"))
17540
- object.height = message.height;
17541
- if (message.fps != null && message.hasOwnProperty("fps"))
17542
- object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
17921
+ if (message.tuning != null && message.hasOwnProperty("tuning"))
17922
+ object.tuning = options.enums === String ? $root.sesame.v1.outputs.EncoderTuning[message.tuning] === void 0 ? message.tuning : $root.sesame.v1.outputs.EncoderTuning[message.tuning] : message.tuning;
17923
+ if (message.effort != null && message.hasOwnProperty("effort"))
17924
+ object.effort = message.effort;
17925
+ if (message.rateControl != null && message.hasOwnProperty("rateControl"))
17926
+ object.rateControl = options.enums === String ? $root.sesame.v1.outputs.EncoderRateControl[message.rateControl] === void 0 ? message.rateControl : $root.sesame.v1.outputs.EncoderRateControl[message.rateControl] : message.rateControl;
17927
+ if (message.maxBitrateKbps != null && message.hasOwnProperty("maxBitrateKbps"))
17928
+ object.maxBitrateKbps = message.maxBitrateKbps;
17929
+ if (message.profile != null && message.hasOwnProperty("profile"))
17930
+ object.profile = options.enums === String ? $root.sesame.v1.outputs.EncoderProfile[message.profile] === void 0 ? message.profile : $root.sesame.v1.outputs.EncoderProfile[message.profile] : message.profile;
17931
+ if (message.bframes != null && message.hasOwnProperty("bframes"))
17932
+ object.bframes = message.bframes;
17933
+ if (message.idrOnly != null && message.hasOwnProperty("idrOnly"))
17934
+ object.idrOnly = message.idrOnly;
17935
+ if (message.spatialAq != null && message.hasOwnProperty("spatialAq"))
17936
+ object.spatialAq = message.spatialAq;
17937
+ if (message.multipass != null && message.hasOwnProperty("multipass"))
17938
+ object.multipass = options.enums === String ? $root.sesame.v1.outputs.EncoderMultipass[message.multipass] === void 0 ? message.multipass : $root.sesame.v1.outputs.EncoderMultipass[message.multipass] : message.multipass;
17939
+ if (message.lookaheadDepth != null && message.hasOwnProperty("lookaheadDepth"))
17940
+ object.lookaheadDepth = message.lookaheadDepth;
17941
+ if (message.zeroReorderDelay != null && message.hasOwnProperty("zeroReorderDelay"))
17942
+ object.zeroReorderDelay = message.zeroReorderDelay;
17943
+ if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
17944
+ object.bitDepth = message.bitDepth;
17945
+ if (message.chromaFormat != null && message.hasOwnProperty("chromaFormat"))
17946
+ object.chromaFormat = options.enums === String ? $root.sesame.v1.outputs.EncoderChromaFormat[message.chromaFormat] === void 0 ? message.chromaFormat : $root.sesame.v1.outputs.EncoderChromaFormat[message.chromaFormat] : message.chromaFormat;
17947
+ if (message.outputAud != null && message.hasOwnProperty("outputAud"))
17948
+ object.outputAud = message.outputAud;
17949
+ if (message.level != null && message.hasOwnProperty("level"))
17950
+ object.level = message.level;
17543
17951
  return object;
17544
17952
  };
17545
- EncoderConfig.prototype.toJSON = function toJSON() {
17953
+ EncoderSettings.prototype.toJSON = function toJSON() {
17546
17954
  return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17547
17955
  };
17548
- EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17956
+ EncoderSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17549
17957
  if (typeUrlPrefix === void 0) {
17550
17958
  typeUrlPrefix = "type.googleapis.com";
17551
17959
  }
17552
- return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
17960
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderSettings";
17553
17961
  };
17554
- return EncoderConfig;
17962
+ return EncoderSettings;
17555
17963
  }();
17556
- outputs.EncoderAddRequest = function() {
17557
- function EncoderAddRequest(properties) {
17964
+ outputs.RecorderType = function() {
17965
+ const valuesById = {}, values = Object.create(valuesById);
17966
+ values[valuesById[0] = "RECORDER_TYPE_UNSPECIFIED"] = 0;
17967
+ values[valuesById[1] = "RECORDER_TYPE_LIVE"] = 1;
17968
+ values[valuesById[2] = "RECORDER_TYPE_CLIPS"] = 2;
17969
+ return values;
17970
+ }();
17971
+ outputs.TimecodeMode = function() {
17972
+ const valuesById = {}, values = Object.create(valuesById);
17973
+ values[valuesById[0] = "TIMECODE_MODE_UNSPECIFIED"] = 0;
17974
+ values[valuesById[1] = "TIMECODE_MODE_WALLCLOCK"] = 1;
17975
+ values[valuesById[2] = "TIMECODE_MODE_SOURCE"] = 2;
17976
+ return values;
17977
+ }();
17978
+ outputs.EncoderConfig = function() {
17979
+ function EncoderConfig(properties) {
17558
17980
  if (properties) {
17559
17981
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17560
17982
  if (properties[keys[i]] != null)
17561
17983
  this[keys[i]] = properties[keys[i]];
17562
17984
  }
17563
17985
  }
17564
- EncoderAddRequest.prototype.id = "";
17565
- EncoderAddRequest.prototype.compositionId = "";
17566
- EncoderAddRequest.prototype.encoder = null;
17567
- EncoderAddRequest.create = function create(properties) {
17568
- return new EncoderAddRequest(properties);
17986
+ EncoderConfig.prototype.codec = 0;
17987
+ EncoderConfig.prototype.bitrateKbps = 0;
17988
+ EncoderConfig.prototype.keyframeInterval = 0;
17989
+ EncoderConfig.prototype.width = 0;
17990
+ EncoderConfig.prototype.height = 0;
17991
+ EncoderConfig.prototype.fps = 0;
17992
+ EncoderConfig.prototype.timecodeMode = 0;
17993
+ EncoderConfig.prototype.timecodeSourceId = "";
17994
+ EncoderConfig.prototype.settings = null;
17995
+ EncoderConfig.create = function create(properties) {
17996
+ return new EncoderConfig(properties);
17569
17997
  };
17570
- EncoderAddRequest.encode = function encode(message, writer) {
17998
+ EncoderConfig.encode = function encode(message, writer) {
17571
17999
  if (!writer)
17572
18000
  writer = $Writer.create();
17573
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
18001
+ if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
17574
18002
  writer.uint32(
17575
- /* id 1, wireType 2 =*/
17576
- 10
17577
- ).string(message.id);
17578
- if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
18003
+ /* id 1, wireType 0 =*/
18004
+ 8
18005
+ ).int32(message.codec);
18006
+ if (message.bitrateKbps != null && Object.hasOwnProperty.call(message, "bitrateKbps"))
17579
18007
  writer.uint32(
17580
- /* id 2, wireType 2 =*/
17581
- 18
17582
- ).string(message.compositionId);
17583
- if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
17584
- $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
17585
- /* id 3, wireType 2 =*/
17586
- 26
18008
+ /* id 3, wireType 0 =*/
18009
+ 24
18010
+ ).uint32(message.bitrateKbps);
18011
+ if (message.keyframeInterval != null && Object.hasOwnProperty.call(message, "keyframeInterval"))
18012
+ writer.uint32(
18013
+ /* id 4, wireType 0 =*/
18014
+ 32
18015
+ ).uint32(message.keyframeInterval);
18016
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
18017
+ writer.uint32(
18018
+ /* id 5, wireType 0 =*/
18019
+ 40
18020
+ ).uint32(message.width);
18021
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
18022
+ writer.uint32(
18023
+ /* id 6, wireType 0 =*/
18024
+ 48
18025
+ ).uint32(message.height);
18026
+ if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
18027
+ writer.uint32(
18028
+ /* id 7, wireType 5 =*/
18029
+ 61
18030
+ ).float(message.fps);
18031
+ if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
18032
+ writer.uint32(
18033
+ /* id 8, wireType 0 =*/
18034
+ 64
18035
+ ).int32(message.timecodeMode);
18036
+ if (message.timecodeSourceId != null && Object.hasOwnProperty.call(message, "timecodeSourceId"))
18037
+ writer.uint32(
18038
+ /* id 9, wireType 2 =*/
18039
+ 74
18040
+ ).string(message.timecodeSourceId);
18041
+ if (message.settings != null && Object.hasOwnProperty.call(message, "settings"))
18042
+ $root.sesame.v1.outputs.EncoderSettings.encode(message.settings, writer.uint32(
18043
+ /* id 10, wireType 2 =*/
18044
+ 82
17587
18045
  ).fork()).ldelim();
17588
18046
  return writer;
17589
18047
  };
17590
- EncoderAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
18048
+ EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
17591
18049
  return this.encode(message, writer).ldelim();
17592
18050
  };
17593
- EncoderAddRequest.decode = function decode(reader, length, error) {
18051
+ EncoderConfig.decode = function decode(reader, length, error) {
17594
18052
  if (!(reader instanceof $Reader))
17595
18053
  reader = $Reader.create(reader);
17596
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderAddRequest();
18054
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderConfig();
17597
18055
  while (reader.pos < end) {
17598
18056
  let tag = reader.uint32();
17599
18057
  if (tag === error)
17600
18058
  break;
17601
18059
  switch (tag >>> 3) {
17602
18060
  case 1: {
17603
- message.id = reader.string();
18061
+ message.codec = reader.int32();
17604
18062
  break;
17605
18063
  }
17606
- case 2: {
17607
- message.compositionId = reader.string();
18064
+ case 3: {
18065
+ message.bitrateKbps = reader.uint32();
17608
18066
  break;
17609
18067
  }
17610
- case 3: {
17611
- message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
18068
+ case 4: {
18069
+ message.keyframeInterval = reader.uint32();
18070
+ break;
18071
+ }
18072
+ case 5: {
18073
+ message.width = reader.uint32();
18074
+ break;
18075
+ }
18076
+ case 6: {
18077
+ message.height = reader.uint32();
18078
+ break;
18079
+ }
18080
+ case 7: {
18081
+ message.fps = reader.float();
18082
+ break;
18083
+ }
18084
+ case 8: {
18085
+ message.timecodeMode = reader.int32();
18086
+ break;
18087
+ }
18088
+ case 9: {
18089
+ message.timecodeSourceId = reader.string();
18090
+ break;
18091
+ }
18092
+ case 10: {
18093
+ message.settings = $root.sesame.v1.outputs.EncoderSettings.decode(reader, reader.uint32());
17612
18094
  break;
17613
18095
  }
17614
18096
  default:
@@ -17618,22 +18100,298 @@ var sesame = $root.sesame = (() => {
17618
18100
  }
17619
18101
  return message;
17620
18102
  };
17621
- EncoderAddRequest.decodeDelimited = function decodeDelimited(reader) {
18103
+ EncoderConfig.decodeDelimited = function decodeDelimited(reader) {
17622
18104
  if (!(reader instanceof $Reader))
17623
18105
  reader = new $Reader(reader);
17624
18106
  return this.decode(reader, reader.uint32());
17625
18107
  };
17626
- EncoderAddRequest.verify = function verify(message) {
18108
+ EncoderConfig.verify = function verify(message) {
17627
18109
  if (typeof message !== "object" || message === null)
17628
18110
  return "object expected";
17629
- if (message.id != null && message.hasOwnProperty("id")) {
17630
- if (!$util.isString(message.id))
17631
- return "id: string expected";
17632
- }
17633
- if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
17634
- if (!$util.isString(message.compositionId))
17635
- return "compositionId: string expected";
17636
- }
18111
+ if (message.codec != null && message.hasOwnProperty("codec"))
18112
+ switch (message.codec) {
18113
+ default:
18114
+ return "codec: enum value expected";
18115
+ case 0:
18116
+ case 1:
18117
+ case 2:
18118
+ case 3:
18119
+ case 4:
18120
+ case 5:
18121
+ case 6:
18122
+ case 7:
18123
+ case 64:
18124
+ case 65:
18125
+ case 66:
18126
+ case 67:
18127
+ break;
18128
+ }
18129
+ if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
18130
+ if (!$util.isInteger(message.bitrateKbps))
18131
+ return "bitrateKbps: integer expected";
18132
+ }
18133
+ if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
18134
+ if (!$util.isInteger(message.keyframeInterval))
18135
+ return "keyframeInterval: integer expected";
18136
+ }
18137
+ if (message.width != null && message.hasOwnProperty("width")) {
18138
+ if (!$util.isInteger(message.width))
18139
+ return "width: integer expected";
18140
+ }
18141
+ if (message.height != null && message.hasOwnProperty("height")) {
18142
+ if (!$util.isInteger(message.height))
18143
+ return "height: integer expected";
18144
+ }
18145
+ if (message.fps != null && message.hasOwnProperty("fps")) {
18146
+ if (typeof message.fps !== "number")
18147
+ return "fps: number expected";
18148
+ }
18149
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
18150
+ switch (message.timecodeMode) {
18151
+ default:
18152
+ return "timecodeMode: enum value expected";
18153
+ case 0:
18154
+ case 1:
18155
+ case 2:
18156
+ break;
18157
+ }
18158
+ if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId")) {
18159
+ if (!$util.isString(message.timecodeSourceId))
18160
+ return "timecodeSourceId: string expected";
18161
+ }
18162
+ if (message.settings != null && message.hasOwnProperty("settings")) {
18163
+ let error = $root.sesame.v1.outputs.EncoderSettings.verify(message.settings);
18164
+ if (error)
18165
+ return "settings." + error;
18166
+ }
18167
+ return null;
18168
+ };
18169
+ EncoderConfig.fromObject = function fromObject(object) {
18170
+ if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
18171
+ return object;
18172
+ let message = new $root.sesame.v1.outputs.EncoderConfig();
18173
+ switch (object.codec) {
18174
+ default:
18175
+ if (typeof object.codec === "number") {
18176
+ message.codec = object.codec;
18177
+ break;
18178
+ }
18179
+ break;
18180
+ case "CODEC_TYPE_UNSPECIFIED":
18181
+ case 0:
18182
+ message.codec = 0;
18183
+ break;
18184
+ case "CODEC_TYPE_VIDEO_VP8":
18185
+ case 1:
18186
+ message.codec = 1;
18187
+ break;
18188
+ case "CODEC_TYPE_VIDEO_VP9":
18189
+ case 2:
18190
+ message.codec = 2;
18191
+ break;
18192
+ case "CODEC_TYPE_VIDEO_AVC":
18193
+ case 3:
18194
+ message.codec = 3;
18195
+ break;
18196
+ case "CODEC_TYPE_VIDEO_HEVC":
18197
+ case 4:
18198
+ message.codec = 4;
18199
+ break;
18200
+ case "CODEC_TYPE_VIDEO_AV1":
18201
+ case 5:
18202
+ message.codec = 5;
18203
+ break;
18204
+ case "CODEC_TYPE_VIDEO_PRORES":
18205
+ case 6:
18206
+ message.codec = 6;
18207
+ break;
18208
+ case "CODEC_TYPE_VIDEO_DNXHR":
18209
+ case 7:
18210
+ message.codec = 7;
18211
+ break;
18212
+ case "CODEC_TYPE_AUDIO_OPUS":
18213
+ case 64:
18214
+ message.codec = 64;
18215
+ break;
18216
+ case "CODEC_TYPE_AUDIO_AAC":
18217
+ case 65:
18218
+ message.codec = 65;
18219
+ break;
18220
+ case "CODEC_TYPE_AUDIO_PCM":
18221
+ case 66:
18222
+ message.codec = 66;
18223
+ break;
18224
+ case "CODEC_TYPE_AUDIO_PCM_S24LE":
18225
+ case 67:
18226
+ message.codec = 67;
18227
+ break;
18228
+ }
18229
+ if (object.bitrateKbps != null)
18230
+ message.bitrateKbps = object.bitrateKbps >>> 0;
18231
+ if (object.keyframeInterval != null)
18232
+ message.keyframeInterval = object.keyframeInterval >>> 0;
18233
+ if (object.width != null)
18234
+ message.width = object.width >>> 0;
18235
+ if (object.height != null)
18236
+ message.height = object.height >>> 0;
18237
+ if (object.fps != null)
18238
+ message.fps = Number(object.fps);
18239
+ switch (object.timecodeMode) {
18240
+ default:
18241
+ if (typeof object.timecodeMode === "number") {
18242
+ message.timecodeMode = object.timecodeMode;
18243
+ break;
18244
+ }
18245
+ break;
18246
+ case "TIMECODE_MODE_UNSPECIFIED":
18247
+ case 0:
18248
+ message.timecodeMode = 0;
18249
+ break;
18250
+ case "TIMECODE_MODE_WALLCLOCK":
18251
+ case 1:
18252
+ message.timecodeMode = 1;
18253
+ break;
18254
+ case "TIMECODE_MODE_SOURCE":
18255
+ case 2:
18256
+ message.timecodeMode = 2;
18257
+ break;
18258
+ }
18259
+ if (object.timecodeSourceId != null)
18260
+ message.timecodeSourceId = String(object.timecodeSourceId);
18261
+ if (object.settings != null) {
18262
+ if (typeof object.settings !== "object")
18263
+ throw TypeError(".sesame.v1.outputs.EncoderConfig.settings: object expected");
18264
+ message.settings = $root.sesame.v1.outputs.EncoderSettings.fromObject(object.settings);
18265
+ }
18266
+ return message;
18267
+ };
18268
+ EncoderConfig.toObject = function toObject(message, options) {
18269
+ if (!options)
18270
+ options = {};
18271
+ let object = {};
18272
+ if (options.defaults) {
18273
+ object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
18274
+ object.bitrateKbps = 0;
18275
+ object.keyframeInterval = 0;
18276
+ object.width = 0;
18277
+ object.height = 0;
18278
+ object.fps = 0;
18279
+ object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
18280
+ object.timecodeSourceId = "";
18281
+ object.settings = null;
18282
+ }
18283
+ if (message.codec != null && message.hasOwnProperty("codec"))
18284
+ object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
18285
+ if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
18286
+ object.bitrateKbps = message.bitrateKbps;
18287
+ if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
18288
+ object.keyframeInterval = message.keyframeInterval;
18289
+ if (message.width != null && message.hasOwnProperty("width"))
18290
+ object.width = message.width;
18291
+ if (message.height != null && message.hasOwnProperty("height"))
18292
+ object.height = message.height;
18293
+ if (message.fps != null && message.hasOwnProperty("fps"))
18294
+ object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
18295
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
18296
+ object.timecodeMode = options.enums === String ? $root.sesame.v1.outputs.TimecodeMode[message.timecodeMode] === void 0 ? message.timecodeMode : $root.sesame.v1.outputs.TimecodeMode[message.timecodeMode] : message.timecodeMode;
18297
+ if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId"))
18298
+ object.timecodeSourceId = message.timecodeSourceId;
18299
+ if (message.settings != null && message.hasOwnProperty("settings"))
18300
+ object.settings = $root.sesame.v1.outputs.EncoderSettings.toObject(message.settings, options);
18301
+ return object;
18302
+ };
18303
+ EncoderConfig.prototype.toJSON = function toJSON() {
18304
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18305
+ };
18306
+ EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18307
+ if (typeUrlPrefix === void 0) {
18308
+ typeUrlPrefix = "type.googleapis.com";
18309
+ }
18310
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
18311
+ };
18312
+ return EncoderConfig;
18313
+ }();
18314
+ outputs.EncoderAddRequest = function() {
18315
+ function EncoderAddRequest(properties) {
18316
+ if (properties) {
18317
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18318
+ if (properties[keys[i]] != null)
18319
+ this[keys[i]] = properties[keys[i]];
18320
+ }
18321
+ }
18322
+ EncoderAddRequest.prototype.id = "";
18323
+ EncoderAddRequest.prototype.compositionId = "";
18324
+ EncoderAddRequest.prototype.encoder = null;
18325
+ EncoderAddRequest.create = function create(properties) {
18326
+ return new EncoderAddRequest(properties);
18327
+ };
18328
+ EncoderAddRequest.encode = function encode(message, writer) {
18329
+ if (!writer)
18330
+ writer = $Writer.create();
18331
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
18332
+ writer.uint32(
18333
+ /* id 1, wireType 2 =*/
18334
+ 10
18335
+ ).string(message.id);
18336
+ if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
18337
+ writer.uint32(
18338
+ /* id 2, wireType 2 =*/
18339
+ 18
18340
+ ).string(message.compositionId);
18341
+ if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
18342
+ $root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
18343
+ /* id 3, wireType 2 =*/
18344
+ 26
18345
+ ).fork()).ldelim();
18346
+ return writer;
18347
+ };
18348
+ EncoderAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
18349
+ return this.encode(message, writer).ldelim();
18350
+ };
18351
+ EncoderAddRequest.decode = function decode(reader, length, error) {
18352
+ if (!(reader instanceof $Reader))
18353
+ reader = $Reader.create(reader);
18354
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderAddRequest();
18355
+ while (reader.pos < end) {
18356
+ let tag = reader.uint32();
18357
+ if (tag === error)
18358
+ break;
18359
+ switch (tag >>> 3) {
18360
+ case 1: {
18361
+ message.id = reader.string();
18362
+ break;
18363
+ }
18364
+ case 2: {
18365
+ message.compositionId = reader.string();
18366
+ break;
18367
+ }
18368
+ case 3: {
18369
+ message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
18370
+ break;
18371
+ }
18372
+ default:
18373
+ reader.skipType(tag & 7);
18374
+ break;
18375
+ }
18376
+ }
18377
+ return message;
18378
+ };
18379
+ EncoderAddRequest.decodeDelimited = function decodeDelimited(reader) {
18380
+ if (!(reader instanceof $Reader))
18381
+ reader = new $Reader(reader);
18382
+ return this.decode(reader, reader.uint32());
18383
+ };
18384
+ EncoderAddRequest.verify = function verify(message) {
18385
+ if (typeof message !== "object" || message === null)
18386
+ return "object expected";
18387
+ if (message.id != null && message.hasOwnProperty("id")) {
18388
+ if (!$util.isString(message.id))
18389
+ return "id: string expected";
18390
+ }
18391
+ if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
18392
+ if (!$util.isString(message.compositionId))
18393
+ return "compositionId: string expected";
18394
+ }
17637
18395
  if (message.encoder != null && message.hasOwnProperty("encoder")) {
17638
18396
  let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
17639
18397
  if (error)
@@ -17914,6 +18672,8 @@ var sesame = $root.sesame = (() => {
17914
18672
  DecklinkOutputConfig.prototype.deviceIndex = 0;
17915
18673
  DecklinkOutputConfig.prototype.videoFormat = 0;
17916
18674
  DecklinkOutputConfig.prototype.keyAndFill = false;
18675
+ DecklinkOutputConfig.prototype.timecodeMode = 0;
18676
+ DecklinkOutputConfig.prototype.timecodeSourceId = "";
17917
18677
  DecklinkOutputConfig.create = function create(properties) {
17918
18678
  return new DecklinkOutputConfig(properties);
17919
18679
  };
@@ -17935,11 +18695,21 @@ var sesame = $root.sesame = (() => {
17935
18695
  /* id 3, wireType 0 =*/
17936
18696
  24
17937
18697
  ).bool(message.keyAndFill);
17938
- return writer;
17939
- };
17940
- DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
17941
- return this.encode(message, writer).ldelim();
17942
- };
18698
+ if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
18699
+ writer.uint32(
18700
+ /* id 4, wireType 0 =*/
18701
+ 32
18702
+ ).int32(message.timecodeMode);
18703
+ if (message.timecodeSourceId != null && Object.hasOwnProperty.call(message, "timecodeSourceId"))
18704
+ writer.uint32(
18705
+ /* id 5, wireType 2 =*/
18706
+ 42
18707
+ ).string(message.timecodeSourceId);
18708
+ return writer;
18709
+ };
18710
+ DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
18711
+ return this.encode(message, writer).ldelim();
18712
+ };
17943
18713
  DecklinkOutputConfig.decode = function decode(reader, length, error) {
17944
18714
  if (!(reader instanceof $Reader))
17945
18715
  reader = $Reader.create(reader);
@@ -17961,6 +18731,14 @@ var sesame = $root.sesame = (() => {
17961
18731
  message.keyAndFill = reader.bool();
17962
18732
  break;
17963
18733
  }
18734
+ case 4: {
18735
+ message.timecodeMode = reader.int32();
18736
+ break;
18737
+ }
18738
+ case 5: {
18739
+ message.timecodeSourceId = reader.string();
18740
+ break;
18741
+ }
17964
18742
  default:
17965
18743
  reader.skipType(tag & 7);
17966
18744
  break;
@@ -17995,6 +18773,19 @@ var sesame = $root.sesame = (() => {
17995
18773
  if (typeof message.keyAndFill !== "boolean")
17996
18774
  return "keyAndFill: boolean expected";
17997
18775
  }
18776
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
18777
+ switch (message.timecodeMode) {
18778
+ default:
18779
+ return "timecodeMode: enum value expected";
18780
+ case 0:
18781
+ case 1:
18782
+ case 2:
18783
+ break;
18784
+ }
18785
+ if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId")) {
18786
+ if (!$util.isString(message.timecodeSourceId))
18787
+ return "timecodeSourceId: string expected";
18788
+ }
17998
18789
  return null;
17999
18790
  };
18000
18791
  DecklinkOutputConfig.fromObject = function fromObject(object) {
@@ -18033,6 +18824,28 @@ var sesame = $root.sesame = (() => {
18033
18824
  }
18034
18825
  if (object.keyAndFill != null)
18035
18826
  message.keyAndFill = Boolean(object.keyAndFill);
18827
+ switch (object.timecodeMode) {
18828
+ default:
18829
+ if (typeof object.timecodeMode === "number") {
18830
+ message.timecodeMode = object.timecodeMode;
18831
+ break;
18832
+ }
18833
+ break;
18834
+ case "TIMECODE_MODE_UNSPECIFIED":
18835
+ case 0:
18836
+ message.timecodeMode = 0;
18837
+ break;
18838
+ case "TIMECODE_MODE_WALLCLOCK":
18839
+ case 1:
18840
+ message.timecodeMode = 1;
18841
+ break;
18842
+ case "TIMECODE_MODE_SOURCE":
18843
+ case 2:
18844
+ message.timecodeMode = 2;
18845
+ break;
18846
+ }
18847
+ if (object.timecodeSourceId != null)
18848
+ message.timecodeSourceId = String(object.timecodeSourceId);
18036
18849
  return message;
18037
18850
  };
18038
18851
  DecklinkOutputConfig.toObject = function toObject(message, options) {
@@ -18043,6 +18856,8 @@ var sesame = $root.sesame = (() => {
18043
18856
  object.deviceIndex = 0;
18044
18857
  object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
18045
18858
  object.keyAndFill = false;
18859
+ object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
18860
+ object.timecodeSourceId = "";
18046
18861
  }
18047
18862
  if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
18048
18863
  object.deviceIndex = message.deviceIndex;
@@ -18050,6 +18865,10 @@ var sesame = $root.sesame = (() => {
18050
18865
  object.videoFormat = options.enums === String ? $root.sesame.v1.common.VideoFormat[message.videoFormat] === void 0 ? message.videoFormat : $root.sesame.v1.common.VideoFormat[message.videoFormat] : message.videoFormat;
18051
18866
  if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
18052
18867
  object.keyAndFill = message.keyAndFill;
18868
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
18869
+ object.timecodeMode = options.enums === String ? $root.sesame.v1.outputs.TimecodeMode[message.timecodeMode] === void 0 ? message.timecodeMode : $root.sesame.v1.outputs.TimecodeMode[message.timecodeMode] : message.timecodeMode;
18870
+ if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId"))
18871
+ object.timecodeSourceId = message.timecodeSourceId;
18053
18872
  return object;
18054
18873
  };
18055
18874
  DecklinkOutputConfig.prototype.toJSON = function toJSON() {
@@ -18656,6 +19475,13 @@ var sesame = $root.sesame = (() => {
18656
19475
  };
18657
19476
  return EncodedSuperSlowMoRecorderOutputConfig;
18658
19477
  }();
19478
+ outputs.SrtStreamControl = function() {
19479
+ const valuesById = {}, values = Object.create(valuesById);
19480
+ values[valuesById[0] = "SRT_STREAM_CONTROL_UNSPECIFIED"] = 0;
19481
+ values[valuesById[1] = "SRT_STREAM_CONTROL_STARTED"] = 1;
19482
+ values[valuesById[2] = "SRT_STREAM_CONTROL_MANUAL"] = 2;
19483
+ return values;
19484
+ }();
18659
19485
  outputs.EncodedSrtOutputConfig = function() {
18660
19486
  function EncodedSrtOutputConfig(properties) {
18661
19487
  if (properties) {
@@ -18666,6 +19492,7 @@ var sesame = $root.sesame = (() => {
18666
19492
  }
18667
19493
  EncodedSrtOutputConfig.prototype.url = "";
18668
19494
  EncodedSrtOutputConfig.prototype.encoderId = "";
19495
+ EncodedSrtOutputConfig.prototype.control = 0;
18669
19496
  EncodedSrtOutputConfig.create = function create(properties) {
18670
19497
  return new EncodedSrtOutputConfig(properties);
18671
19498
  };
@@ -18682,6 +19509,11 @@ var sesame = $root.sesame = (() => {
18682
19509
  /* id 2, wireType 2 =*/
18683
19510
  18
18684
19511
  ).string(message.encoderId);
19512
+ if (message.control != null && Object.hasOwnProperty.call(message, "control"))
19513
+ writer.uint32(
19514
+ /* id 3, wireType 0 =*/
19515
+ 24
19516
+ ).int32(message.control);
18685
19517
  return writer;
18686
19518
  };
18687
19519
  EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -18704,6 +19536,10 @@ var sesame = $root.sesame = (() => {
18704
19536
  message.encoderId = reader.string();
18705
19537
  break;
18706
19538
  }
19539
+ case 3: {
19540
+ message.control = reader.int32();
19541
+ break;
19542
+ }
18707
19543
  default:
18708
19544
  reader.skipType(tag & 7);
18709
19545
  break;
@@ -18727,6 +19563,15 @@ var sesame = $root.sesame = (() => {
18727
19563
  if (!$util.isString(message.encoderId))
18728
19564
  return "encoderId: string expected";
18729
19565
  }
19566
+ if (message.control != null && message.hasOwnProperty("control"))
19567
+ switch (message.control) {
19568
+ default:
19569
+ return "control: enum value expected";
19570
+ case 0:
19571
+ case 1:
19572
+ case 2:
19573
+ break;
19574
+ }
18730
19575
  return null;
18731
19576
  };
18732
19577
  EncodedSrtOutputConfig.fromObject = function fromObject(object) {
@@ -18737,6 +19582,26 @@ var sesame = $root.sesame = (() => {
18737
19582
  message.url = String(object.url);
18738
19583
  if (object.encoderId != null)
18739
19584
  message.encoderId = String(object.encoderId);
19585
+ switch (object.control) {
19586
+ default:
19587
+ if (typeof object.control === "number") {
19588
+ message.control = object.control;
19589
+ break;
19590
+ }
19591
+ break;
19592
+ case "SRT_STREAM_CONTROL_UNSPECIFIED":
19593
+ case 0:
19594
+ message.control = 0;
19595
+ break;
19596
+ case "SRT_STREAM_CONTROL_STARTED":
19597
+ case 1:
19598
+ message.control = 1;
19599
+ break;
19600
+ case "SRT_STREAM_CONTROL_MANUAL":
19601
+ case 2:
19602
+ message.control = 2;
19603
+ break;
19604
+ }
18740
19605
  return message;
18741
19606
  };
18742
19607
  EncodedSrtOutputConfig.toObject = function toObject(message, options) {
@@ -18746,11 +19611,14 @@ var sesame = $root.sesame = (() => {
18746
19611
  if (options.defaults) {
18747
19612
  object.url = "";
18748
19613
  object.encoderId = "";
19614
+ object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
18749
19615
  }
18750
19616
  if (message.url != null && message.hasOwnProperty("url"))
18751
19617
  object.url = message.url;
18752
19618
  if (message.encoderId != null && message.hasOwnProperty("encoderId"))
18753
19619
  object.encoderId = message.encoderId;
19620
+ if (message.control != null && message.hasOwnProperty("control"))
19621
+ object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === void 0 ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
18754
19622
  return object;
18755
19623
  };
18756
19624
  EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
@@ -19873,6 +20741,144 @@ var sesame = $root.sesame = (() => {
19873
20741
  };
19874
20742
  return OutputRemoveRequest;
19875
20743
  }();
20744
+ outputs.OutputControlAction = function() {
20745
+ const valuesById = {}, values = Object.create(valuesById);
20746
+ values[valuesById[0] = "OUTPUT_CONTROL_ACTION_UNSPECIFIED"] = 0;
20747
+ values[valuesById[1] = "OUTPUT_CONTROL_ACTION_START"] = 1;
20748
+ values[valuesById[2] = "OUTPUT_CONTROL_ACTION_STOP"] = 2;
20749
+ return values;
20750
+ }();
20751
+ outputs.OutputControlRequest = function() {
20752
+ function OutputControlRequest(properties) {
20753
+ if (properties) {
20754
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20755
+ if (properties[keys[i]] != null)
20756
+ this[keys[i]] = properties[keys[i]];
20757
+ }
20758
+ }
20759
+ OutputControlRequest.prototype.id = "";
20760
+ OutputControlRequest.prototype.action = 0;
20761
+ OutputControlRequest.create = function create(properties) {
20762
+ return new OutputControlRequest(properties);
20763
+ };
20764
+ OutputControlRequest.encode = function encode(message, writer) {
20765
+ if (!writer)
20766
+ writer = $Writer.create();
20767
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
20768
+ writer.uint32(
20769
+ /* id 1, wireType 2 =*/
20770
+ 10
20771
+ ).string(message.id);
20772
+ if (message.action != null && Object.hasOwnProperty.call(message, "action"))
20773
+ writer.uint32(
20774
+ /* id 2, wireType 0 =*/
20775
+ 16
20776
+ ).int32(message.action);
20777
+ return writer;
20778
+ };
20779
+ OutputControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
20780
+ return this.encode(message, writer).ldelim();
20781
+ };
20782
+ OutputControlRequest.decode = function decode(reader, length, error) {
20783
+ if (!(reader instanceof $Reader))
20784
+ reader = $Reader.create(reader);
20785
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.OutputControlRequest();
20786
+ while (reader.pos < end) {
20787
+ let tag = reader.uint32();
20788
+ if (tag === error)
20789
+ break;
20790
+ switch (tag >>> 3) {
20791
+ case 1: {
20792
+ message.id = reader.string();
20793
+ break;
20794
+ }
20795
+ case 2: {
20796
+ message.action = reader.int32();
20797
+ break;
20798
+ }
20799
+ default:
20800
+ reader.skipType(tag & 7);
20801
+ break;
20802
+ }
20803
+ }
20804
+ return message;
20805
+ };
20806
+ OutputControlRequest.decodeDelimited = function decodeDelimited(reader) {
20807
+ if (!(reader instanceof $Reader))
20808
+ reader = new $Reader(reader);
20809
+ return this.decode(reader, reader.uint32());
20810
+ };
20811
+ OutputControlRequest.verify = function verify(message) {
20812
+ if (typeof message !== "object" || message === null)
20813
+ return "object expected";
20814
+ if (message.id != null && message.hasOwnProperty("id")) {
20815
+ if (!$util.isString(message.id))
20816
+ return "id: string expected";
20817
+ }
20818
+ if (message.action != null && message.hasOwnProperty("action"))
20819
+ switch (message.action) {
20820
+ default:
20821
+ return "action: enum value expected";
20822
+ case 0:
20823
+ case 1:
20824
+ case 2:
20825
+ break;
20826
+ }
20827
+ return null;
20828
+ };
20829
+ OutputControlRequest.fromObject = function fromObject(object) {
20830
+ if (object instanceof $root.sesame.v1.outputs.OutputControlRequest)
20831
+ return object;
20832
+ let message = new $root.sesame.v1.outputs.OutputControlRequest();
20833
+ if (object.id != null)
20834
+ message.id = String(object.id);
20835
+ switch (object.action) {
20836
+ default:
20837
+ if (typeof object.action === "number") {
20838
+ message.action = object.action;
20839
+ break;
20840
+ }
20841
+ break;
20842
+ case "OUTPUT_CONTROL_ACTION_UNSPECIFIED":
20843
+ case 0:
20844
+ message.action = 0;
20845
+ break;
20846
+ case "OUTPUT_CONTROL_ACTION_START":
20847
+ case 1:
20848
+ message.action = 1;
20849
+ break;
20850
+ case "OUTPUT_CONTROL_ACTION_STOP":
20851
+ case 2:
20852
+ message.action = 2;
20853
+ break;
20854
+ }
20855
+ return message;
20856
+ };
20857
+ OutputControlRequest.toObject = function toObject(message, options) {
20858
+ if (!options)
20859
+ options = {};
20860
+ let object = {};
20861
+ if (options.defaults) {
20862
+ object.id = "";
20863
+ object.action = options.enums === String ? "OUTPUT_CONTROL_ACTION_UNSPECIFIED" : 0;
20864
+ }
20865
+ if (message.id != null && message.hasOwnProperty("id"))
20866
+ object.id = message.id;
20867
+ if (message.action != null && message.hasOwnProperty("action"))
20868
+ object.action = options.enums === String ? $root.sesame.v1.outputs.OutputControlAction[message.action] === void 0 ? message.action : $root.sesame.v1.outputs.OutputControlAction[message.action] : message.action;
20869
+ return object;
20870
+ };
20871
+ OutputControlRequest.prototype.toJSON = function toJSON() {
20872
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20873
+ };
20874
+ OutputControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20875
+ if (typeUrlPrefix === void 0) {
20876
+ typeUrlPrefix = "type.googleapis.com";
20877
+ }
20878
+ return typeUrlPrefix + "/sesame.v1.outputs.OutputControlRequest";
20879
+ };
20880
+ return OutputControlRequest;
20881
+ }();
19876
20882
  outputs.KeyframeRequest = function() {
19877
20883
  function KeyframeRequest(properties) {
19878
20884
  if (properties) {
@@ -19977,6 +20983,7 @@ var sesame = $root.sesame = (() => {
19977
20983
  OutputStatus.prototype.bufferSize = 0;
19978
20984
  OutputStatus.prototype.srtStats = null;
19979
20985
  OutputStatus.prototype.encoderId = "";
20986
+ OutputStatus.prototype.control = 0;
19980
20987
  let $oneOfFields;
19981
20988
  Object.defineProperty(OutputStatus.prototype, "_msg", {
19982
20989
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -20032,6 +21039,11 @@ var sesame = $root.sesame = (() => {
20032
21039
  /* id 8, wireType 2 =*/
20033
21040
  66
20034
21041
  ).string(message.encoderId);
21042
+ if (message.control != null && Object.hasOwnProperty.call(message, "control"))
21043
+ writer.uint32(
21044
+ /* id 9, wireType 0 =*/
21045
+ 72
21046
+ ).int32(message.control);
20035
21047
  return writer;
20036
21048
  };
20037
21049
  OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -20078,6 +21090,10 @@ var sesame = $root.sesame = (() => {
20078
21090
  message.encoderId = reader.string();
20079
21091
  break;
20080
21092
  }
21093
+ case 9: {
21094
+ message.control = reader.int32();
21095
+ break;
21096
+ }
20081
21097
  default:
20082
21098
  reader.skipType(tag & 7);
20083
21099
  break;
@@ -20123,6 +21139,7 @@ var sesame = $root.sesame = (() => {
20123
21139
  case 4:
20124
21140
  case 5:
20125
21141
  case 6:
21142
+ case 7:
20126
21143
  break;
20127
21144
  }
20128
21145
  if (message.msg != null && message.hasOwnProperty("msg")) {
@@ -20150,6 +21167,15 @@ var sesame = $root.sesame = (() => {
20150
21167
  if (!$util.isString(message.encoderId))
20151
21168
  return "encoderId: string expected";
20152
21169
  }
21170
+ if (message.control != null && message.hasOwnProperty("control"))
21171
+ switch (message.control) {
21172
+ default:
21173
+ return "control: enum value expected";
21174
+ case 0:
21175
+ case 1:
21176
+ case 2:
21177
+ break;
21178
+ }
20153
21179
  return null;
20154
21180
  };
20155
21181
  OutputStatus.fromObject = function fromObject(object) {
@@ -20233,6 +21259,10 @@ var sesame = $root.sesame = (() => {
20233
21259
  case 6:
20234
21260
  message.state = 6;
20235
21261
  break;
21262
+ case "CONNECTION_STATE_DISABLED":
21263
+ case 7:
21264
+ message.state = 7;
21265
+ break;
20236
21266
  }
20237
21267
  if (object.msg != null)
20238
21268
  message.msg = String(object.msg);
@@ -20247,6 +21277,26 @@ var sesame = $root.sesame = (() => {
20247
21277
  }
20248
21278
  if (object.encoderId != null)
20249
21279
  message.encoderId = String(object.encoderId);
21280
+ switch (object.control) {
21281
+ default:
21282
+ if (typeof object.control === "number") {
21283
+ message.control = object.control;
21284
+ break;
21285
+ }
21286
+ break;
21287
+ case "SRT_STREAM_CONTROL_UNSPECIFIED":
21288
+ case 0:
21289
+ message.control = 0;
21290
+ break;
21291
+ case "SRT_STREAM_CONTROL_STARTED":
21292
+ case 1:
21293
+ message.control = 1;
21294
+ break;
21295
+ case "SRT_STREAM_CONTROL_MANUAL":
21296
+ case 2:
21297
+ message.control = 2;
21298
+ break;
21299
+ }
20250
21300
  return message;
20251
21301
  };
20252
21302
  OutputStatus.toObject = function toObject(message, options) {
@@ -20260,6 +21310,7 @@ var sesame = $root.sesame = (() => {
20260
21310
  object.url = "";
20261
21311
  object.bufferSize = 0;
20262
21312
  object.encoderId = "";
21313
+ object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
20263
21314
  }
20264
21315
  if (message.id != null && message.hasOwnProperty("id"))
20265
21316
  object.id = message.id;
@@ -20283,6 +21334,8 @@ var sesame = $root.sesame = (() => {
20283
21334
  }
20284
21335
  if (message.encoderId != null && message.hasOwnProperty("encoderId"))
20285
21336
  object.encoderId = message.encoderId;
21337
+ if (message.control != null && message.hasOwnProperty("control"))
21338
+ object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === void 0 ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
20286
21339
  return object;
20287
21340
  };
20288
21341
  OutputStatus.prototype.toJSON = function toJSON() {
@@ -20309,6 +21362,7 @@ var sesame = $root.sesame = (() => {
20309
21362
  EncoderStatus.prototype.state = 0;
20310
21363
  EncoderStatus.prototype.msg = null;
20311
21364
  EncoderStatus.prototype.compositionId = "";
21365
+ EncoderStatus.prototype.droppedFrames = 0;
20312
21366
  let $oneOfFields;
20313
21367
  Object.defineProperty(EncoderStatus.prototype, "_msg", {
20314
21368
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -20345,6 +21399,11 @@ var sesame = $root.sesame = (() => {
20345
21399
  /* id 5, wireType 2 =*/
20346
21400
  42
20347
21401
  ).string(message.compositionId);
21402
+ if (message.droppedFrames != null && Object.hasOwnProperty.call(message, "droppedFrames"))
21403
+ writer.uint32(
21404
+ /* id 6, wireType 0 =*/
21405
+ 48
21406
+ ).uint32(message.droppedFrames);
20348
21407
  return writer;
20349
21408
  };
20350
21409
  EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -20379,6 +21438,10 @@ var sesame = $root.sesame = (() => {
20379
21438
  message.compositionId = reader.string();
20380
21439
  break;
20381
21440
  }
21441
+ case 6: {
21442
+ message.droppedFrames = reader.uint32();
21443
+ break;
21444
+ }
20382
21445
  default:
20383
21446
  reader.skipType(tag & 7);
20384
21447
  break;
@@ -20418,6 +21481,7 @@ var sesame = $root.sesame = (() => {
20418
21481
  case 4:
20419
21482
  case 5:
20420
21483
  case 6:
21484
+ case 7:
20421
21485
  break;
20422
21486
  }
20423
21487
  if (message.msg != null && message.hasOwnProperty("msg")) {
@@ -20429,6 +21493,10 @@ var sesame = $root.sesame = (() => {
20429
21493
  if (!$util.isString(message.compositionId))
20430
21494
  return "compositionId: string expected";
20431
21495
  }
21496
+ if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames")) {
21497
+ if (!$util.isInteger(message.droppedFrames))
21498
+ return "droppedFrames: integer expected";
21499
+ }
20432
21500
  return null;
20433
21501
  };
20434
21502
  EncoderStatus.fromObject = function fromObject(object) {
@@ -20488,11 +21556,17 @@ var sesame = $root.sesame = (() => {
20488
21556
  case 6:
20489
21557
  message.state = 6;
20490
21558
  break;
21559
+ case "CONNECTION_STATE_DISABLED":
21560
+ case 7:
21561
+ message.state = 7;
21562
+ break;
20491
21563
  }
20492
21564
  if (object.msg != null)
20493
21565
  message.msg = String(object.msg);
20494
21566
  if (object.compositionId != null)
20495
21567
  message.compositionId = String(object.compositionId);
21568
+ if (object.droppedFrames != null)
21569
+ message.droppedFrames = object.droppedFrames >>> 0;
20496
21570
  return message;
20497
21571
  };
20498
21572
  EncoderStatus.toObject = function toObject(message, options) {
@@ -20504,6 +21578,7 @@ var sesame = $root.sesame = (() => {
20504
21578
  object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
20505
21579
  object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
20506
21580
  object.compositionId = "";
21581
+ object.droppedFrames = 0;
20507
21582
  }
20508
21583
  if (message.id != null && message.hasOwnProperty("id"))
20509
21584
  object.id = message.id;
@@ -20518,6 +21593,8 @@ var sesame = $root.sesame = (() => {
20518
21593
  }
20519
21594
  if (message.compositionId != null && message.hasOwnProperty("compositionId"))
20520
21595
  object.compositionId = message.compositionId;
21596
+ if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames"))
21597
+ object.droppedFrames = message.droppedFrames;
20521
21598
  return object;
20522
21599
  };
20523
21600
  EncoderStatus.prototype.toJSON = function toJSON() {
@@ -21205,83 +22282,1051 @@ var sesame = $root.sesame = (() => {
21205
22282
  }
21206
22283
  return message;
21207
22284
  };
21208
- NodeAddRequest.toObject = function toObject(message, options) {
22285
+ NodeAddRequest.toObject = function toObject(message, options) {
22286
+ if (!options)
22287
+ options = {};
22288
+ let object = {};
22289
+ if (options.defaults) {
22290
+ object.compositorId = "";
22291
+ object.parentAddress = "";
22292
+ object.nodeId = "";
22293
+ object.nodeType = options.enums === String ? "NODE_TYPE_UNSPECIFIED" : 0;
22294
+ }
22295
+ if (message.compositorId != null && message.hasOwnProperty("compositorId"))
22296
+ object.compositorId = message.compositorId;
22297
+ if (message.parentAddress != null && message.hasOwnProperty("parentAddress"))
22298
+ object.parentAddress = message.parentAddress;
22299
+ if (message.nodeId != null && message.hasOwnProperty("nodeId"))
22300
+ object.nodeId = message.nodeId;
22301
+ if (message.nodeType != null && message.hasOwnProperty("nodeType"))
22302
+ object.nodeType = options.enums === String ? $root.sesame.v1.compositor.NodeType[message.nodeType] === void 0 ? message.nodeType : $root.sesame.v1.compositor.NodeType[message.nodeType] : message.nodeType;
22303
+ return object;
22304
+ };
22305
+ NodeAddRequest.prototype.toJSON = function toJSON() {
22306
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
22307
+ };
22308
+ NodeAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22309
+ if (typeUrlPrefix === void 0) {
22310
+ typeUrlPrefix = "type.googleapis.com";
22311
+ }
22312
+ return typeUrlPrefix + "/sesame.v1.compositor.NodeAddRequest";
22313
+ };
22314
+ return NodeAddRequest;
22315
+ }();
22316
+ compositor.NodeRemoveRequest = function() {
22317
+ function NodeRemoveRequest(properties) {
22318
+ if (properties) {
22319
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22320
+ if (properties[keys[i]] != null)
22321
+ this[keys[i]] = properties[keys[i]];
22322
+ }
22323
+ }
22324
+ NodeRemoveRequest.prototype.compositorId = "";
22325
+ NodeRemoveRequest.prototype.address = "";
22326
+ NodeRemoveRequest.create = function create(properties) {
22327
+ return new NodeRemoveRequest(properties);
22328
+ };
22329
+ NodeRemoveRequest.encode = function encode(message, writer) {
22330
+ if (!writer)
22331
+ writer = $Writer.create();
22332
+ if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
22333
+ writer.uint32(
22334
+ /* id 1, wireType 2 =*/
22335
+ 10
22336
+ ).string(message.compositorId);
22337
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
22338
+ writer.uint32(
22339
+ /* id 2, wireType 2 =*/
22340
+ 18
22341
+ ).string(message.address);
22342
+ return writer;
22343
+ };
22344
+ NodeRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
22345
+ return this.encode(message, writer).ldelim();
22346
+ };
22347
+ NodeRemoveRequest.decode = function decode(reader, length, error) {
22348
+ if (!(reader instanceof $Reader))
22349
+ reader = $Reader.create(reader);
22350
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.NodeRemoveRequest();
22351
+ while (reader.pos < end) {
22352
+ let tag = reader.uint32();
22353
+ if (tag === error)
22354
+ break;
22355
+ switch (tag >>> 3) {
22356
+ case 1: {
22357
+ message.compositorId = reader.string();
22358
+ break;
22359
+ }
22360
+ case 2: {
22361
+ message.address = reader.string();
22362
+ break;
22363
+ }
22364
+ default:
22365
+ reader.skipType(tag & 7);
22366
+ break;
22367
+ }
22368
+ }
22369
+ return message;
22370
+ };
22371
+ NodeRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
22372
+ if (!(reader instanceof $Reader))
22373
+ reader = new $Reader(reader);
22374
+ return this.decode(reader, reader.uint32());
22375
+ };
22376
+ NodeRemoveRequest.verify = function verify(message) {
22377
+ if (typeof message !== "object" || message === null)
22378
+ return "object expected";
22379
+ if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
22380
+ if (!$util.isString(message.compositorId))
22381
+ return "compositorId: string expected";
22382
+ }
22383
+ if (message.address != null && message.hasOwnProperty("address")) {
22384
+ if (!$util.isString(message.address))
22385
+ return "address: string expected";
22386
+ }
22387
+ return null;
22388
+ };
22389
+ NodeRemoveRequest.fromObject = function fromObject(object) {
22390
+ if (object instanceof $root.sesame.v1.compositor.NodeRemoveRequest)
22391
+ return object;
22392
+ let message = new $root.sesame.v1.compositor.NodeRemoveRequest();
22393
+ if (object.compositorId != null)
22394
+ message.compositorId = String(object.compositorId);
22395
+ if (object.address != null)
22396
+ message.address = String(object.address);
22397
+ return message;
22398
+ };
22399
+ NodeRemoveRequest.toObject = function toObject(message, options) {
22400
+ if (!options)
22401
+ options = {};
22402
+ let object = {};
22403
+ if (options.defaults) {
22404
+ object.compositorId = "";
22405
+ object.address = "";
22406
+ }
22407
+ if (message.compositorId != null && message.hasOwnProperty("compositorId"))
22408
+ object.compositorId = message.compositorId;
22409
+ if (message.address != null && message.hasOwnProperty("address"))
22410
+ object.address = message.address;
22411
+ return object;
22412
+ };
22413
+ NodeRemoveRequest.prototype.toJSON = function toJSON() {
22414
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
22415
+ };
22416
+ NodeRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22417
+ if (typeUrlPrefix === void 0) {
22418
+ typeUrlPrefix = "type.googleapis.com";
22419
+ }
22420
+ return typeUrlPrefix + "/sesame.v1.compositor.NodeRemoveRequest";
22421
+ };
22422
+ return NodeRemoveRequest;
22423
+ }();
22424
+ compositor.SideDataSetRequest = function() {
22425
+ function SideDataSetRequest(properties) {
22426
+ if (properties) {
22427
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22428
+ if (properties[keys[i]] != null)
22429
+ this[keys[i]] = properties[keys[i]];
22430
+ }
22431
+ }
22432
+ SideDataSetRequest.prototype.compositorId = "";
22433
+ SideDataSetRequest.prototype.sideData = null;
22434
+ SideDataSetRequest.create = function create(properties) {
22435
+ return new SideDataSetRequest(properties);
22436
+ };
22437
+ SideDataSetRequest.encode = function encode(message, writer) {
22438
+ if (!writer)
22439
+ writer = $Writer.create();
22440
+ if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
22441
+ writer.uint32(
22442
+ /* id 1, wireType 2 =*/
22443
+ 10
22444
+ ).string(message.compositorId);
22445
+ if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
22446
+ $root.sesame.v1.sidedata.SideData.encode(message.sideData, writer.uint32(
22447
+ /* id 2, wireType 2 =*/
22448
+ 18
22449
+ ).fork()).ldelim();
22450
+ return writer;
22451
+ };
22452
+ SideDataSetRequest.encodeDelimited = function encodeDelimited(message, writer) {
22453
+ return this.encode(message, writer).ldelim();
22454
+ };
22455
+ SideDataSetRequest.decode = function decode(reader, length, error) {
22456
+ if (!(reader instanceof $Reader))
22457
+ reader = $Reader.create(reader);
22458
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataSetRequest();
22459
+ while (reader.pos < end) {
22460
+ let tag = reader.uint32();
22461
+ if (tag === error)
22462
+ break;
22463
+ switch (tag >>> 3) {
22464
+ case 1: {
22465
+ message.compositorId = reader.string();
22466
+ break;
22467
+ }
22468
+ case 2: {
22469
+ message.sideData = $root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32());
22470
+ break;
22471
+ }
22472
+ default:
22473
+ reader.skipType(tag & 7);
22474
+ break;
22475
+ }
22476
+ }
22477
+ return message;
22478
+ };
22479
+ SideDataSetRequest.decodeDelimited = function decodeDelimited(reader) {
22480
+ if (!(reader instanceof $Reader))
22481
+ reader = new $Reader(reader);
22482
+ return this.decode(reader, reader.uint32());
22483
+ };
22484
+ SideDataSetRequest.verify = function verify(message) {
22485
+ if (typeof message !== "object" || message === null)
22486
+ return "object expected";
22487
+ if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
22488
+ if (!$util.isString(message.compositorId))
22489
+ return "compositorId: string expected";
22490
+ }
22491
+ if (message.sideData != null && message.hasOwnProperty("sideData")) {
22492
+ let error = $root.sesame.v1.sidedata.SideData.verify(message.sideData);
22493
+ if (error)
22494
+ return "sideData." + error;
22495
+ }
22496
+ return null;
22497
+ };
22498
+ SideDataSetRequest.fromObject = function fromObject(object) {
22499
+ if (object instanceof $root.sesame.v1.compositor.SideDataSetRequest)
22500
+ return object;
22501
+ let message = new $root.sesame.v1.compositor.SideDataSetRequest();
22502
+ if (object.compositorId != null)
22503
+ message.compositorId = String(object.compositorId);
22504
+ if (object.sideData != null) {
22505
+ if (typeof object.sideData !== "object")
22506
+ throw TypeError(".sesame.v1.compositor.SideDataSetRequest.sideData: object expected");
22507
+ message.sideData = $root.sesame.v1.sidedata.SideData.fromObject(object.sideData);
22508
+ }
22509
+ return message;
22510
+ };
22511
+ SideDataSetRequest.toObject = function toObject(message, options) {
22512
+ if (!options)
22513
+ options = {};
22514
+ let object = {};
22515
+ if (options.defaults) {
22516
+ object.compositorId = "";
22517
+ object.sideData = null;
22518
+ }
22519
+ if (message.compositorId != null && message.hasOwnProperty("compositorId"))
22520
+ object.compositorId = message.compositorId;
22521
+ if (message.sideData != null && message.hasOwnProperty("sideData"))
22522
+ object.sideData = $root.sesame.v1.sidedata.SideData.toObject(message.sideData, options);
22523
+ return object;
22524
+ };
22525
+ SideDataSetRequest.prototype.toJSON = function toJSON() {
22526
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
22527
+ };
22528
+ SideDataSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22529
+ if (typeUrlPrefix === void 0) {
22530
+ typeUrlPrefix = "type.googleapis.com";
22531
+ }
22532
+ return typeUrlPrefix + "/sesame.v1.compositor.SideDataSetRequest";
22533
+ };
22534
+ return SideDataSetRequest;
22535
+ }();
22536
+ compositor.SideDataRemoveRequest = function() {
22537
+ function SideDataRemoveRequest(properties) {
22538
+ if (properties) {
22539
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22540
+ if (properties[keys[i]] != null)
22541
+ this[keys[i]] = properties[keys[i]];
22542
+ }
22543
+ }
22544
+ SideDataRemoveRequest.prototype.compositorId = "";
22545
+ SideDataRemoveRequest.prototype.id = "";
22546
+ SideDataRemoveRequest.create = function create(properties) {
22547
+ return new SideDataRemoveRequest(properties);
22548
+ };
22549
+ SideDataRemoveRequest.encode = function encode(message, writer) {
22550
+ if (!writer)
22551
+ writer = $Writer.create();
22552
+ if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
22553
+ writer.uint32(
22554
+ /* id 1, wireType 2 =*/
22555
+ 10
22556
+ ).string(message.compositorId);
22557
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
22558
+ writer.uint32(
22559
+ /* id 2, wireType 2 =*/
22560
+ 18
22561
+ ).string(message.id);
22562
+ return writer;
22563
+ };
22564
+ SideDataRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
22565
+ return this.encode(message, writer).ldelim();
22566
+ };
22567
+ SideDataRemoveRequest.decode = function decode(reader, length, error) {
22568
+ if (!(reader instanceof $Reader))
22569
+ reader = $Reader.create(reader);
22570
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
22571
+ while (reader.pos < end) {
22572
+ let tag = reader.uint32();
22573
+ if (tag === error)
22574
+ break;
22575
+ switch (tag >>> 3) {
22576
+ case 1: {
22577
+ message.compositorId = reader.string();
22578
+ break;
22579
+ }
22580
+ case 2: {
22581
+ message.id = reader.string();
22582
+ break;
22583
+ }
22584
+ default:
22585
+ reader.skipType(tag & 7);
22586
+ break;
22587
+ }
22588
+ }
22589
+ return message;
22590
+ };
22591
+ SideDataRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
22592
+ if (!(reader instanceof $Reader))
22593
+ reader = new $Reader(reader);
22594
+ return this.decode(reader, reader.uint32());
22595
+ };
22596
+ SideDataRemoveRequest.verify = function verify(message) {
22597
+ if (typeof message !== "object" || message === null)
22598
+ return "object expected";
22599
+ if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
22600
+ if (!$util.isString(message.compositorId))
22601
+ return "compositorId: string expected";
22602
+ }
22603
+ if (message.id != null && message.hasOwnProperty("id")) {
22604
+ if (!$util.isString(message.id))
22605
+ return "id: string expected";
22606
+ }
22607
+ return null;
22608
+ };
22609
+ SideDataRemoveRequest.fromObject = function fromObject(object) {
22610
+ if (object instanceof $root.sesame.v1.compositor.SideDataRemoveRequest)
22611
+ return object;
22612
+ let message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
22613
+ if (object.compositorId != null)
22614
+ message.compositorId = String(object.compositorId);
22615
+ if (object.id != null)
22616
+ message.id = String(object.id);
22617
+ return message;
22618
+ };
22619
+ SideDataRemoveRequest.toObject = function toObject(message, options) {
22620
+ if (!options)
22621
+ options = {};
22622
+ let object = {};
22623
+ if (options.defaults) {
22624
+ object.compositorId = "";
22625
+ object.id = "";
22626
+ }
22627
+ if (message.compositorId != null && message.hasOwnProperty("compositorId"))
22628
+ object.compositorId = message.compositorId;
22629
+ if (message.id != null && message.hasOwnProperty("id"))
22630
+ object.id = message.id;
22631
+ return object;
22632
+ };
22633
+ SideDataRemoveRequest.prototype.toJSON = function toJSON() {
22634
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
22635
+ };
22636
+ SideDataRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22637
+ if (typeUrlPrefix === void 0) {
22638
+ typeUrlPrefix = "type.googleapis.com";
22639
+ }
22640
+ return typeUrlPrefix + "/sesame.v1.compositor.SideDataRemoveRequest";
22641
+ };
22642
+ return SideDataRemoveRequest;
22643
+ }();
22644
+ compositor.PropertySetRequest = function() {
22645
+ function PropertySetRequest(properties) {
22646
+ if (properties) {
22647
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22648
+ if (properties[keys[i]] != null)
22649
+ this[keys[i]] = properties[keys[i]];
22650
+ }
22651
+ }
22652
+ PropertySetRequest.prototype.domain = null;
22653
+ PropertySetRequest.prototype.address = "";
22654
+ PropertySetRequest.prototype.property = "";
22655
+ PropertySetRequest.prototype.value = null;
22656
+ PropertySetRequest.create = function create(properties) {
22657
+ return new PropertySetRequest(properties);
22658
+ };
22659
+ PropertySetRequest.encode = function encode(message, writer) {
22660
+ if (!writer)
22661
+ writer = $Writer.create();
22662
+ if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
22663
+ $root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
22664
+ /* id 1, wireType 2 =*/
22665
+ 10
22666
+ ).fork()).ldelim();
22667
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
22668
+ writer.uint32(
22669
+ /* id 2, wireType 2 =*/
22670
+ 18
22671
+ ).string(message.address);
22672
+ if (message.property != null && Object.hasOwnProperty.call(message, "property"))
22673
+ writer.uint32(
22674
+ /* id 3, wireType 2 =*/
22675
+ 26
22676
+ ).string(message.property);
22677
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
22678
+ $root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
22679
+ /* id 4, wireType 2 =*/
22680
+ 34
22681
+ ).fork()).ldelim();
22682
+ return writer;
22683
+ };
22684
+ PropertySetRequest.encodeDelimited = function encodeDelimited(message, writer) {
22685
+ return this.encode(message, writer).ldelim();
22686
+ };
22687
+ PropertySetRequest.decode = function decode(reader, length, error) {
22688
+ if (!(reader instanceof $Reader))
22689
+ reader = $Reader.create(reader);
22690
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertySetRequest();
22691
+ while (reader.pos < end) {
22692
+ let tag = reader.uint32();
22693
+ if (tag === error)
22694
+ break;
22695
+ switch (tag >>> 3) {
22696
+ case 1: {
22697
+ message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
22698
+ break;
22699
+ }
22700
+ case 2: {
22701
+ message.address = reader.string();
22702
+ break;
22703
+ }
22704
+ case 3: {
22705
+ message.property = reader.string();
22706
+ break;
22707
+ }
22708
+ case 4: {
22709
+ message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
22710
+ break;
22711
+ }
22712
+ default:
22713
+ reader.skipType(tag & 7);
22714
+ break;
22715
+ }
22716
+ }
22717
+ return message;
22718
+ };
22719
+ PropertySetRequest.decodeDelimited = function decodeDelimited(reader) {
22720
+ if (!(reader instanceof $Reader))
22721
+ reader = new $Reader(reader);
22722
+ return this.decode(reader, reader.uint32());
22723
+ };
22724
+ PropertySetRequest.verify = function verify(message) {
22725
+ if (typeof message !== "object" || message === null)
22726
+ return "object expected";
22727
+ if (message.domain != null && message.hasOwnProperty("domain")) {
22728
+ let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
22729
+ if (error)
22730
+ return "domain." + error;
22731
+ }
22732
+ if (message.address != null && message.hasOwnProperty("address")) {
22733
+ if (!$util.isString(message.address))
22734
+ return "address: string expected";
22735
+ }
22736
+ if (message.property != null && message.hasOwnProperty("property")) {
22737
+ if (!$util.isString(message.property))
22738
+ return "property: string expected";
22739
+ }
22740
+ if (message.value != null && message.hasOwnProperty("value")) {
22741
+ let error = $root.sesame.v1.common.PropValue.verify(message.value);
22742
+ if (error)
22743
+ return "value." + error;
22744
+ }
22745
+ return null;
22746
+ };
22747
+ PropertySetRequest.fromObject = function fromObject(object) {
22748
+ if (object instanceof $root.sesame.v1.compositor.PropertySetRequest)
22749
+ return object;
22750
+ let message = new $root.sesame.v1.compositor.PropertySetRequest();
22751
+ if (object.domain != null) {
22752
+ if (typeof object.domain !== "object")
22753
+ throw TypeError(".sesame.v1.compositor.PropertySetRequest.domain: object expected");
22754
+ message.domain = $root.sesame.v1.common.PropertyDomain.fromObject(object.domain);
22755
+ }
22756
+ if (object.address != null)
22757
+ message.address = String(object.address);
22758
+ if (object.property != null)
22759
+ message.property = String(object.property);
22760
+ if (object.value != null) {
22761
+ if (typeof object.value !== "object")
22762
+ throw TypeError(".sesame.v1.compositor.PropertySetRequest.value: object expected");
22763
+ message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
22764
+ }
22765
+ return message;
22766
+ };
22767
+ PropertySetRequest.toObject = function toObject(message, options) {
22768
+ if (!options)
22769
+ options = {};
22770
+ let object = {};
22771
+ if (options.defaults) {
22772
+ object.domain = null;
22773
+ object.address = "";
22774
+ object.property = "";
22775
+ object.value = null;
22776
+ }
22777
+ if (message.domain != null && message.hasOwnProperty("domain"))
22778
+ object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
22779
+ if (message.address != null && message.hasOwnProperty("address"))
22780
+ object.address = message.address;
22781
+ if (message.property != null && message.hasOwnProperty("property"))
22782
+ object.property = message.property;
22783
+ if (message.value != null && message.hasOwnProperty("value"))
22784
+ object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
22785
+ return object;
22786
+ };
22787
+ PropertySetRequest.prototype.toJSON = function toJSON() {
22788
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
22789
+ };
22790
+ PropertySetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22791
+ if (typeUrlPrefix === void 0) {
22792
+ typeUrlPrefix = "type.googleapis.com";
22793
+ }
22794
+ return typeUrlPrefix + "/sesame.v1.compositor.PropertySetRequest";
22795
+ };
22796
+ return PropertySetRequest;
22797
+ }();
22798
+ compositor.PropertyAnimateRequest = function() {
22799
+ function PropertyAnimateRequest(properties) {
22800
+ this.keyframes = [];
22801
+ if (properties) {
22802
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22803
+ if (properties[keys[i]] != null)
22804
+ this[keys[i]] = properties[keys[i]];
22805
+ }
22806
+ }
22807
+ PropertyAnimateRequest.prototype.domain = null;
22808
+ PropertyAnimateRequest.prototype.address = "";
22809
+ PropertyAnimateRequest.prototype.property = "";
22810
+ PropertyAnimateRequest.prototype.keyframes = $util.emptyArray;
22811
+ PropertyAnimateRequest.prototype.before = 0;
22812
+ PropertyAnimateRequest.prototype.after = 0;
22813
+ PropertyAnimateRequest.create = function create(properties) {
22814
+ return new PropertyAnimateRequest(properties);
22815
+ };
22816
+ PropertyAnimateRequest.encode = function encode(message, writer) {
22817
+ if (!writer)
22818
+ writer = $Writer.create();
22819
+ if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
22820
+ $root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
22821
+ /* id 1, wireType 2 =*/
22822
+ 10
22823
+ ).fork()).ldelim();
22824
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
22825
+ writer.uint32(
22826
+ /* id 2, wireType 2 =*/
22827
+ 18
22828
+ ).string(message.address);
22829
+ if (message.property != null && Object.hasOwnProperty.call(message, "property"))
22830
+ writer.uint32(
22831
+ /* id 3, wireType 2 =*/
22832
+ 26
22833
+ ).string(message.property);
22834
+ if (message.keyframes != null && message.keyframes.length)
22835
+ for (let i = 0; i < message.keyframes.length; ++i)
22836
+ $root.sesame.v1.compositor.KeyFrame.encode(message.keyframes[i], writer.uint32(
22837
+ /* id 4, wireType 2 =*/
22838
+ 34
22839
+ ).fork()).ldelim();
22840
+ if (message.before != null && Object.hasOwnProperty.call(message, "before"))
22841
+ writer.uint32(
22842
+ /* id 5, wireType 0 =*/
22843
+ 40
22844
+ ).int32(message.before);
22845
+ if (message.after != null && Object.hasOwnProperty.call(message, "after"))
22846
+ writer.uint32(
22847
+ /* id 6, wireType 0 =*/
22848
+ 48
22849
+ ).int32(message.after);
22850
+ return writer;
22851
+ };
22852
+ PropertyAnimateRequest.encodeDelimited = function encodeDelimited(message, writer) {
22853
+ return this.encode(message, writer).ldelim();
22854
+ };
22855
+ PropertyAnimateRequest.decode = function decode(reader, length, error) {
22856
+ if (!(reader instanceof $Reader))
22857
+ reader = $Reader.create(reader);
22858
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
22859
+ while (reader.pos < end) {
22860
+ let tag = reader.uint32();
22861
+ if (tag === error)
22862
+ break;
22863
+ switch (tag >>> 3) {
22864
+ case 1: {
22865
+ message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
22866
+ break;
22867
+ }
22868
+ case 2: {
22869
+ message.address = reader.string();
22870
+ break;
22871
+ }
22872
+ case 3: {
22873
+ message.property = reader.string();
22874
+ break;
22875
+ }
22876
+ case 4: {
22877
+ if (!(message.keyframes && message.keyframes.length))
22878
+ message.keyframes = [];
22879
+ message.keyframes.push($root.sesame.v1.compositor.KeyFrame.decode(reader, reader.uint32()));
22880
+ break;
22881
+ }
22882
+ case 5: {
22883
+ message.before = reader.int32();
22884
+ break;
22885
+ }
22886
+ case 6: {
22887
+ message.after = reader.int32();
22888
+ break;
22889
+ }
22890
+ default:
22891
+ reader.skipType(tag & 7);
22892
+ break;
22893
+ }
22894
+ }
22895
+ return message;
22896
+ };
22897
+ PropertyAnimateRequest.decodeDelimited = function decodeDelimited(reader) {
22898
+ if (!(reader instanceof $Reader))
22899
+ reader = new $Reader(reader);
22900
+ return this.decode(reader, reader.uint32());
22901
+ };
22902
+ PropertyAnimateRequest.verify = function verify(message) {
22903
+ if (typeof message !== "object" || message === null)
22904
+ return "object expected";
22905
+ if (message.domain != null && message.hasOwnProperty("domain")) {
22906
+ let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
22907
+ if (error)
22908
+ return "domain." + error;
22909
+ }
22910
+ if (message.address != null && message.hasOwnProperty("address")) {
22911
+ if (!$util.isString(message.address))
22912
+ return "address: string expected";
22913
+ }
22914
+ if (message.property != null && message.hasOwnProperty("property")) {
22915
+ if (!$util.isString(message.property))
22916
+ return "property: string expected";
22917
+ }
22918
+ if (message.keyframes != null && message.hasOwnProperty("keyframes")) {
22919
+ if (!Array.isArray(message.keyframes))
22920
+ return "keyframes: array expected";
22921
+ for (let i = 0; i < message.keyframes.length; ++i) {
22922
+ let error = $root.sesame.v1.compositor.KeyFrame.verify(message.keyframes[i]);
22923
+ if (error)
22924
+ return "keyframes." + error;
22925
+ }
22926
+ }
22927
+ if (message.before != null && message.hasOwnProperty("before"))
22928
+ switch (message.before) {
22929
+ default:
22930
+ return "before: enum value expected";
22931
+ case 0:
22932
+ case 1:
22933
+ case 2:
22934
+ case 3:
22935
+ break;
22936
+ }
22937
+ if (message.after != null && message.hasOwnProperty("after"))
22938
+ switch (message.after) {
22939
+ default:
22940
+ return "after: enum value expected";
22941
+ case 0:
22942
+ case 1:
22943
+ case 2:
22944
+ case 3:
22945
+ break;
22946
+ }
22947
+ return null;
22948
+ };
22949
+ PropertyAnimateRequest.fromObject = function fromObject(object) {
22950
+ if (object instanceof $root.sesame.v1.compositor.PropertyAnimateRequest)
22951
+ return object;
22952
+ let message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
22953
+ if (object.domain != null) {
22954
+ if (typeof object.domain !== "object")
22955
+ throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.domain: object expected");
22956
+ message.domain = $root.sesame.v1.common.PropertyDomain.fromObject(object.domain);
22957
+ }
22958
+ if (object.address != null)
22959
+ message.address = String(object.address);
22960
+ if (object.property != null)
22961
+ message.property = String(object.property);
22962
+ if (object.keyframes) {
22963
+ if (!Array.isArray(object.keyframes))
22964
+ throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: array expected");
22965
+ message.keyframes = [];
22966
+ for (let i = 0; i < object.keyframes.length; ++i) {
22967
+ if (typeof object.keyframes[i] !== "object")
22968
+ throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: object expected");
22969
+ message.keyframes[i] = $root.sesame.v1.compositor.KeyFrame.fromObject(object.keyframes[i]);
22970
+ }
22971
+ }
22972
+ switch (object.before) {
22973
+ default:
22974
+ if (typeof object.before === "number") {
22975
+ message.before = object.before;
22976
+ break;
22977
+ }
22978
+ break;
22979
+ case "ANIM_MODE_CONSTANT":
22980
+ case 0:
22981
+ message.before = 0;
22982
+ break;
22983
+ case "ANIM_MODE_STATE_FROM":
22984
+ case 1:
22985
+ message.before = 1;
22986
+ break;
22987
+ case "ANIM_MODE_LOOP":
22988
+ case 2:
22989
+ message.before = 2;
22990
+ break;
22991
+ case "ANIM_MODE_BOUNCE":
22992
+ case 3:
22993
+ message.before = 3;
22994
+ break;
22995
+ }
22996
+ switch (object.after) {
22997
+ default:
22998
+ if (typeof object.after === "number") {
22999
+ message.after = object.after;
23000
+ break;
23001
+ }
23002
+ break;
23003
+ case "ANIM_MODE_CONSTANT":
23004
+ case 0:
23005
+ message.after = 0;
23006
+ break;
23007
+ case "ANIM_MODE_STATE_FROM":
23008
+ case 1:
23009
+ message.after = 1;
23010
+ break;
23011
+ case "ANIM_MODE_LOOP":
23012
+ case 2:
23013
+ message.after = 2;
23014
+ break;
23015
+ case "ANIM_MODE_BOUNCE":
23016
+ case 3:
23017
+ message.after = 3;
23018
+ break;
23019
+ }
23020
+ return message;
23021
+ };
23022
+ PropertyAnimateRequest.toObject = function toObject(message, options) {
23023
+ if (!options)
23024
+ options = {};
23025
+ let object = {};
23026
+ if (options.arrays || options.defaults)
23027
+ object.keyframes = [];
23028
+ if (options.defaults) {
23029
+ object.domain = null;
23030
+ object.address = "";
23031
+ object.property = "";
23032
+ object.before = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
23033
+ object.after = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
23034
+ }
23035
+ if (message.domain != null && message.hasOwnProperty("domain"))
23036
+ object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
23037
+ if (message.address != null && message.hasOwnProperty("address"))
23038
+ object.address = message.address;
23039
+ if (message.property != null && message.hasOwnProperty("property"))
23040
+ object.property = message.property;
23041
+ if (message.keyframes && message.keyframes.length) {
23042
+ object.keyframes = [];
23043
+ for (let j = 0; j < message.keyframes.length; ++j)
23044
+ object.keyframes[j] = $root.sesame.v1.compositor.KeyFrame.toObject(message.keyframes[j], options);
23045
+ }
23046
+ if (message.before != null && message.hasOwnProperty("before"))
23047
+ object.before = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] === void 0 ? message.before : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] : message.before;
23048
+ if (message.after != null && message.hasOwnProperty("after"))
23049
+ object.after = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] === void 0 ? message.after : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] : message.after;
23050
+ return object;
23051
+ };
23052
+ PropertyAnimateRequest.prototype.toJSON = function toJSON() {
23053
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
23054
+ };
23055
+ PropertyAnimateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23056
+ if (typeUrlPrefix === void 0) {
23057
+ typeUrlPrefix = "type.googleapis.com";
23058
+ }
23059
+ return typeUrlPrefix + "/sesame.v1.compositor.PropertyAnimateRequest";
23060
+ };
23061
+ return PropertyAnimateRequest;
23062
+ }();
23063
+ return compositor;
23064
+ }();
23065
+ v1.sidedata = function() {
23066
+ const sidedata = {};
23067
+ sidedata.AtlasEntry = function() {
23068
+ function AtlasEntry(properties) {
23069
+ if (properties) {
23070
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23071
+ if (properties[keys[i]] != null)
23072
+ this[keys[i]] = properties[keys[i]];
23073
+ }
23074
+ }
23075
+ AtlasEntry.prototype.sourceId = "";
23076
+ AtlasEntry.prototype.x = 0;
23077
+ AtlasEntry.prototype.y = 0;
23078
+ AtlasEntry.prototype.width = 0;
23079
+ AtlasEntry.prototype.height = 0;
23080
+ AtlasEntry.prototype.sourceWidth = 0;
23081
+ AtlasEntry.prototype.sourceHeight = 0;
23082
+ AtlasEntry.create = function create(properties) {
23083
+ return new AtlasEntry(properties);
23084
+ };
23085
+ AtlasEntry.encode = function encode(message, writer) {
23086
+ if (!writer)
23087
+ writer = $Writer.create();
23088
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
23089
+ writer.uint32(
23090
+ /* id 1, wireType 2 =*/
23091
+ 10
23092
+ ).string(message.sourceId);
23093
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
23094
+ writer.uint32(
23095
+ /* id 2, wireType 0 =*/
23096
+ 16
23097
+ ).uint32(message.x);
23098
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
23099
+ writer.uint32(
23100
+ /* id 3, wireType 0 =*/
23101
+ 24
23102
+ ).uint32(message.y);
23103
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
23104
+ writer.uint32(
23105
+ /* id 4, wireType 0 =*/
23106
+ 32
23107
+ ).uint32(message.width);
23108
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
23109
+ writer.uint32(
23110
+ /* id 5, wireType 0 =*/
23111
+ 40
23112
+ ).uint32(message.height);
23113
+ if (message.sourceWidth != null && Object.hasOwnProperty.call(message, "sourceWidth"))
23114
+ writer.uint32(
23115
+ /* id 6, wireType 0 =*/
23116
+ 48
23117
+ ).uint32(message.sourceWidth);
23118
+ if (message.sourceHeight != null && Object.hasOwnProperty.call(message, "sourceHeight"))
23119
+ writer.uint32(
23120
+ /* id 7, wireType 0 =*/
23121
+ 56
23122
+ ).uint32(message.sourceHeight);
23123
+ return writer;
23124
+ };
23125
+ AtlasEntry.encodeDelimited = function encodeDelimited(message, writer) {
23126
+ return this.encode(message, writer).ldelim();
23127
+ };
23128
+ AtlasEntry.decode = function decode(reader, length, error) {
23129
+ if (!(reader instanceof $Reader))
23130
+ reader = $Reader.create(reader);
23131
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasEntry();
23132
+ while (reader.pos < end) {
23133
+ let tag = reader.uint32();
23134
+ if (tag === error)
23135
+ break;
23136
+ switch (tag >>> 3) {
23137
+ case 1: {
23138
+ message.sourceId = reader.string();
23139
+ break;
23140
+ }
23141
+ case 2: {
23142
+ message.x = reader.uint32();
23143
+ break;
23144
+ }
23145
+ case 3: {
23146
+ message.y = reader.uint32();
23147
+ break;
23148
+ }
23149
+ case 4: {
23150
+ message.width = reader.uint32();
23151
+ break;
23152
+ }
23153
+ case 5: {
23154
+ message.height = reader.uint32();
23155
+ break;
23156
+ }
23157
+ case 6: {
23158
+ message.sourceWidth = reader.uint32();
23159
+ break;
23160
+ }
23161
+ case 7: {
23162
+ message.sourceHeight = reader.uint32();
23163
+ break;
23164
+ }
23165
+ default:
23166
+ reader.skipType(tag & 7);
23167
+ break;
23168
+ }
23169
+ }
23170
+ return message;
23171
+ };
23172
+ AtlasEntry.decodeDelimited = function decodeDelimited(reader) {
23173
+ if (!(reader instanceof $Reader))
23174
+ reader = new $Reader(reader);
23175
+ return this.decode(reader, reader.uint32());
23176
+ };
23177
+ AtlasEntry.verify = function verify(message) {
23178
+ if (typeof message !== "object" || message === null)
23179
+ return "object expected";
23180
+ if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
23181
+ if (!$util.isString(message.sourceId))
23182
+ return "sourceId: string expected";
23183
+ }
23184
+ if (message.x != null && message.hasOwnProperty("x")) {
23185
+ if (!$util.isInteger(message.x))
23186
+ return "x: integer expected";
23187
+ }
23188
+ if (message.y != null && message.hasOwnProperty("y")) {
23189
+ if (!$util.isInteger(message.y))
23190
+ return "y: integer expected";
23191
+ }
23192
+ if (message.width != null && message.hasOwnProperty("width")) {
23193
+ if (!$util.isInteger(message.width))
23194
+ return "width: integer expected";
23195
+ }
23196
+ if (message.height != null && message.hasOwnProperty("height")) {
23197
+ if (!$util.isInteger(message.height))
23198
+ return "height: integer expected";
23199
+ }
23200
+ if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth")) {
23201
+ if (!$util.isInteger(message.sourceWidth))
23202
+ return "sourceWidth: integer expected";
23203
+ }
23204
+ if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight")) {
23205
+ if (!$util.isInteger(message.sourceHeight))
23206
+ return "sourceHeight: integer expected";
23207
+ }
23208
+ return null;
23209
+ };
23210
+ AtlasEntry.fromObject = function fromObject(object) {
23211
+ if (object instanceof $root.sesame.v1.sidedata.AtlasEntry)
23212
+ return object;
23213
+ let message = new $root.sesame.v1.sidedata.AtlasEntry();
23214
+ if (object.sourceId != null)
23215
+ message.sourceId = String(object.sourceId);
23216
+ if (object.x != null)
23217
+ message.x = object.x >>> 0;
23218
+ if (object.y != null)
23219
+ message.y = object.y >>> 0;
23220
+ if (object.width != null)
23221
+ message.width = object.width >>> 0;
23222
+ if (object.height != null)
23223
+ message.height = object.height >>> 0;
23224
+ if (object.sourceWidth != null)
23225
+ message.sourceWidth = object.sourceWidth >>> 0;
23226
+ if (object.sourceHeight != null)
23227
+ message.sourceHeight = object.sourceHeight >>> 0;
23228
+ return message;
23229
+ };
23230
+ AtlasEntry.toObject = function toObject(message, options) {
21209
23231
  if (!options)
21210
23232
  options = {};
21211
23233
  let object = {};
21212
23234
  if (options.defaults) {
21213
- object.compositorId = "";
21214
- object.parentAddress = "";
21215
- object.nodeId = "";
21216
- object.nodeType = options.enums === String ? "NODE_TYPE_UNSPECIFIED" : 0;
23235
+ object.sourceId = "";
23236
+ object.x = 0;
23237
+ object.y = 0;
23238
+ object.width = 0;
23239
+ object.height = 0;
23240
+ object.sourceWidth = 0;
23241
+ object.sourceHeight = 0;
21217
23242
  }
21218
- if (message.compositorId != null && message.hasOwnProperty("compositorId"))
21219
- object.compositorId = message.compositorId;
21220
- if (message.parentAddress != null && message.hasOwnProperty("parentAddress"))
21221
- object.parentAddress = message.parentAddress;
21222
- if (message.nodeId != null && message.hasOwnProperty("nodeId"))
21223
- object.nodeId = message.nodeId;
21224
- if (message.nodeType != null && message.hasOwnProperty("nodeType"))
21225
- object.nodeType = options.enums === String ? $root.sesame.v1.compositor.NodeType[message.nodeType] === void 0 ? message.nodeType : $root.sesame.v1.compositor.NodeType[message.nodeType] : message.nodeType;
23243
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
23244
+ object.sourceId = message.sourceId;
23245
+ if (message.x != null && message.hasOwnProperty("x"))
23246
+ object.x = message.x;
23247
+ if (message.y != null && message.hasOwnProperty("y"))
23248
+ object.y = message.y;
23249
+ if (message.width != null && message.hasOwnProperty("width"))
23250
+ object.width = message.width;
23251
+ if (message.height != null && message.hasOwnProperty("height"))
23252
+ object.height = message.height;
23253
+ if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth"))
23254
+ object.sourceWidth = message.sourceWidth;
23255
+ if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight"))
23256
+ object.sourceHeight = message.sourceHeight;
21226
23257
  return object;
21227
23258
  };
21228
- NodeAddRequest.prototype.toJSON = function toJSON() {
23259
+ AtlasEntry.prototype.toJSON = function toJSON() {
21229
23260
  return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
21230
23261
  };
21231
- NodeAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23262
+ AtlasEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21232
23263
  if (typeUrlPrefix === void 0) {
21233
23264
  typeUrlPrefix = "type.googleapis.com";
21234
23265
  }
21235
- return typeUrlPrefix + "/sesame.v1.compositor.NodeAddRequest";
23266
+ return typeUrlPrefix + "/sesame.v1.sidedata.AtlasEntry";
21236
23267
  };
21237
- return NodeAddRequest;
23268
+ return AtlasEntry;
21238
23269
  }();
21239
- compositor.NodeRemoveRequest = function() {
21240
- function NodeRemoveRequest(properties) {
23270
+ sidedata.AtlasLayout = function() {
23271
+ function AtlasLayout(properties) {
23272
+ this.entries = [];
21241
23273
  if (properties) {
21242
23274
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
21243
23275
  if (properties[keys[i]] != null)
21244
23276
  this[keys[i]] = properties[keys[i]];
21245
23277
  }
21246
23278
  }
21247
- NodeRemoveRequest.prototype.compositorId = "";
21248
- NodeRemoveRequest.prototype.address = "";
21249
- NodeRemoveRequest.create = function create(properties) {
21250
- return new NodeRemoveRequest(properties);
23279
+ AtlasLayout.prototype.width = 0;
23280
+ AtlasLayout.prototype.height = 0;
23281
+ AtlasLayout.prototype.entries = $util.emptyArray;
23282
+ AtlasLayout.create = function create(properties) {
23283
+ return new AtlasLayout(properties);
21251
23284
  };
21252
- NodeRemoveRequest.encode = function encode(message, writer) {
23285
+ AtlasLayout.encode = function encode(message, writer) {
21253
23286
  if (!writer)
21254
23287
  writer = $Writer.create();
21255
- if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
23288
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
21256
23289
  writer.uint32(
21257
- /* id 1, wireType 2 =*/
21258
- 10
21259
- ).string(message.compositorId);
21260
- if (message.address != null && Object.hasOwnProperty.call(message, "address"))
23290
+ /* id 1, wireType 0 =*/
23291
+ 8
23292
+ ).uint32(message.width);
23293
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
21261
23294
  writer.uint32(
21262
- /* id 2, wireType 2 =*/
21263
- 18
21264
- ).string(message.address);
23295
+ /* id 2, wireType 0 =*/
23296
+ 16
23297
+ ).uint32(message.height);
23298
+ if (message.entries != null && message.entries.length)
23299
+ for (let i = 0; i < message.entries.length; ++i)
23300
+ $root.sesame.v1.sidedata.AtlasEntry.encode(message.entries[i], writer.uint32(
23301
+ /* id 3, wireType 2 =*/
23302
+ 26
23303
+ ).fork()).ldelim();
21265
23304
  return writer;
21266
23305
  };
21267
- NodeRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
23306
+ AtlasLayout.encodeDelimited = function encodeDelimited(message, writer) {
21268
23307
  return this.encode(message, writer).ldelim();
21269
23308
  };
21270
- NodeRemoveRequest.decode = function decode(reader, length, error) {
23309
+ AtlasLayout.decode = function decode(reader, length, error) {
21271
23310
  if (!(reader instanceof $Reader))
21272
23311
  reader = $Reader.create(reader);
21273
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.NodeRemoveRequest();
23312
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasLayout();
21274
23313
  while (reader.pos < end) {
21275
23314
  let tag = reader.uint32();
21276
23315
  if (tag === error)
21277
23316
  break;
21278
23317
  switch (tag >>> 3) {
21279
23318
  case 1: {
21280
- message.compositorId = reader.string();
23319
+ message.width = reader.uint32();
21281
23320
  break;
21282
23321
  }
21283
23322
  case 2: {
21284
- message.address = reader.string();
23323
+ message.height = reader.uint32();
23324
+ break;
23325
+ }
23326
+ case 3: {
23327
+ if (!(message.entries && message.entries.length))
23328
+ message.entries = [];
23329
+ message.entries.push($root.sesame.v1.sidedata.AtlasEntry.decode(reader, reader.uint32()));
21285
23330
  break;
21286
23331
  }
21287
23332
  default:
@@ -21291,125 +23336,166 @@ var sesame = $root.sesame = (() => {
21291
23336
  }
21292
23337
  return message;
21293
23338
  };
21294
- NodeRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
23339
+ AtlasLayout.decodeDelimited = function decodeDelimited(reader) {
21295
23340
  if (!(reader instanceof $Reader))
21296
23341
  reader = new $Reader(reader);
21297
23342
  return this.decode(reader, reader.uint32());
21298
23343
  };
21299
- NodeRemoveRequest.verify = function verify(message) {
23344
+ AtlasLayout.verify = function verify(message) {
21300
23345
  if (typeof message !== "object" || message === null)
21301
23346
  return "object expected";
21302
- if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
21303
- if (!$util.isString(message.compositorId))
21304
- return "compositorId: string expected";
23347
+ if (message.width != null && message.hasOwnProperty("width")) {
23348
+ if (!$util.isInteger(message.width))
23349
+ return "width: integer expected";
21305
23350
  }
21306
- if (message.address != null && message.hasOwnProperty("address")) {
21307
- if (!$util.isString(message.address))
21308
- return "address: string expected";
23351
+ if (message.height != null && message.hasOwnProperty("height")) {
23352
+ if (!$util.isInteger(message.height))
23353
+ return "height: integer expected";
23354
+ }
23355
+ if (message.entries != null && message.hasOwnProperty("entries")) {
23356
+ if (!Array.isArray(message.entries))
23357
+ return "entries: array expected";
23358
+ for (let i = 0; i < message.entries.length; ++i) {
23359
+ let error = $root.sesame.v1.sidedata.AtlasEntry.verify(message.entries[i]);
23360
+ if (error)
23361
+ return "entries." + error;
23362
+ }
21309
23363
  }
21310
23364
  return null;
21311
23365
  };
21312
- NodeRemoveRequest.fromObject = function fromObject(object) {
21313
- if (object instanceof $root.sesame.v1.compositor.NodeRemoveRequest)
23366
+ AtlasLayout.fromObject = function fromObject(object) {
23367
+ if (object instanceof $root.sesame.v1.sidedata.AtlasLayout)
21314
23368
  return object;
21315
- let message = new $root.sesame.v1.compositor.NodeRemoveRequest();
21316
- if (object.compositorId != null)
21317
- message.compositorId = String(object.compositorId);
21318
- if (object.address != null)
21319
- message.address = String(object.address);
23369
+ let message = new $root.sesame.v1.sidedata.AtlasLayout();
23370
+ if (object.width != null)
23371
+ message.width = object.width >>> 0;
23372
+ if (object.height != null)
23373
+ message.height = object.height >>> 0;
23374
+ if (object.entries) {
23375
+ if (!Array.isArray(object.entries))
23376
+ throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: array expected");
23377
+ message.entries = [];
23378
+ for (let i = 0; i < object.entries.length; ++i) {
23379
+ if (typeof object.entries[i] !== "object")
23380
+ throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: object expected");
23381
+ message.entries[i] = $root.sesame.v1.sidedata.AtlasEntry.fromObject(object.entries[i]);
23382
+ }
23383
+ }
21320
23384
  return message;
21321
23385
  };
21322
- NodeRemoveRequest.toObject = function toObject(message, options) {
23386
+ AtlasLayout.toObject = function toObject(message, options) {
21323
23387
  if (!options)
21324
23388
  options = {};
21325
23389
  let object = {};
23390
+ if (options.arrays || options.defaults)
23391
+ object.entries = [];
21326
23392
  if (options.defaults) {
21327
- object.compositorId = "";
21328
- object.address = "";
23393
+ object.width = 0;
23394
+ object.height = 0;
23395
+ }
23396
+ if (message.width != null && message.hasOwnProperty("width"))
23397
+ object.width = message.width;
23398
+ if (message.height != null && message.hasOwnProperty("height"))
23399
+ object.height = message.height;
23400
+ if (message.entries && message.entries.length) {
23401
+ object.entries = [];
23402
+ for (let j = 0; j < message.entries.length; ++j)
23403
+ object.entries[j] = $root.sesame.v1.sidedata.AtlasEntry.toObject(message.entries[j], options);
21329
23404
  }
21330
- if (message.compositorId != null && message.hasOwnProperty("compositorId"))
21331
- object.compositorId = message.compositorId;
21332
- if (message.address != null && message.hasOwnProperty("address"))
21333
- object.address = message.address;
21334
23405
  return object;
21335
23406
  };
21336
- NodeRemoveRequest.prototype.toJSON = function toJSON() {
23407
+ AtlasLayout.prototype.toJSON = function toJSON() {
21337
23408
  return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
21338
23409
  };
21339
- NodeRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23410
+ AtlasLayout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21340
23411
  if (typeUrlPrefix === void 0) {
21341
23412
  typeUrlPrefix = "type.googleapis.com";
21342
23413
  }
21343
- return typeUrlPrefix + "/sesame.v1.compositor.NodeRemoveRequest";
23414
+ return typeUrlPrefix + "/sesame.v1.sidedata.AtlasLayout";
21344
23415
  };
21345
- return NodeRemoveRequest;
23416
+ return AtlasLayout;
21346
23417
  }();
21347
- compositor.PropertySetRequest = function() {
21348
- function PropertySetRequest(properties) {
23418
+ sidedata.SideData = function() {
23419
+ function SideData2(properties) {
21349
23420
  if (properties) {
21350
23421
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
21351
23422
  if (properties[keys[i]] != null)
21352
23423
  this[keys[i]] = properties[keys[i]];
21353
23424
  }
21354
23425
  }
21355
- PropertySetRequest.prototype.domain = null;
21356
- PropertySetRequest.prototype.address = "";
21357
- PropertySetRequest.prototype.property = "";
21358
- PropertySetRequest.prototype.value = null;
21359
- PropertySetRequest.create = function create(properties) {
21360
- return new PropertySetRequest(properties);
23426
+ SideData2.prototype.id = "";
23427
+ SideData2.prototype.version = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
23428
+ SideData2.prototype.atlas = null;
23429
+ SideData2.prototype.json = null;
23430
+ SideData2.prototype.binary = null;
23431
+ let $oneOfFields;
23432
+ Object.defineProperty(SideData2.prototype, "payload", {
23433
+ get: $util.oneOfGetter($oneOfFields = ["atlas", "json", "binary"]),
23434
+ set: $util.oneOfSetter($oneOfFields)
23435
+ });
23436
+ SideData2.create = function create(properties) {
23437
+ return new SideData2(properties);
21361
23438
  };
21362
- PropertySetRequest.encode = function encode(message, writer) {
23439
+ SideData2.encode = function encode(message, writer) {
21363
23440
  if (!writer)
21364
23441
  writer = $Writer.create();
21365
- if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
21366
- $root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
23442
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
23443
+ writer.uint32(
21367
23444
  /* id 1, wireType 2 =*/
21368
23445
  10
23446
+ ).string(message.id);
23447
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
23448
+ writer.uint32(
23449
+ /* id 2, wireType 0 =*/
23450
+ 16
23451
+ ).uint64(message.version);
23452
+ if (message.atlas != null && Object.hasOwnProperty.call(message, "atlas"))
23453
+ $root.sesame.v1.sidedata.AtlasLayout.encode(message.atlas, writer.uint32(
23454
+ /* id 10, wireType 2 =*/
23455
+ 82
21369
23456
  ).fork()).ldelim();
21370
- if (message.address != null && Object.hasOwnProperty.call(message, "address"))
23457
+ if (message.json != null && Object.hasOwnProperty.call(message, "json"))
21371
23458
  writer.uint32(
21372
- /* id 2, wireType 2 =*/
21373
- 18
21374
- ).string(message.address);
21375
- if (message.property != null && Object.hasOwnProperty.call(message, "property"))
23459
+ /* id 20, wireType 2 =*/
23460
+ 162
23461
+ ).string(message.json);
23462
+ if (message.binary != null && Object.hasOwnProperty.call(message, "binary"))
21376
23463
  writer.uint32(
21377
- /* id 3, wireType 2 =*/
21378
- 26
21379
- ).string(message.property);
21380
- if (message.value != null && Object.hasOwnProperty.call(message, "value"))
21381
- $root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
21382
- /* id 4, wireType 2 =*/
21383
- 34
21384
- ).fork()).ldelim();
23464
+ /* id 21, wireType 2 =*/
23465
+ 170
23466
+ ).bytes(message.binary);
21385
23467
  return writer;
21386
23468
  };
21387
- PropertySetRequest.encodeDelimited = function encodeDelimited(message, writer) {
23469
+ SideData2.encodeDelimited = function encodeDelimited(message, writer) {
21388
23470
  return this.encode(message, writer).ldelim();
21389
23471
  };
21390
- PropertySetRequest.decode = function decode(reader, length, error) {
23472
+ SideData2.decode = function decode(reader, length, error) {
21391
23473
  if (!(reader instanceof $Reader))
21392
23474
  reader = $Reader.create(reader);
21393
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertySetRequest();
23475
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideData();
21394
23476
  while (reader.pos < end) {
21395
23477
  let tag = reader.uint32();
21396
23478
  if (tag === error)
21397
23479
  break;
21398
23480
  switch (tag >>> 3) {
21399
23481
  case 1: {
21400
- message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
23482
+ message.id = reader.string();
21401
23483
  break;
21402
23484
  }
21403
23485
  case 2: {
21404
- message.address = reader.string();
23486
+ message.version = reader.uint64();
21405
23487
  break;
21406
23488
  }
21407
- case 3: {
21408
- message.property = reader.string();
23489
+ case 10: {
23490
+ message.atlas = $root.sesame.v1.sidedata.AtlasLayout.decode(reader, reader.uint32());
21409
23491
  break;
21410
23492
  }
21411
- case 4: {
21412
- message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
23493
+ case 20: {
23494
+ message.json = reader.string();
23495
+ break;
23496
+ }
23497
+ case 21: {
23498
+ message.binary = reader.bytes();
21413
23499
  break;
21414
23500
  }
21415
23501
  default:
@@ -21419,175 +23505,165 @@ var sesame = $root.sesame = (() => {
21419
23505
  }
21420
23506
  return message;
21421
23507
  };
21422
- PropertySetRequest.decodeDelimited = function decodeDelimited(reader) {
23508
+ SideData2.decodeDelimited = function decodeDelimited(reader) {
21423
23509
  if (!(reader instanceof $Reader))
21424
23510
  reader = new $Reader(reader);
21425
23511
  return this.decode(reader, reader.uint32());
21426
23512
  };
21427
- PropertySetRequest.verify = function verify(message) {
23513
+ SideData2.verify = function verify(message) {
21428
23514
  if (typeof message !== "object" || message === null)
21429
23515
  return "object expected";
21430
- if (message.domain != null && message.hasOwnProperty("domain")) {
21431
- let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
21432
- if (error)
21433
- return "domain." + error;
23516
+ let properties = {};
23517
+ if (message.id != null && message.hasOwnProperty("id")) {
23518
+ if (!$util.isString(message.id))
23519
+ return "id: string expected";
21434
23520
  }
21435
- if (message.address != null && message.hasOwnProperty("address")) {
21436
- if (!$util.isString(message.address))
21437
- return "address: string expected";
23521
+ if (message.version != null && message.hasOwnProperty("version")) {
23522
+ if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
23523
+ return "version: integer|Long expected";
21438
23524
  }
21439
- if (message.property != null && message.hasOwnProperty("property")) {
21440
- if (!$util.isString(message.property))
21441
- return "property: string expected";
23525
+ if (message.atlas != null && message.hasOwnProperty("atlas")) {
23526
+ properties.payload = 1;
23527
+ {
23528
+ let error = $root.sesame.v1.sidedata.AtlasLayout.verify(message.atlas);
23529
+ if (error)
23530
+ return "atlas." + error;
23531
+ }
21442
23532
  }
21443
- if (message.value != null && message.hasOwnProperty("value")) {
21444
- let error = $root.sesame.v1.common.PropValue.verify(message.value);
21445
- if (error)
21446
- return "value." + error;
23533
+ if (message.json != null && message.hasOwnProperty("json")) {
23534
+ if (properties.payload === 1)
23535
+ return "payload: multiple values";
23536
+ properties.payload = 1;
23537
+ if (!$util.isString(message.json))
23538
+ return "json: string expected";
23539
+ }
23540
+ if (message.binary != null && message.hasOwnProperty("binary")) {
23541
+ if (properties.payload === 1)
23542
+ return "payload: multiple values";
23543
+ properties.payload = 1;
23544
+ if (!(message.binary && typeof message.binary.length === "number" || $util.isString(message.binary)))
23545
+ return "binary: buffer expected";
21447
23546
  }
21448
23547
  return null;
21449
23548
  };
21450
- PropertySetRequest.fromObject = function fromObject(object) {
21451
- if (object instanceof $root.sesame.v1.compositor.PropertySetRequest)
23549
+ SideData2.fromObject = function fromObject(object) {
23550
+ if (object instanceof $root.sesame.v1.sidedata.SideData)
21452
23551
  return object;
21453
- let message = new $root.sesame.v1.compositor.PropertySetRequest();
21454
- if (object.domain != null) {
21455
- if (typeof object.domain !== "object")
21456
- throw TypeError(".sesame.v1.compositor.PropertySetRequest.domain: object expected");
21457
- message.domain = $root.sesame.v1.common.PropertyDomain.fromObject(object.domain);
21458
- }
21459
- if (object.address != null)
21460
- message.address = String(object.address);
21461
- if (object.property != null)
21462
- message.property = String(object.property);
21463
- if (object.value != null) {
21464
- if (typeof object.value !== "object")
21465
- throw TypeError(".sesame.v1.compositor.PropertySetRequest.value: object expected");
21466
- message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
21467
- }
21468
- return message;
21469
- };
21470
- PropertySetRequest.toObject = function toObject(message, options) {
23552
+ let message = new $root.sesame.v1.sidedata.SideData();
23553
+ if (object.id != null)
23554
+ message.id = String(object.id);
23555
+ if (object.version != null) {
23556
+ if ($util.Long)
23557
+ (message.version = $util.Long.fromValue(object.version)).unsigned = true;
23558
+ else if (typeof object.version === "string")
23559
+ message.version = parseInt(object.version, 10);
23560
+ else if (typeof object.version === "number")
23561
+ message.version = object.version;
23562
+ else if (typeof object.version === "object")
23563
+ message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
23564
+ }
23565
+ if (object.atlas != null) {
23566
+ if (typeof object.atlas !== "object")
23567
+ throw TypeError(".sesame.v1.sidedata.SideData.atlas: object expected");
23568
+ message.atlas = $root.sesame.v1.sidedata.AtlasLayout.fromObject(object.atlas);
23569
+ }
23570
+ if (object.json != null)
23571
+ message.json = String(object.json);
23572
+ if (object.binary != null) {
23573
+ if (typeof object.binary === "string")
23574
+ $util.base64.decode(object.binary, message.binary = $util.newBuffer($util.base64.length(object.binary)), 0);
23575
+ else if (object.binary.length >= 0)
23576
+ message.binary = object.binary;
23577
+ }
23578
+ return message;
23579
+ };
23580
+ SideData2.toObject = function toObject(message, options) {
21471
23581
  if (!options)
21472
23582
  options = {};
21473
23583
  let object = {};
21474
23584
  if (options.defaults) {
21475
- object.domain = null;
21476
- object.address = "";
21477
- object.property = "";
21478
- object.value = null;
23585
+ object.id = "";
23586
+ if ($util.Long) {
23587
+ let long = new $util.Long(0, 0, true);
23588
+ object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
23589
+ } else
23590
+ object.version = options.longs === String ? "0" : 0;
23591
+ }
23592
+ if (message.id != null && message.hasOwnProperty("id"))
23593
+ object.id = message.id;
23594
+ if (message.version != null && message.hasOwnProperty("version"))
23595
+ if (typeof message.version === "number")
23596
+ object.version = options.longs === String ? String(message.version) : message.version;
23597
+ else
23598
+ object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
23599
+ if (message.atlas != null && message.hasOwnProperty("atlas")) {
23600
+ object.atlas = $root.sesame.v1.sidedata.AtlasLayout.toObject(message.atlas, options);
23601
+ if (options.oneofs)
23602
+ object.payload = "atlas";
23603
+ }
23604
+ if (message.json != null && message.hasOwnProperty("json")) {
23605
+ object.json = message.json;
23606
+ if (options.oneofs)
23607
+ object.payload = "json";
23608
+ }
23609
+ if (message.binary != null && message.hasOwnProperty("binary")) {
23610
+ object.binary = options.bytes === String ? $util.base64.encode(message.binary, 0, message.binary.length) : options.bytes === Array ? Array.prototype.slice.call(message.binary) : message.binary;
23611
+ if (options.oneofs)
23612
+ object.payload = "binary";
21479
23613
  }
21480
- if (message.domain != null && message.hasOwnProperty("domain"))
21481
- object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
21482
- if (message.address != null && message.hasOwnProperty("address"))
21483
- object.address = message.address;
21484
- if (message.property != null && message.hasOwnProperty("property"))
21485
- object.property = message.property;
21486
- if (message.value != null && message.hasOwnProperty("value"))
21487
- object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
21488
23614
  return object;
21489
23615
  };
21490
- PropertySetRequest.prototype.toJSON = function toJSON() {
23616
+ SideData2.prototype.toJSON = function toJSON() {
21491
23617
  return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
21492
23618
  };
21493
- PropertySetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23619
+ SideData2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21494
23620
  if (typeUrlPrefix === void 0) {
21495
23621
  typeUrlPrefix = "type.googleapis.com";
21496
23622
  }
21497
- return typeUrlPrefix + "/sesame.v1.compositor.PropertySetRequest";
23623
+ return typeUrlPrefix + "/sesame.v1.sidedata.SideData";
21498
23624
  };
21499
- return PropertySetRequest;
23625
+ return SideData2;
21500
23626
  }();
21501
- compositor.PropertyAnimateRequest = function() {
21502
- function PropertyAnimateRequest(properties) {
21503
- this.keyframes = [];
23627
+ sidedata.SideDataSet = function() {
23628
+ function SideDataSet(properties) {
23629
+ this.entries = [];
21504
23630
  if (properties) {
21505
23631
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
21506
23632
  if (properties[keys[i]] != null)
21507
23633
  this[keys[i]] = properties[keys[i]];
21508
23634
  }
21509
23635
  }
21510
- PropertyAnimateRequest.prototype.domain = null;
21511
- PropertyAnimateRequest.prototype.address = "";
21512
- PropertyAnimateRequest.prototype.property = "";
21513
- PropertyAnimateRequest.prototype.keyframes = $util.emptyArray;
21514
- PropertyAnimateRequest.prototype.before = 0;
21515
- PropertyAnimateRequest.prototype.after = 0;
21516
- PropertyAnimateRequest.create = function create(properties) {
21517
- return new PropertyAnimateRequest(properties);
23636
+ SideDataSet.prototype.entries = $util.emptyArray;
23637
+ SideDataSet.create = function create(properties) {
23638
+ return new SideDataSet(properties);
21518
23639
  };
21519
- PropertyAnimateRequest.encode = function encode(message, writer) {
23640
+ SideDataSet.encode = function encode(message, writer) {
21520
23641
  if (!writer)
21521
23642
  writer = $Writer.create();
21522
- if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
21523
- $root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
21524
- /* id 1, wireType 2 =*/
21525
- 10
21526
- ).fork()).ldelim();
21527
- if (message.address != null && Object.hasOwnProperty.call(message, "address"))
21528
- writer.uint32(
21529
- /* id 2, wireType 2 =*/
21530
- 18
21531
- ).string(message.address);
21532
- if (message.property != null && Object.hasOwnProperty.call(message, "property"))
21533
- writer.uint32(
21534
- /* id 3, wireType 2 =*/
21535
- 26
21536
- ).string(message.property);
21537
- if (message.keyframes != null && message.keyframes.length)
21538
- for (let i = 0; i < message.keyframes.length; ++i)
21539
- $root.sesame.v1.compositor.KeyFrame.encode(message.keyframes[i], writer.uint32(
21540
- /* id 4, wireType 2 =*/
21541
- 34
23643
+ if (message.entries != null && message.entries.length)
23644
+ for (let i = 0; i < message.entries.length; ++i)
23645
+ $root.sesame.v1.sidedata.SideData.encode(message.entries[i], writer.uint32(
23646
+ /* id 1, wireType 2 =*/
23647
+ 10
21542
23648
  ).fork()).ldelim();
21543
- if (message.before != null && Object.hasOwnProperty.call(message, "before"))
21544
- writer.uint32(
21545
- /* id 5, wireType 0 =*/
21546
- 40
21547
- ).int32(message.before);
21548
- if (message.after != null && Object.hasOwnProperty.call(message, "after"))
21549
- writer.uint32(
21550
- /* id 6, wireType 0 =*/
21551
- 48
21552
- ).int32(message.after);
21553
23649
  return writer;
21554
23650
  };
21555
- PropertyAnimateRequest.encodeDelimited = function encodeDelimited(message, writer) {
23651
+ SideDataSet.encodeDelimited = function encodeDelimited(message, writer) {
21556
23652
  return this.encode(message, writer).ldelim();
21557
23653
  };
21558
- PropertyAnimateRequest.decode = function decode(reader, length, error) {
23654
+ SideDataSet.decode = function decode(reader, length, error) {
21559
23655
  if (!(reader instanceof $Reader))
21560
23656
  reader = $Reader.create(reader);
21561
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
23657
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideDataSet();
21562
23658
  while (reader.pos < end) {
21563
23659
  let tag = reader.uint32();
21564
23660
  if (tag === error)
21565
23661
  break;
21566
23662
  switch (tag >>> 3) {
21567
23663
  case 1: {
21568
- message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
21569
- break;
21570
- }
21571
- case 2: {
21572
- message.address = reader.string();
21573
- break;
21574
- }
21575
- case 3: {
21576
- message.property = reader.string();
21577
- break;
21578
- }
21579
- case 4: {
21580
- if (!(message.keyframes && message.keyframes.length))
21581
- message.keyframes = [];
21582
- message.keyframes.push($root.sesame.v1.compositor.KeyFrame.decode(reader, reader.uint32()));
21583
- break;
21584
- }
21585
- case 5: {
21586
- message.before = reader.int32();
21587
- break;
21588
- }
21589
- case 6: {
21590
- message.after = reader.int32();
23664
+ if (!(message.entries && message.entries.length))
23665
+ message.entries = [];
23666
+ message.entries.push($root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32()));
21591
23667
  break;
21592
23668
  }
21593
23669
  default:
@@ -21597,173 +23673,66 @@ var sesame = $root.sesame = (() => {
21597
23673
  }
21598
23674
  return message;
21599
23675
  };
21600
- PropertyAnimateRequest.decodeDelimited = function decodeDelimited(reader) {
23676
+ SideDataSet.decodeDelimited = function decodeDelimited(reader) {
21601
23677
  if (!(reader instanceof $Reader))
21602
23678
  reader = new $Reader(reader);
21603
23679
  return this.decode(reader, reader.uint32());
21604
23680
  };
21605
- PropertyAnimateRequest.verify = function verify(message) {
23681
+ SideDataSet.verify = function verify(message) {
21606
23682
  if (typeof message !== "object" || message === null)
21607
23683
  return "object expected";
21608
- if (message.domain != null && message.hasOwnProperty("domain")) {
21609
- let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
21610
- if (error)
21611
- return "domain." + error;
21612
- }
21613
- if (message.address != null && message.hasOwnProperty("address")) {
21614
- if (!$util.isString(message.address))
21615
- return "address: string expected";
21616
- }
21617
- if (message.property != null && message.hasOwnProperty("property")) {
21618
- if (!$util.isString(message.property))
21619
- return "property: string expected";
21620
- }
21621
- if (message.keyframes != null && message.hasOwnProperty("keyframes")) {
21622
- if (!Array.isArray(message.keyframes))
21623
- return "keyframes: array expected";
21624
- for (let i = 0; i < message.keyframes.length; ++i) {
21625
- let error = $root.sesame.v1.compositor.KeyFrame.verify(message.keyframes[i]);
23684
+ if (message.entries != null && message.hasOwnProperty("entries")) {
23685
+ if (!Array.isArray(message.entries))
23686
+ return "entries: array expected";
23687
+ for (let i = 0; i < message.entries.length; ++i) {
23688
+ let error = $root.sesame.v1.sidedata.SideData.verify(message.entries[i]);
21626
23689
  if (error)
21627
- return "keyframes." + error;
23690
+ return "entries." + error;
21628
23691
  }
21629
23692
  }
21630
- if (message.before != null && message.hasOwnProperty("before"))
21631
- switch (message.before) {
21632
- default:
21633
- return "before: enum value expected";
21634
- case 0:
21635
- case 1:
21636
- case 2:
21637
- case 3:
21638
- break;
21639
- }
21640
- if (message.after != null && message.hasOwnProperty("after"))
21641
- switch (message.after) {
21642
- default:
21643
- return "after: enum value expected";
21644
- case 0:
21645
- case 1:
21646
- case 2:
21647
- case 3:
21648
- break;
21649
- }
21650
23693
  return null;
21651
23694
  };
21652
- PropertyAnimateRequest.fromObject = function fromObject(object) {
21653
- if (object instanceof $root.sesame.v1.compositor.PropertyAnimateRequest)
23695
+ SideDataSet.fromObject = function fromObject(object) {
23696
+ if (object instanceof $root.sesame.v1.sidedata.SideDataSet)
21654
23697
  return object;
21655
- let message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
21656
- if (object.domain != null) {
21657
- if (typeof object.domain !== "object")
21658
- throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.domain: object expected");
21659
- message.domain = $root.sesame.v1.common.PropertyDomain.fromObject(object.domain);
21660
- }
21661
- if (object.address != null)
21662
- message.address = String(object.address);
21663
- if (object.property != null)
21664
- message.property = String(object.property);
21665
- if (object.keyframes) {
21666
- if (!Array.isArray(object.keyframes))
21667
- throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: array expected");
21668
- message.keyframes = [];
21669
- for (let i = 0; i < object.keyframes.length; ++i) {
21670
- if (typeof object.keyframes[i] !== "object")
21671
- throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: object expected");
21672
- message.keyframes[i] = $root.sesame.v1.compositor.KeyFrame.fromObject(object.keyframes[i]);
23698
+ let message = new $root.sesame.v1.sidedata.SideDataSet();
23699
+ if (object.entries) {
23700
+ if (!Array.isArray(object.entries))
23701
+ throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: array expected");
23702
+ message.entries = [];
23703
+ for (let i = 0; i < object.entries.length; ++i) {
23704
+ if (typeof object.entries[i] !== "object")
23705
+ throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: object expected");
23706
+ message.entries[i] = $root.sesame.v1.sidedata.SideData.fromObject(object.entries[i]);
21673
23707
  }
21674
23708
  }
21675
- switch (object.before) {
21676
- default:
21677
- if (typeof object.before === "number") {
21678
- message.before = object.before;
21679
- break;
21680
- }
21681
- break;
21682
- case "ANIM_MODE_CONSTANT":
21683
- case 0:
21684
- message.before = 0;
21685
- break;
21686
- case "ANIM_MODE_STATE_FROM":
21687
- case 1:
21688
- message.before = 1;
21689
- break;
21690
- case "ANIM_MODE_LOOP":
21691
- case 2:
21692
- message.before = 2;
21693
- break;
21694
- case "ANIM_MODE_BOUNCE":
21695
- case 3:
21696
- message.before = 3;
21697
- break;
21698
- }
21699
- switch (object.after) {
21700
- default:
21701
- if (typeof object.after === "number") {
21702
- message.after = object.after;
21703
- break;
21704
- }
21705
- break;
21706
- case "ANIM_MODE_CONSTANT":
21707
- case 0:
21708
- message.after = 0;
21709
- break;
21710
- case "ANIM_MODE_STATE_FROM":
21711
- case 1:
21712
- message.after = 1;
21713
- break;
21714
- case "ANIM_MODE_LOOP":
21715
- case 2:
21716
- message.after = 2;
21717
- break;
21718
- case "ANIM_MODE_BOUNCE":
21719
- case 3:
21720
- message.after = 3;
21721
- break;
21722
- }
21723
23709
  return message;
21724
23710
  };
21725
- PropertyAnimateRequest.toObject = function toObject(message, options) {
23711
+ SideDataSet.toObject = function toObject(message, options) {
21726
23712
  if (!options)
21727
23713
  options = {};
21728
23714
  let object = {};
21729
23715
  if (options.arrays || options.defaults)
21730
- object.keyframes = [];
21731
- if (options.defaults) {
21732
- object.domain = null;
21733
- object.address = "";
21734
- object.property = "";
21735
- object.before = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
21736
- object.after = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
21737
- }
21738
- if (message.domain != null && message.hasOwnProperty("domain"))
21739
- object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
21740
- if (message.address != null && message.hasOwnProperty("address"))
21741
- object.address = message.address;
21742
- if (message.property != null && message.hasOwnProperty("property"))
21743
- object.property = message.property;
21744
- if (message.keyframes && message.keyframes.length) {
21745
- object.keyframes = [];
21746
- for (let j = 0; j < message.keyframes.length; ++j)
21747
- object.keyframes[j] = $root.sesame.v1.compositor.KeyFrame.toObject(message.keyframes[j], options);
23716
+ object.entries = [];
23717
+ if (message.entries && message.entries.length) {
23718
+ object.entries = [];
23719
+ for (let j = 0; j < message.entries.length; ++j)
23720
+ object.entries[j] = $root.sesame.v1.sidedata.SideData.toObject(message.entries[j], options);
21748
23721
  }
21749
- if (message.before != null && message.hasOwnProperty("before"))
21750
- object.before = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] === void 0 ? message.before : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] : message.before;
21751
- if (message.after != null && message.hasOwnProperty("after"))
21752
- object.after = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] === void 0 ? message.after : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] : message.after;
21753
23722
  return object;
21754
23723
  };
21755
- PropertyAnimateRequest.prototype.toJSON = function toJSON() {
23724
+ SideDataSet.prototype.toJSON = function toJSON() {
21756
23725
  return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
21757
23726
  };
21758
- PropertyAnimateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23727
+ SideDataSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21759
23728
  if (typeUrlPrefix === void 0) {
21760
23729
  typeUrlPrefix = "type.googleapis.com";
21761
23730
  }
21762
- return typeUrlPrefix + "/sesame.v1.compositor.PropertyAnimateRequest";
23731
+ return typeUrlPrefix + "/sesame.v1.sidedata.SideDataSet";
21763
23732
  };
21764
- return PropertyAnimateRequest;
23733
+ return SideDataSet;
21765
23734
  }();
21766
- return compositor;
23735
+ return sidedata;
21767
23736
  }();
21768
23737
  v1.jobs = function() {
21769
23738
  const jobs = {};
@@ -24693,6 +26662,9 @@ var sesame = $root.sesame = (() => {
24693
26662
  case 4:
24694
26663
  case 5:
24695
26664
  case 6:
26665
+ case 7:
26666
+ case 8:
26667
+ case 9:
24696
26668
  break;
24697
26669
  }
24698
26670
  return null;
@@ -24746,6 +26718,18 @@ var sesame = $root.sesame = (() => {
24746
26718
  case 6:
24747
26719
  message.dataType = 6;
24748
26720
  break;
26721
+ case "DATA_TYPE_OUTPUT_STATUS":
26722
+ case 7:
26723
+ message.dataType = 7;
26724
+ break;
26725
+ case "DATA_TYPE_OUTPUT_CONTROL":
26726
+ case 8:
26727
+ message.dataType = 8;
26728
+ break;
26729
+ case "DATA_TYPE_ENGINE_STATUS":
26730
+ case 9:
26731
+ message.dataType = 9;
26732
+ break;
24749
26733
  }
24750
26734
  return message;
24751
26735
  };
@@ -25294,6 +27278,7 @@ var sesame = $root.sesame = (() => {
25294
27278
  MediaFrameData.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
25295
27279
  MediaFrameData.prototype.keyframe = false;
25296
27280
  MediaFrameData.prototype.codecData = null;
27281
+ MediaFrameData.prototype.sideData = null;
25297
27282
  MediaFrameData.create = function create(properties) {
25298
27283
  return new MediaFrameData(properties);
25299
27284
  };
@@ -25315,6 +27300,11 @@ var sesame = $root.sesame = (() => {
25315
27300
  /* id 3, wireType 2 =*/
25316
27301
  26
25317
27302
  ).fork()).ldelim();
27303
+ if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
27304
+ $root.sesame.v1.sidedata.SideDataSet.encode(message.sideData, writer.uint32(
27305
+ /* id 4, wireType 2 =*/
27306
+ 34
27307
+ ).fork()).ldelim();
25318
27308
  return writer;
25319
27309
  };
25320
27310
  MediaFrameData.encodeDelimited = function encodeDelimited(message, writer) {
@@ -25341,6 +27331,10 @@ var sesame = $root.sesame = (() => {
25341
27331
  message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
25342
27332
  break;
25343
27333
  }
27334
+ case 4: {
27335
+ message.sideData = $root.sesame.v1.sidedata.SideDataSet.decode(reader, reader.uint32());
27336
+ break;
27337
+ }
25344
27338
  default:
25345
27339
  reader.skipType(tag & 7);
25346
27340
  break;
@@ -25369,6 +27363,11 @@ var sesame = $root.sesame = (() => {
25369
27363
  if (error)
25370
27364
  return "codecData." + error;
25371
27365
  }
27366
+ if (message.sideData != null && message.hasOwnProperty("sideData")) {
27367
+ let error = $root.sesame.v1.sidedata.SideDataSet.verify(message.sideData);
27368
+ if (error)
27369
+ return "sideData." + error;
27370
+ }
25372
27371
  return null;
25373
27372
  };
25374
27373
  MediaFrameData.fromObject = function fromObject(object) {
@@ -25392,6 +27391,11 @@ var sesame = $root.sesame = (() => {
25392
27391
  throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
25393
27392
  message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
25394
27393
  }
27394
+ if (object.sideData != null) {
27395
+ if (typeof object.sideData !== "object")
27396
+ throw TypeError(".sesame.v1.wire.MediaFrameData.sideData: object expected");
27397
+ message.sideData = $root.sesame.v1.sidedata.SideDataSet.fromObject(object.sideData);
27398
+ }
25395
27399
  return message;
25396
27400
  };
25397
27401
  MediaFrameData.toObject = function toObject(message, options) {
@@ -25406,6 +27410,7 @@ var sesame = $root.sesame = (() => {
25406
27410
  object.pts = options.longs === String ? "0" : 0;
25407
27411
  object.keyframe = false;
25408
27412
  object.codecData = null;
27413
+ object.sideData = null;
25409
27414
  }
25410
27415
  if (message.pts != null && message.hasOwnProperty("pts"))
25411
27416
  if (typeof message.pts === "number")
@@ -25416,6 +27421,8 @@ var sesame = $root.sesame = (() => {
25416
27421
  object.keyframe = message.keyframe;
25417
27422
  if (message.codecData != null && message.hasOwnProperty("codecData"))
25418
27423
  object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
27424
+ if (message.sideData != null && message.hasOwnProperty("sideData"))
27425
+ object.sideData = $root.sesame.v1.sidedata.SideDataSet.toObject(message.sideData, options);
25419
27426
  return object;
25420
27427
  };
25421
27428
  MediaFrameData.prototype.toJSON = function toJSON() {
@@ -25438,6 +27445,9 @@ var sesame = $root.sesame = (() => {
25438
27445
  values[valuesById[4] = "DATA_TYPE_TRANSPORT_CONTROL"] = 4;
25439
27446
  values[valuesById[5] = "DATA_TYPE_AUDIO_CONTROL"] = 5;
25440
27447
  values[valuesById[6] = "DATA_TYPE_BINARY"] = 6;
27448
+ values[valuesById[7] = "DATA_TYPE_OUTPUT_STATUS"] = 7;
27449
+ values[valuesById[8] = "DATA_TYPE_OUTPUT_CONTROL"] = 8;
27450
+ values[valuesById[9] = "DATA_TYPE_ENGINE_STATUS"] = 9;
25441
27451
  return values;
25442
27452
  }();
25443
27453
  wire.DataFrameData = function() {
@@ -25514,6 +27524,9 @@ var sesame = $root.sesame = (() => {
25514
27524
  case 4:
25515
27525
  case 5:
25516
27526
  case 6:
27527
+ case 7:
27528
+ case 8:
27529
+ case 9:
25517
27530
  break;
25518
27531
  }
25519
27532
  if (message.trackName != null && message.hasOwnProperty("trackName")) {
@@ -25561,6 +27574,18 @@ var sesame = $root.sesame = (() => {
25561
27574
  case 6:
25562
27575
  message.dataType = 6;
25563
27576
  break;
27577
+ case "DATA_TYPE_OUTPUT_STATUS":
27578
+ case 7:
27579
+ message.dataType = 7;
27580
+ break;
27581
+ case "DATA_TYPE_OUTPUT_CONTROL":
27582
+ case 8:
27583
+ message.dataType = 8;
27584
+ break;
27585
+ case "DATA_TYPE_ENGINE_STATUS":
27586
+ case 9:
27587
+ message.dataType = 9;
27588
+ break;
25564
27589
  }
25565
27590
  if (object.trackName != null)
25566
27591
  message.trackName = String(object.trackName);
@@ -25897,6 +27922,32 @@ var CommandList = class {
25897
27922
  item.clearCompositor = { id };
25898
27923
  return this.add(item, timeOffsetMs);
25899
27924
  }
27925
+ /**
27926
+ * Attach side data to every frame the compositor renders from now on.
27927
+ * Replaces the entry with the same `id`. Encoded WebSocket/MoQ outputs carry
27928
+ * the full set in the wire header on key frames and whenever it changes.
27929
+ * Batch it with the node changes it describes so both land on the same frame.
27930
+ *
27931
+ * @example
27932
+ * ```ts
27933
+ * cl.sideDataSet('atlas', {
27934
+ * id: 'sesame.atlas.v1',
27935
+ * version: 3,
27936
+ * atlas: { width: 1920, height: 1080, entries: [{ sourceId: 'cam-1', x: 0, y: 0, width: 960, height: 540 }] },
27937
+ * });
27938
+ * ```
27939
+ */
27940
+ sideDataSet(compositorId, sideData, timeOffsetMs) {
27941
+ let item = new sesame.v1.commands.CommandListItem();
27942
+ item.setSideData = { compositorId, sideData };
27943
+ return this.add(item, timeOffsetMs);
27944
+ }
27945
+ /** Remove one side data entry from a compositor. */
27946
+ sideDataRemove(compositorId, id, timeOffsetMs) {
27947
+ let item = new sesame.v1.commands.CommandListItem();
27948
+ item.removeSideData = { compositorId, id };
27949
+ return this.add(item, timeOffsetMs);
27950
+ }
25900
27951
  sourceAdd(id, cfg, timeOffsetMs) {
25901
27952
  let item = new sesame.v1.commands.CommandListItem();
25902
27953
  item.addSource = { id, config: cfg };
@@ -26073,6 +28124,15 @@ var CommandList = class {
26073
28124
  item.removeOutput = { id };
26074
28125
  return this.add(item, timeOffsetMs);
26075
28126
  }
28127
+ /** Start or stop a manually controlled output stream (SRT outputs with streamControl 'manual'). */
28128
+ outputControl(id, action, timeOffsetMs) {
28129
+ let item = new sesame.v1.commands.CommandListItem();
28130
+ item.outputControl = {
28131
+ id,
28132
+ action: action === "start" ? sesame.v1.outputs.OutputControlAction.OUTPUT_CONTROL_ACTION_START : sesame.v1.outputs.OutputControlAction.OUTPUT_CONTROL_ACTION_STOP
28133
+ };
28134
+ return this.add(item, timeOffsetMs);
28135
+ }
26076
28136
  encoderAdd(id, cfg, timeOffsetMs) {
26077
28137
  let item = new sesame.v1.commands.CommandListItem();
26078
28138
  item.addEncoder = { id, ...cfg };
@@ -26186,6 +28246,7 @@ var DataType = sesame.v1.wire.DataType;
26186
28246
  var FrameHeader = sesame.v1.wire.FrameHeader;
26187
28247
  var MediaCodecData = sesame.v1.wire.MediaCodecData;
26188
28248
  var CodecType = sesame.v1.common.CodecType;
28249
+ var SideData = sesame.v1.sidedata.SideData;
26189
28250
  function parseDataFrame(frame) {
26190
28251
  if (!frame.valid || !frame.header || !frame.payload) return null;
26191
28252
  if (frame.header.type !== sesame.v1.wire.FrameType.FRAME_TYPE_DATA) return null;
@@ -26232,6 +28293,29 @@ function parseDataFrame(frame) {
26232
28293
  return null;
26233
28294
  }
26234
28295
  }
28296
+ function getSideData(frame) {
28297
+ const media = frame.header?.media;
28298
+ if (!media || !media.sideData) return null;
28299
+ return media.sideData.entries ?? [];
28300
+ }
28301
+ var SideDataTracker = class {
28302
+ constructor() {
28303
+ this.entries = /* @__PURE__ */ new Map();
28304
+ }
28305
+ /** Feed every media frame in order; returns true when the set changed. */
28306
+ update(frame) {
28307
+ const entries = getSideData(frame);
28308
+ if (entries === null) return false;
28309
+ this.entries = new Map(entries.map((e) => [e.id ?? "", e]));
28310
+ return true;
28311
+ }
28312
+ get(id) {
28313
+ return this.entries.get(id);
28314
+ }
28315
+ all() {
28316
+ return [...this.entries.values()];
28317
+ }
28318
+ };
26235
28319
  function buildAudioControlFrame(trackName, request) {
26236
28320
  const payload = sesame.v1.audio.AudioControlRequest.encode(request).finish();
26237
28321
  return WireProtocol.serialize(
@@ -26955,12 +29039,15 @@ var Event = sesame.v1.rpc.Event;
26955
29039
  Response,
26956
29040
  SesameClient,
26957
29041
  SesameConnection,
29042
+ SideData,
29043
+ SideDataTracker,
26958
29044
  StatusApi,
26959
29045
  WireProtocol,
26960
29046
  buildAudioControlFrame,
26961
29047
  buildBinaryDataFrame,
26962
29048
  buildTransportControlFrame,
26963
29049
  getLogger,
29050
+ getSideData,
26964
29051
  log,
26965
29052
  parseDataFrame,
26966
29053
  sesame,