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

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.
@@ -6412,6 +6412,7 @@ var sesame = $root.sesame = (() => {
6412
6412
  values[valuesById[8] = "SOURCE_TYPE_SRT_STREAM"] = 8;
6413
6413
  values[valuesById[9] = "SOURCE_TYPE_WEBSOCKET"] = 9;
6414
6414
  values[valuesById[10] = "SOURCE_TYPE_MOQ"] = 10;
6415
+ values[valuesById[11] = "SOURCE_TYPE_SCOPE"] = 11;
6415
6416
  return values;
6416
6417
  }();
6417
6418
  sources.DeinterlaceType = function() {
@@ -6462,9 +6463,9 @@ var sesame = $root.sesame = (() => {
6462
6463
  sources.PreprocessStep = function() {
6463
6464
  const valuesById = {}, values = Object.create(valuesById);
6464
6465
  values[valuesById[0] = "PREPROCESS_STEP_UNSPECIFIED"] = 0;
6465
- values[valuesById[1] = "PREPROCESS_STEP_VIDEO_SCOPES"] = 1;
6466
6466
  values[valuesById[2] = "PREPROCESS_STEP_CHROMA_KEY"] = 2;
6467
6467
  values[valuesById[3] = "PREPROCESS_STEP_BLUR"] = 3;
6468
+ values[valuesById[4] = "PREPROCESS_STEP_COLOR_CORRECT"] = 4;
6468
6469
  return values;
6469
6470
  }();
6470
6471
  sources.VideoProcessorParam = function() {
@@ -6661,9 +6662,9 @@ var sesame = $root.sesame = (() => {
6661
6662
  default:
6662
6663
  return "type: enum value expected";
6663
6664
  case 0:
6664
- case 1:
6665
6665
  case 2:
6666
6666
  case 3:
6667
+ case 4:
6667
6668
  break;
6668
6669
  }
6669
6670
  if (message.params != null && message.hasOwnProperty("params")) {
@@ -6694,10 +6695,6 @@ var sesame = $root.sesame = (() => {
6694
6695
  case 0:
6695
6696
  message.type = 0;
6696
6697
  break;
6697
- case "PREPROCESS_STEP_VIDEO_SCOPES":
6698
- case 1:
6699
- message.type = 1;
6700
- break;
6701
6698
  case "PREPROCESS_STEP_CHROMA_KEY":
6702
6699
  case 2:
6703
6700
  message.type = 2;
@@ -6706,6 +6703,10 @@ var sesame = $root.sesame = (() => {
6706
6703
  case 3:
6707
6704
  message.type = 3;
6708
6705
  break;
6706
+ case "PREPROCESS_STEP_COLOR_CORRECT":
6707
+ case 4:
6708
+ message.type = 4;
6709
+ break;
6709
6710
  }
6710
6711
  if (object.params) {
6711
6712
  if (!Array.isArray(object.params))
@@ -7650,6 +7651,175 @@ var sesame = $root.sesame = (() => {
7650
7651
  };
7651
7652
  return RTTSourceConfig;
7652
7653
  }();
7654
+ sources.ScopeMode = function() {
7655
+ const valuesById = {}, values = Object.create(valuesById);
7656
+ values[valuesById[0] = "SCOPE_MODE_UNSPECIFIED"] = 0;
7657
+ values[valuesById[1] = "SCOPE_MODE_WAVEFORM"] = 1;
7658
+ values[valuesById[2] = "SCOPE_MODE_RGB_PARADE"] = 2;
7659
+ values[valuesById[3] = "SCOPE_MODE_VECTORSCOPE"] = 3;
7660
+ values[valuesById[4] = "SCOPE_MODE_AUDIO_PHASE"] = 4;
7661
+ return values;
7662
+ }();
7663
+ sources.ScopeSourceConfig = function() {
7664
+ function ScopeSourceConfig(properties) {
7665
+ if (properties) {
7666
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7667
+ if (properties[keys[i]] != null)
7668
+ this[keys[i]] = properties[keys[i]];
7669
+ }
7670
+ }
7671
+ ScopeSourceConfig.prototype.compositorId = "";
7672
+ ScopeSourceConfig.prototype.audioMix = "";
7673
+ ScopeSourceConfig.prototype.mode = 0;
7674
+ ScopeSourceConfig.create = function create(properties) {
7675
+ return new ScopeSourceConfig(properties);
7676
+ };
7677
+ ScopeSourceConfig.encode = function encode(message, writer) {
7678
+ if (!writer)
7679
+ writer = $Writer.create();
7680
+ if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
7681
+ writer.uint32(
7682
+ /* id 1, wireType 2 =*/
7683
+ 10
7684
+ ).string(message.compositorId);
7685
+ if (message.audioMix != null && Object.hasOwnProperty.call(message, "audioMix"))
7686
+ writer.uint32(
7687
+ /* id 2, wireType 2 =*/
7688
+ 18
7689
+ ).string(message.audioMix);
7690
+ if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
7691
+ writer.uint32(
7692
+ /* id 3, wireType 0 =*/
7693
+ 24
7694
+ ).int32(message.mode);
7695
+ return writer;
7696
+ };
7697
+ ScopeSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
7698
+ return this.encode(message, writer).ldelim();
7699
+ };
7700
+ ScopeSourceConfig.decode = function decode(reader, length, error) {
7701
+ if (!(reader instanceof $Reader))
7702
+ reader = $Reader.create(reader);
7703
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.ScopeSourceConfig();
7704
+ while (reader.pos < end) {
7705
+ let tag = reader.uint32();
7706
+ if (tag === error)
7707
+ break;
7708
+ switch (tag >>> 3) {
7709
+ case 1: {
7710
+ message.compositorId = reader.string();
7711
+ break;
7712
+ }
7713
+ case 2: {
7714
+ message.audioMix = reader.string();
7715
+ break;
7716
+ }
7717
+ case 3: {
7718
+ message.mode = reader.int32();
7719
+ break;
7720
+ }
7721
+ default:
7722
+ reader.skipType(tag & 7);
7723
+ break;
7724
+ }
7725
+ }
7726
+ return message;
7727
+ };
7728
+ ScopeSourceConfig.decodeDelimited = function decodeDelimited(reader) {
7729
+ if (!(reader instanceof $Reader))
7730
+ reader = new $Reader(reader);
7731
+ return this.decode(reader, reader.uint32());
7732
+ };
7733
+ ScopeSourceConfig.verify = function verify(message) {
7734
+ if (typeof message !== "object" || message === null)
7735
+ return "object expected";
7736
+ if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
7737
+ if (!$util.isString(message.compositorId))
7738
+ return "compositorId: string expected";
7739
+ }
7740
+ if (message.audioMix != null && message.hasOwnProperty("audioMix")) {
7741
+ if (!$util.isString(message.audioMix))
7742
+ return "audioMix: string expected";
7743
+ }
7744
+ if (message.mode != null && message.hasOwnProperty("mode"))
7745
+ switch (message.mode) {
7746
+ default:
7747
+ return "mode: enum value expected";
7748
+ case 0:
7749
+ case 1:
7750
+ case 2:
7751
+ case 3:
7752
+ case 4:
7753
+ break;
7754
+ }
7755
+ return null;
7756
+ };
7757
+ ScopeSourceConfig.fromObject = function fromObject(object) {
7758
+ if (object instanceof $root.sesame.v1.sources.ScopeSourceConfig)
7759
+ return object;
7760
+ let message = new $root.sesame.v1.sources.ScopeSourceConfig();
7761
+ if (object.compositorId != null)
7762
+ message.compositorId = String(object.compositorId);
7763
+ if (object.audioMix != null)
7764
+ message.audioMix = String(object.audioMix);
7765
+ switch (object.mode) {
7766
+ default:
7767
+ if (typeof object.mode === "number") {
7768
+ message.mode = object.mode;
7769
+ break;
7770
+ }
7771
+ break;
7772
+ case "SCOPE_MODE_UNSPECIFIED":
7773
+ case 0:
7774
+ message.mode = 0;
7775
+ break;
7776
+ case "SCOPE_MODE_WAVEFORM":
7777
+ case 1:
7778
+ message.mode = 1;
7779
+ break;
7780
+ case "SCOPE_MODE_RGB_PARADE":
7781
+ case 2:
7782
+ message.mode = 2;
7783
+ break;
7784
+ case "SCOPE_MODE_VECTORSCOPE":
7785
+ case 3:
7786
+ message.mode = 3;
7787
+ break;
7788
+ case "SCOPE_MODE_AUDIO_PHASE":
7789
+ case 4:
7790
+ message.mode = 4;
7791
+ break;
7792
+ }
7793
+ return message;
7794
+ };
7795
+ ScopeSourceConfig.toObject = function toObject(message, options) {
7796
+ if (!options)
7797
+ options = {};
7798
+ let object = {};
7799
+ if (options.defaults) {
7800
+ object.compositorId = "";
7801
+ object.audioMix = "";
7802
+ object.mode = options.enums === String ? "SCOPE_MODE_UNSPECIFIED" : 0;
7803
+ }
7804
+ if (message.compositorId != null && message.hasOwnProperty("compositorId"))
7805
+ object.compositorId = message.compositorId;
7806
+ if (message.audioMix != null && message.hasOwnProperty("audioMix"))
7807
+ object.audioMix = message.audioMix;
7808
+ if (message.mode != null && message.hasOwnProperty("mode"))
7809
+ object.mode = options.enums === String ? $root.sesame.v1.sources.ScopeMode[message.mode] === void 0 ? message.mode : $root.sesame.v1.sources.ScopeMode[message.mode] : message.mode;
7810
+ return object;
7811
+ };
7812
+ ScopeSourceConfig.prototype.toJSON = function toJSON() {
7813
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7814
+ };
7815
+ ScopeSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7816
+ if (typeUrlPrefix === void 0) {
7817
+ typeUrlPrefix = "type.googleapis.com";
7818
+ }
7819
+ return typeUrlPrefix + "/sesame.v1.sources.ScopeSourceConfig";
7820
+ };
7821
+ return ScopeSourceConfig;
7822
+ }();
7653
7823
  sources.DecklinkSourceConfig = function() {
7654
7824
  function DecklinkSourceConfig(properties) {
7655
7825
  if (properties) {
@@ -8625,9 +8795,10 @@ var sesame = $root.sesame = (() => {
8625
8795
  SourceConfig.prototype.srtStream = null;
8626
8796
  SourceConfig.prototype.websocket = null;
8627
8797
  SourceConfig.prototype.moq = null;
8798
+ SourceConfig.prototype.scope = null;
8628
8799
  let $oneOfFields;
8629
8800
  Object.defineProperty(SourceConfig.prototype, "details", {
8630
- get: $util.oneOfGetter($oneOfFields = ["file", "recorder", "browser", "rtt", "decklink", "signalGenerator", "systemAudio", "srtStream", "websocket", "moq"]),
8801
+ get: $util.oneOfGetter($oneOfFields = ["file", "recorder", "browser", "rtt", "decklink", "signalGenerator", "systemAudio", "srtStream", "websocket", "moq", "scope"]),
8631
8802
  set: $util.oneOfSetter($oneOfFields)
8632
8803
  });
8633
8804
  SourceConfig.create = function create(properties) {
@@ -8691,6 +8862,11 @@ var sesame = $root.sesame = (() => {
8691
8862
  /* id 19, wireType 2 =*/
8692
8863
  154
8693
8864
  ).fork()).ldelim();
8865
+ if (message.scope != null && Object.hasOwnProperty.call(message, "scope"))
8866
+ $root.sesame.v1.sources.ScopeSourceConfig.encode(message.scope, writer.uint32(
8867
+ /* id 20, wireType 2 =*/
8868
+ 162
8869
+ ).fork()).ldelim();
8694
8870
  return writer;
8695
8871
  };
8696
8872
  SourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -8749,6 +8925,10 @@ var sesame = $root.sesame = (() => {
8749
8925
  message.moq = $root.sesame.v1.sources.MoqSourceConfig.decode(reader, reader.uint32());
8750
8926
  break;
8751
8927
  }
8928
+ case 20: {
8929
+ message.scope = $root.sesame.v1.sources.ScopeSourceConfig.decode(reader, reader.uint32());
8930
+ break;
8931
+ }
8752
8932
  default:
8753
8933
  reader.skipType(tag & 7);
8754
8934
  break;
@@ -8868,6 +9048,16 @@ var sesame = $root.sesame = (() => {
8868
9048
  return "moq." + error;
8869
9049
  }
8870
9050
  }
9051
+ if (message.scope != null && message.hasOwnProperty("scope")) {
9052
+ if (properties.details === 1)
9053
+ return "details: multiple values";
9054
+ properties.details = 1;
9055
+ {
9056
+ let error = $root.sesame.v1.sources.ScopeSourceConfig.verify(message.scope);
9057
+ if (error)
9058
+ return "scope." + error;
9059
+ }
9060
+ }
8871
9061
  return null;
8872
9062
  };
8873
9063
  SourceConfig.fromObject = function fromObject(object) {
@@ -8929,6 +9119,11 @@ var sesame = $root.sesame = (() => {
8929
9119
  throw TypeError(".sesame.v1.sources.SourceConfig.moq: object expected");
8930
9120
  message.moq = $root.sesame.v1.sources.MoqSourceConfig.fromObject(object.moq);
8931
9121
  }
9122
+ if (object.scope != null) {
9123
+ if (typeof object.scope !== "object")
9124
+ throw TypeError(".sesame.v1.sources.SourceConfig.scope: object expected");
9125
+ message.scope = $root.sesame.v1.sources.ScopeSourceConfig.fromObject(object.scope);
9126
+ }
8932
9127
  return message;
8933
9128
  };
8934
9129
  SourceConfig.toObject = function toObject(message, options) {
@@ -8989,6 +9184,11 @@ var sesame = $root.sesame = (() => {
8989
9184
  if (options.oneofs)
8990
9185
  object.details = "moq";
8991
9186
  }
9187
+ if (message.scope != null && message.hasOwnProperty("scope")) {
9188
+ object.scope = $root.sesame.v1.sources.ScopeSourceConfig.toObject(message.scope, options);
9189
+ if (options.oneofs)
9190
+ object.details = "scope";
9191
+ }
8992
9192
  return object;
8993
9193
  };
8994
9194
  SourceConfig.prototype.toJSON = function toJSON() {
@@ -9316,6 +9516,7 @@ var sesame = $root.sesame = (() => {
9316
9516
  }();
9317
9517
  sources.SourceStatus = function() {
9318
9518
  function SourceStatus(properties) {
9519
+ this.videoProcessors = [];
9319
9520
  if (properties) {
9320
9521
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9321
9522
  if (properties[keys[i]] != null)
@@ -9343,6 +9544,7 @@ var sesame = $root.sesame = (() => {
9343
9544
  SourceStatus.prototype.decodeTiming = null;
9344
9545
  SourceStatus.prototype.videoBufAvg = 0;
9345
9546
  SourceStatus.prototype.srtStats = null;
9547
+ SourceStatus.prototype.videoProcessors = $util.emptyArray;
9346
9548
  let $oneOfFields;
9347
9549
  Object.defineProperty(SourceStatus.prototype, "_msg", {
9348
9550
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -9463,6 +9665,12 @@ var sesame = $root.sesame = (() => {
9463
9665
  /* id 21, wireType 2 =*/
9464
9666
  170
9465
9667
  ).fork()).ldelim();
9668
+ if (message.videoProcessors != null && message.videoProcessors.length)
9669
+ for (let i = 0; i < message.videoProcessors.length; ++i)
9670
+ $root.sesame.v1.sources.VideoProcessor.encode(message.videoProcessors[i], writer.uint32(
9671
+ /* id 22, wireType 2 =*/
9672
+ 178
9673
+ ).fork()).ldelim();
9466
9674
  return writer;
9467
9675
  };
9468
9676
  SourceStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -9561,6 +9769,12 @@ var sesame = $root.sesame = (() => {
9561
9769
  message.srtStats = $root.sesame.v1.status.SRTReceiveStatistics.decode(reader, reader.uint32());
9562
9770
  break;
9563
9771
  }
9772
+ case 22: {
9773
+ if (!(message.videoProcessors && message.videoProcessors.length))
9774
+ message.videoProcessors = [];
9775
+ message.videoProcessors.push($root.sesame.v1.sources.VideoProcessor.decode(reader, reader.uint32()));
9776
+ break;
9777
+ }
9564
9778
  default:
9565
9779
  reader.skipType(tag & 7);
9566
9780
  break;
@@ -9596,6 +9810,7 @@ var sesame = $root.sesame = (() => {
9596
9810
  case 8:
9597
9811
  case 9:
9598
9812
  case 10:
9813
+ case 11:
9599
9814
  break;
9600
9815
  }
9601
9816
  if (message.userId != null && message.hasOwnProperty("userId")) {
@@ -9697,6 +9912,15 @@ var sesame = $root.sesame = (() => {
9697
9912
  return "srtStats." + error;
9698
9913
  }
9699
9914
  }
9915
+ if (message.videoProcessors != null && message.hasOwnProperty("videoProcessors")) {
9916
+ if (!Array.isArray(message.videoProcessors))
9917
+ return "videoProcessors: array expected";
9918
+ for (let i = 0; i < message.videoProcessors.length; ++i) {
9919
+ let error = $root.sesame.v1.sources.VideoProcessor.verify(message.videoProcessors[i]);
9920
+ if (error)
9921
+ return "videoProcessors." + error;
9922
+ }
9923
+ }
9700
9924
  return null;
9701
9925
  };
9702
9926
  SourceStatus.fromObject = function fromObject(object) {
@@ -9756,6 +9980,10 @@ var sesame = $root.sesame = (() => {
9756
9980
  case 10:
9757
9981
  message.type = 10;
9758
9982
  break;
9983
+ case "SOURCE_TYPE_SCOPE":
9984
+ case 11:
9985
+ message.type = 11;
9986
+ break;
9759
9987
  }
9760
9988
  if (object.userId != null)
9761
9989
  message.userId = String(object.userId);
@@ -9889,12 +10117,24 @@ var sesame = $root.sesame = (() => {
9889
10117
  throw TypeError(".sesame.v1.sources.SourceStatus.srtStats: object expected");
9890
10118
  message.srtStats = $root.sesame.v1.status.SRTReceiveStatistics.fromObject(object.srtStats);
9891
10119
  }
10120
+ if (object.videoProcessors) {
10121
+ if (!Array.isArray(object.videoProcessors))
10122
+ throw TypeError(".sesame.v1.sources.SourceStatus.videoProcessors: array expected");
10123
+ message.videoProcessors = [];
10124
+ for (let i = 0; i < object.videoProcessors.length; ++i) {
10125
+ if (typeof object.videoProcessors[i] !== "object")
10126
+ throw TypeError(".sesame.v1.sources.SourceStatus.videoProcessors: object expected");
10127
+ message.videoProcessors[i] = $root.sesame.v1.sources.VideoProcessor.fromObject(object.videoProcessors[i]);
10128
+ }
10129
+ }
9892
10130
  return message;
9893
10131
  };
9894
10132
  SourceStatus.toObject = function toObject(message, options) {
9895
10133
  if (!options)
9896
10134
  options = {};
9897
10135
  let object = {};
10136
+ if (options.arrays || options.defaults)
10137
+ object.videoProcessors = [];
9898
10138
  if (options.defaults) {
9899
10139
  object.id = "";
9900
10140
  object.type = options.enums === String ? "SOURCE_TYPE_UNSPECIFIED" : 0;
@@ -9985,6 +10225,11 @@ var sesame = $root.sesame = (() => {
9985
10225
  if (options.oneofs)
9986
10226
  object._srtStats = "srtStats";
9987
10227
  }
10228
+ if (message.videoProcessors && message.videoProcessors.length) {
10229
+ object.videoProcessors = [];
10230
+ for (let j = 0; j < message.videoProcessors.length; ++j)
10231
+ object.videoProcessors[j] = $root.sesame.v1.sources.VideoProcessor.toObject(message.videoProcessors[j], options);
10232
+ }
9988
10233
  return object;
9989
10234
  };
9990
10235
  SourceStatus.prototype.toJSON = function toJSON() {
@@ -11324,6 +11569,325 @@ var sesame = $root.sesame = (() => {
11324
11569
  };
11325
11570
  return TransportControlRequest;
11326
11571
  }();
11572
+ sources.VideoProcessorControlRequest = function() {
11573
+ function VideoProcessorControlRequest(properties) {
11574
+ this.params = [];
11575
+ if (properties) {
11576
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11577
+ if (properties[keys[i]] != null)
11578
+ this[keys[i]] = properties[keys[i]];
11579
+ }
11580
+ }
11581
+ VideoProcessorControlRequest.prototype.processorId = "";
11582
+ VideoProcessorControlRequest.prototype.params = $util.emptyArray;
11583
+ VideoProcessorControlRequest.create = function create(properties) {
11584
+ return new VideoProcessorControlRequest(properties);
11585
+ };
11586
+ VideoProcessorControlRequest.encode = function encode(message, writer) {
11587
+ if (!writer)
11588
+ writer = $Writer.create();
11589
+ if (message.processorId != null && Object.hasOwnProperty.call(message, "processorId"))
11590
+ writer.uint32(
11591
+ /* id 1, wireType 2 =*/
11592
+ 10
11593
+ ).string(message.processorId);
11594
+ if (message.params != null && message.params.length)
11595
+ for (let i = 0; i < message.params.length; ++i)
11596
+ $root.sesame.v1.sources.VideoProcessorParam.encode(message.params[i], writer.uint32(
11597
+ /* id 2, wireType 2 =*/
11598
+ 18
11599
+ ).fork()).ldelim();
11600
+ return writer;
11601
+ };
11602
+ VideoProcessorControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
11603
+ return this.encode(message, writer).ldelim();
11604
+ };
11605
+ VideoProcessorControlRequest.decode = function decode(reader, length, error) {
11606
+ if (!(reader instanceof $Reader))
11607
+ reader = $Reader.create(reader);
11608
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.VideoProcessorControlRequest();
11609
+ while (reader.pos < end) {
11610
+ let tag = reader.uint32();
11611
+ if (tag === error)
11612
+ break;
11613
+ switch (tag >>> 3) {
11614
+ case 1: {
11615
+ message.processorId = reader.string();
11616
+ break;
11617
+ }
11618
+ case 2: {
11619
+ if (!(message.params && message.params.length))
11620
+ message.params = [];
11621
+ message.params.push($root.sesame.v1.sources.VideoProcessorParam.decode(reader, reader.uint32()));
11622
+ break;
11623
+ }
11624
+ default:
11625
+ reader.skipType(tag & 7);
11626
+ break;
11627
+ }
11628
+ }
11629
+ return message;
11630
+ };
11631
+ VideoProcessorControlRequest.decodeDelimited = function decodeDelimited(reader) {
11632
+ if (!(reader instanceof $Reader))
11633
+ reader = new $Reader(reader);
11634
+ return this.decode(reader, reader.uint32());
11635
+ };
11636
+ VideoProcessorControlRequest.verify = function verify(message) {
11637
+ if (typeof message !== "object" || message === null)
11638
+ return "object expected";
11639
+ if (message.processorId != null && message.hasOwnProperty("processorId")) {
11640
+ if (!$util.isString(message.processorId))
11641
+ return "processorId: string expected";
11642
+ }
11643
+ if (message.params != null && message.hasOwnProperty("params")) {
11644
+ if (!Array.isArray(message.params))
11645
+ return "params: array expected";
11646
+ for (let i = 0; i < message.params.length; ++i) {
11647
+ let error = $root.sesame.v1.sources.VideoProcessorParam.verify(message.params[i]);
11648
+ if (error)
11649
+ return "params." + error;
11650
+ }
11651
+ }
11652
+ return null;
11653
+ };
11654
+ VideoProcessorControlRequest.fromObject = function fromObject(object) {
11655
+ if (object instanceof $root.sesame.v1.sources.VideoProcessorControlRequest)
11656
+ return object;
11657
+ let message = new $root.sesame.v1.sources.VideoProcessorControlRequest();
11658
+ if (object.processorId != null)
11659
+ message.processorId = String(object.processorId);
11660
+ if (object.params) {
11661
+ if (!Array.isArray(object.params))
11662
+ throw TypeError(".sesame.v1.sources.VideoProcessorControlRequest.params: array expected");
11663
+ message.params = [];
11664
+ for (let i = 0; i < object.params.length; ++i) {
11665
+ if (typeof object.params[i] !== "object")
11666
+ throw TypeError(".sesame.v1.sources.VideoProcessorControlRequest.params: object expected");
11667
+ message.params[i] = $root.sesame.v1.sources.VideoProcessorParam.fromObject(object.params[i]);
11668
+ }
11669
+ }
11670
+ return message;
11671
+ };
11672
+ VideoProcessorControlRequest.toObject = function toObject(message, options) {
11673
+ if (!options)
11674
+ options = {};
11675
+ let object = {};
11676
+ if (options.arrays || options.defaults)
11677
+ object.params = [];
11678
+ if (options.defaults)
11679
+ object.processorId = "";
11680
+ if (message.processorId != null && message.hasOwnProperty("processorId"))
11681
+ object.processorId = message.processorId;
11682
+ if (message.params && message.params.length) {
11683
+ object.params = [];
11684
+ for (let j = 0; j < message.params.length; ++j)
11685
+ object.params[j] = $root.sesame.v1.sources.VideoProcessorParam.toObject(message.params[j], options);
11686
+ }
11687
+ return object;
11688
+ };
11689
+ VideoProcessorControlRequest.prototype.toJSON = function toJSON() {
11690
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11691
+ };
11692
+ VideoProcessorControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11693
+ if (typeUrlPrefix === void 0) {
11694
+ typeUrlPrefix = "type.googleapis.com";
11695
+ }
11696
+ return typeUrlPrefix + "/sesame.v1.sources.VideoProcessorControlRequest";
11697
+ };
11698
+ return VideoProcessorControlRequest;
11699
+ }();
11700
+ sources.SourceControlRequest = function() {
11701
+ function SourceControlRequest(properties) {
11702
+ this.videoProcessors = [];
11703
+ this.resetProcessors = [];
11704
+ if (properties) {
11705
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11706
+ if (properties[keys[i]] != null)
11707
+ this[keys[i]] = properties[keys[i]];
11708
+ }
11709
+ }
11710
+ SourceControlRequest.prototype.videoProcessors = $util.emptyArray;
11711
+ SourceControlRequest.prototype.audioLevel = null;
11712
+ SourceControlRequest.prototype.resetProcessors = $util.emptyArray;
11713
+ SourceControlRequest.prototype.sourceId = "";
11714
+ let $oneOfFields;
11715
+ Object.defineProperty(SourceControlRequest.prototype, "_audioLevel", {
11716
+ get: $util.oneOfGetter($oneOfFields = ["audioLevel"]),
11717
+ set: $util.oneOfSetter($oneOfFields)
11718
+ });
11719
+ SourceControlRequest.create = function create(properties) {
11720
+ return new SourceControlRequest(properties);
11721
+ };
11722
+ SourceControlRequest.encode = function encode(message, writer) {
11723
+ if (!writer)
11724
+ writer = $Writer.create();
11725
+ if (message.videoProcessors != null && message.videoProcessors.length)
11726
+ for (let i = 0; i < message.videoProcessors.length; ++i)
11727
+ $root.sesame.v1.sources.VideoProcessorControlRequest.encode(message.videoProcessors[i], writer.uint32(
11728
+ /* id 1, wireType 2 =*/
11729
+ 10
11730
+ ).fork()).ldelim();
11731
+ if (message.audioLevel != null && Object.hasOwnProperty.call(message, "audioLevel"))
11732
+ writer.uint32(
11733
+ /* id 2, wireType 5 =*/
11734
+ 21
11735
+ ).float(message.audioLevel);
11736
+ if (message.resetProcessors != null && message.resetProcessors.length)
11737
+ for (let i = 0; i < message.resetProcessors.length; ++i)
11738
+ writer.uint32(
11739
+ /* id 3, wireType 2 =*/
11740
+ 26
11741
+ ).string(message.resetProcessors[i]);
11742
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
11743
+ writer.uint32(
11744
+ /* id 4, wireType 2 =*/
11745
+ 34
11746
+ ).string(message.sourceId);
11747
+ return writer;
11748
+ };
11749
+ SourceControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
11750
+ return this.encode(message, writer).ldelim();
11751
+ };
11752
+ SourceControlRequest.decode = function decode(reader, length, error) {
11753
+ if (!(reader instanceof $Reader))
11754
+ reader = $Reader.create(reader);
11755
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.SourceControlRequest();
11756
+ while (reader.pos < end) {
11757
+ let tag = reader.uint32();
11758
+ if (tag === error)
11759
+ break;
11760
+ switch (tag >>> 3) {
11761
+ case 1: {
11762
+ if (!(message.videoProcessors && message.videoProcessors.length))
11763
+ message.videoProcessors = [];
11764
+ message.videoProcessors.push($root.sesame.v1.sources.VideoProcessorControlRequest.decode(reader, reader.uint32()));
11765
+ break;
11766
+ }
11767
+ case 2: {
11768
+ message.audioLevel = reader.float();
11769
+ break;
11770
+ }
11771
+ case 3: {
11772
+ if (!(message.resetProcessors && message.resetProcessors.length))
11773
+ message.resetProcessors = [];
11774
+ message.resetProcessors.push(reader.string());
11775
+ break;
11776
+ }
11777
+ case 4: {
11778
+ message.sourceId = reader.string();
11779
+ break;
11780
+ }
11781
+ default:
11782
+ reader.skipType(tag & 7);
11783
+ break;
11784
+ }
11785
+ }
11786
+ return message;
11787
+ };
11788
+ SourceControlRequest.decodeDelimited = function decodeDelimited(reader) {
11789
+ if (!(reader instanceof $Reader))
11790
+ reader = new $Reader(reader);
11791
+ return this.decode(reader, reader.uint32());
11792
+ };
11793
+ SourceControlRequest.verify = function verify(message) {
11794
+ if (typeof message !== "object" || message === null)
11795
+ return "object expected";
11796
+ let properties = {};
11797
+ if (message.videoProcessors != null && message.hasOwnProperty("videoProcessors")) {
11798
+ if (!Array.isArray(message.videoProcessors))
11799
+ return "videoProcessors: array expected";
11800
+ for (let i = 0; i < message.videoProcessors.length; ++i) {
11801
+ let error = $root.sesame.v1.sources.VideoProcessorControlRequest.verify(message.videoProcessors[i]);
11802
+ if (error)
11803
+ return "videoProcessors." + error;
11804
+ }
11805
+ }
11806
+ if (message.audioLevel != null && message.hasOwnProperty("audioLevel")) {
11807
+ properties._audioLevel = 1;
11808
+ if (typeof message.audioLevel !== "number")
11809
+ return "audioLevel: number expected";
11810
+ }
11811
+ if (message.resetProcessors != null && message.hasOwnProperty("resetProcessors")) {
11812
+ if (!Array.isArray(message.resetProcessors))
11813
+ return "resetProcessors: array expected";
11814
+ for (let i = 0; i < message.resetProcessors.length; ++i)
11815
+ if (!$util.isString(message.resetProcessors[i]))
11816
+ return "resetProcessors: string[] expected";
11817
+ }
11818
+ if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
11819
+ if (!$util.isString(message.sourceId))
11820
+ return "sourceId: string expected";
11821
+ }
11822
+ return null;
11823
+ };
11824
+ SourceControlRequest.fromObject = function fromObject(object) {
11825
+ if (object instanceof $root.sesame.v1.sources.SourceControlRequest)
11826
+ return object;
11827
+ let message = new $root.sesame.v1.sources.SourceControlRequest();
11828
+ if (object.videoProcessors) {
11829
+ if (!Array.isArray(object.videoProcessors))
11830
+ throw TypeError(".sesame.v1.sources.SourceControlRequest.videoProcessors: array expected");
11831
+ message.videoProcessors = [];
11832
+ for (let i = 0; i < object.videoProcessors.length; ++i) {
11833
+ if (typeof object.videoProcessors[i] !== "object")
11834
+ throw TypeError(".sesame.v1.sources.SourceControlRequest.videoProcessors: object expected");
11835
+ message.videoProcessors[i] = $root.sesame.v1.sources.VideoProcessorControlRequest.fromObject(object.videoProcessors[i]);
11836
+ }
11837
+ }
11838
+ if (object.audioLevel != null)
11839
+ message.audioLevel = Number(object.audioLevel);
11840
+ if (object.resetProcessors) {
11841
+ if (!Array.isArray(object.resetProcessors))
11842
+ throw TypeError(".sesame.v1.sources.SourceControlRequest.resetProcessors: array expected");
11843
+ message.resetProcessors = [];
11844
+ for (let i = 0; i < object.resetProcessors.length; ++i)
11845
+ message.resetProcessors[i] = String(object.resetProcessors[i]);
11846
+ }
11847
+ if (object.sourceId != null)
11848
+ message.sourceId = String(object.sourceId);
11849
+ return message;
11850
+ };
11851
+ SourceControlRequest.toObject = function toObject(message, options) {
11852
+ if (!options)
11853
+ options = {};
11854
+ let object = {};
11855
+ if (options.arrays || options.defaults) {
11856
+ object.videoProcessors = [];
11857
+ object.resetProcessors = [];
11858
+ }
11859
+ if (options.defaults)
11860
+ object.sourceId = "";
11861
+ if (message.videoProcessors && message.videoProcessors.length) {
11862
+ object.videoProcessors = [];
11863
+ for (let j = 0; j < message.videoProcessors.length; ++j)
11864
+ object.videoProcessors[j] = $root.sesame.v1.sources.VideoProcessorControlRequest.toObject(message.videoProcessors[j], options);
11865
+ }
11866
+ if (message.audioLevel != null && message.hasOwnProperty("audioLevel")) {
11867
+ object.audioLevel = options.json && !isFinite(message.audioLevel) ? String(message.audioLevel) : message.audioLevel;
11868
+ if (options.oneofs)
11869
+ object._audioLevel = "audioLevel";
11870
+ }
11871
+ if (message.resetProcessors && message.resetProcessors.length) {
11872
+ object.resetProcessors = [];
11873
+ for (let j = 0; j < message.resetProcessors.length; ++j)
11874
+ object.resetProcessors[j] = message.resetProcessors[j];
11875
+ }
11876
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
11877
+ object.sourceId = message.sourceId;
11878
+ return object;
11879
+ };
11880
+ SourceControlRequest.prototype.toJSON = function toJSON() {
11881
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11882
+ };
11883
+ SourceControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11884
+ if (typeUrlPrefix === void 0) {
11885
+ typeUrlPrefix = "type.googleapis.com";
11886
+ }
11887
+ return typeUrlPrefix + "/sesame.v1.sources.SourceControlRequest";
11888
+ };
11889
+ return SourceControlRequest;
11890
+ }();
11327
11891
  return sources;
11328
11892
  }();
11329
11893
  v1.recorder = function() {
@@ -26995,6 +27559,8 @@ var sesame = $root.sesame = (() => {
26995
27559
  case 7:
26996
27560
  case 8:
26997
27561
  case 9:
27562
+ case 10:
27563
+ case 11:
26998
27564
  break;
26999
27565
  }
27000
27566
  return null;
@@ -27060,6 +27626,14 @@ var sesame = $root.sesame = (() => {
27060
27626
  case 9:
27061
27627
  message.dataType = 9;
27062
27628
  break;
27629
+ case "DATA_TYPE_SOURCE_CONTROL":
27630
+ case 10:
27631
+ message.dataType = 10;
27632
+ break;
27633
+ case "DATA_TYPE_SOURCE_STATUS":
27634
+ case 11:
27635
+ message.dataType = 11;
27636
+ break;
27063
27637
  }
27064
27638
  return message;
27065
27639
  };
@@ -27778,6 +28352,8 @@ var sesame = $root.sesame = (() => {
27778
28352
  values[valuesById[7] = "DATA_TYPE_OUTPUT_STATUS"] = 7;
27779
28353
  values[valuesById[8] = "DATA_TYPE_OUTPUT_CONTROL"] = 8;
27780
28354
  values[valuesById[9] = "DATA_TYPE_ENGINE_STATUS"] = 9;
28355
+ values[valuesById[10] = "DATA_TYPE_SOURCE_CONTROL"] = 10;
28356
+ values[valuesById[11] = "DATA_TYPE_SOURCE_STATUS"] = 11;
27781
28357
  return values;
27782
28358
  }();
27783
28359
  wire.DataFrameData = function() {
@@ -27857,6 +28433,8 @@ var sesame = $root.sesame = (() => {
27857
28433
  case 7:
27858
28434
  case 8:
27859
28435
  case 9:
28436
+ case 10:
28437
+ case 11:
27860
28438
  break;
27861
28439
  }
27862
28440
  if (message.trackName != null && message.hasOwnProperty("trackName")) {
@@ -27916,6 +28494,14 @@ var sesame = $root.sesame = (() => {
27916
28494
  case 9:
27917
28495
  message.dataType = 9;
27918
28496
  break;
28497
+ case "DATA_TYPE_SOURCE_CONTROL":
28498
+ case 10:
28499
+ message.dataType = 10;
28500
+ break;
28501
+ case "DATA_TYPE_SOURCE_STATUS":
28502
+ case 11:
28503
+ message.dataType = 11;
28504
+ break;
27919
28505
  }
27920
28506
  if (object.trackName != null)
27921
28507
  message.trackName = String(object.trackName);
@@ -28666,6 +29252,16 @@ function buildTransportControlFrame(trackName, request) {
28666
29252
  payload
28667
29253
  );
28668
29254
  }
29255
+ function buildSourceControlFrame(trackName, request) {
29256
+ const payload = sesame.v1.sources.SourceControlRequest.encode(request).finish();
29257
+ return WireProtocol.serialize(
29258
+ {
29259
+ type: sesame.v1.wire.FrameType.FRAME_TYPE_DATA,
29260
+ data: { dataType: sesame.v1.wire.DataType.DATA_TYPE_SOURCE_CONTROL, trackName }
29261
+ },
29262
+ payload
29263
+ );
29264
+ }
28669
29265
  function buildBinaryDataFrame(trackName, payload) {
28670
29266
  return WireProtocol.serialize(
28671
29267
  {
@@ -29374,6 +29970,7 @@ export {
29374
29970
  WireProtocol,
29375
29971
  buildAudioControlFrame,
29376
29972
  buildBinaryDataFrame,
29973
+ buildSourceControlFrame,
29377
29974
  buildTransportControlFrame,
29378
29975
  getLogger,
29379
29976
  getSideData,