@stinkycomputing/sesame-api-client 1.5.10 → 1.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -156,29 +156,29 @@ Available types: `play`, `pause`, `stop`, `seek`, `seek_usertime`, `jog`, `live`
156
156
  ### Playlists
157
157
 
158
158
  ```typescript
159
- cl.playlistLoad('cam1', {
160
- id: 'my-playlist',
161
- duration: 0,
162
- clips: [
163
- { id: 1, recorderId: 'recorder1', speed: 1, transitionTimeUs: 0,
164
- startTimeUs: 0, endTimeUs: 10_000_000, audioRouting: [] },
165
- ],
166
- });
167
-
168
- cl.playlistTake('cam1', {
169
- id: 'my-playlist',
170
- duration: 0,
171
- clips: [
172
- { id: 1, recorderId: 'recorder1', speed: 1, transitionTimeUs: 0,
173
- startTimeUs: 0, endTimeUs: 10_000_000, audioRouting: [] },
174
- ],
175
- }, {
176
- transitionTimeUs: 500_000,
177
- playbackSpeed: 1,
178
- });
179
-
180
- cl.playlistEject('cam1');
181
- ```
159
+ cl.playlistLoad('cam1', {
160
+ id: 'my-playlist',
161
+ duration: 0,
162
+ clips: [
163
+ { id: 1, recorderId: 'recorder1', speed: 1, transitionTimeUs: 0,
164
+ startTimeUs: 0, endTimeUs: 10_000_000, audioRouting: [] },
165
+ ],
166
+ });
167
+
168
+ cl.playlistTake('cam1', {
169
+ id: 'my-playlist',
170
+ duration: 0,
171
+ clips: [
172
+ { id: 1, recorderId: 'recorder1', speed: 1, transitionTimeUs: 0,
173
+ startTimeUs: 0, endTimeUs: 10_000_000, audioRouting: [] },
174
+ ],
175
+ }, {
176
+ transitionTimeUs: 500_000,
177
+ playbackSpeed: 1,
178
+ });
179
+
180
+ cl.playlistEject('cam1');
181
+ ```
182
182
 
183
183
  ### Animations
184
184
 
@@ -7728,6 +7728,22 @@ var sesame = $root.sesame = (() => {
7728
7728
  };
7729
7729
  return DecklinkSourceConfig;
7730
7730
  }();
7731
+ sources.SignalGeneratorVideoPattern = function() {
7732
+ const valuesById = {}, values = Object.create(valuesById);
7733
+ values[valuesById[0] = "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS"] = 0;
7734
+ values[valuesById[1] = "SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP"] = 1;
7735
+ values[valuesById[2] = "SIGNAL_GENERATOR_VIDEO_PATTERN_GRID"] = 2;
7736
+ values[valuesById[3] = "SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY"] = 3;
7737
+ return values;
7738
+ }();
7739
+ sources.SignalGeneratorAudioMode = function() {
7740
+ const valuesById = {}, values = Object.create(valuesById);
7741
+ values[valuesById[0] = "SIGNAL_GENERATOR_AUDIO_MODE_SYNC"] = 0;
7742
+ values[valuesById[1] = "SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT"] = 1;
7743
+ values[valuesById[2] = "SIGNAL_GENERATOR_AUDIO_MODE_TONE"] = 2;
7744
+ values[valuesById[3] = "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE"] = 3;
7745
+ return values;
7746
+ }();
7731
7747
  sources.SignalGeneratorSourceConfig = function() {
7732
7748
  function SignalGeneratorSourceConfig(properties) {
7733
7749
  if (properties) {
@@ -7736,12 +7752,30 @@ var sesame = $root.sesame = (() => {
7736
7752
  this[keys[i]] = properties[keys[i]];
7737
7753
  }
7738
7754
  }
7755
+ SignalGeneratorSourceConfig.prototype.freeze = false;
7756
+ SignalGeneratorSourceConfig.prototype.videoPattern = 0;
7757
+ SignalGeneratorSourceConfig.prototype.audioMode = 0;
7739
7758
  SignalGeneratorSourceConfig.create = function create(properties) {
7740
7759
  return new SignalGeneratorSourceConfig(properties);
7741
7760
  };
7742
7761
  SignalGeneratorSourceConfig.encode = function encode(message, writer) {
7743
7762
  if (!writer)
7744
7763
  writer = $Writer.create();
7764
+ if (message.freeze != null && Object.hasOwnProperty.call(message, "freeze"))
7765
+ writer.uint32(
7766
+ /* id 1, wireType 0 =*/
7767
+ 8
7768
+ ).bool(message.freeze);
7769
+ if (message.videoPattern != null && Object.hasOwnProperty.call(message, "videoPattern"))
7770
+ writer.uint32(
7771
+ /* id 2, wireType 0 =*/
7772
+ 16
7773
+ ).int32(message.videoPattern);
7774
+ if (message.audioMode != null && Object.hasOwnProperty.call(message, "audioMode"))
7775
+ writer.uint32(
7776
+ /* id 3, wireType 0 =*/
7777
+ 24
7778
+ ).int32(message.audioMode);
7745
7779
  return writer;
7746
7780
  };
7747
7781
  SignalGeneratorSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -7756,6 +7790,18 @@ var sesame = $root.sesame = (() => {
7756
7790
  if (tag === error)
7757
7791
  break;
7758
7792
  switch (tag >>> 3) {
7793
+ case 1: {
7794
+ message.freeze = reader.bool();
7795
+ break;
7796
+ }
7797
+ case 2: {
7798
+ message.videoPattern = reader.int32();
7799
+ break;
7800
+ }
7801
+ case 3: {
7802
+ message.audioMode = reader.int32();
7803
+ break;
7804
+ }
7759
7805
  default:
7760
7806
  reader.skipType(tag & 7);
7761
7807
  break;
@@ -7771,15 +7817,104 @@ var sesame = $root.sesame = (() => {
7771
7817
  SignalGeneratorSourceConfig.verify = function verify(message) {
7772
7818
  if (typeof message !== "object" || message === null)
7773
7819
  return "object expected";
7820
+ if (message.freeze != null && message.hasOwnProperty("freeze")) {
7821
+ if (typeof message.freeze !== "boolean")
7822
+ return "freeze: boolean expected";
7823
+ }
7824
+ if (message.videoPattern != null && message.hasOwnProperty("videoPattern"))
7825
+ switch (message.videoPattern) {
7826
+ default:
7827
+ return "videoPattern: enum value expected";
7828
+ case 0:
7829
+ case 1:
7830
+ case 2:
7831
+ case 3:
7832
+ break;
7833
+ }
7834
+ if (message.audioMode != null && message.hasOwnProperty("audioMode"))
7835
+ switch (message.audioMode) {
7836
+ default:
7837
+ return "audioMode: enum value expected";
7838
+ case 0:
7839
+ case 1:
7840
+ case 2:
7841
+ case 3:
7842
+ break;
7843
+ }
7774
7844
  return null;
7775
7845
  };
7776
7846
  SignalGeneratorSourceConfig.fromObject = function fromObject(object) {
7777
7847
  if (object instanceof $root.sesame.v1.sources.SignalGeneratorSourceConfig)
7778
7848
  return object;
7779
- return new $root.sesame.v1.sources.SignalGeneratorSourceConfig();
7849
+ let message = new $root.sesame.v1.sources.SignalGeneratorSourceConfig();
7850
+ if (object.freeze != null)
7851
+ message.freeze = Boolean(object.freeze);
7852
+ switch (object.videoPattern) {
7853
+ default:
7854
+ if (typeof object.videoPattern === "number") {
7855
+ message.videoPattern = object.videoPattern;
7856
+ break;
7857
+ }
7858
+ break;
7859
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS":
7860
+ case 0:
7861
+ message.videoPattern = 0;
7862
+ break;
7863
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP":
7864
+ case 1:
7865
+ message.videoPattern = 1;
7866
+ break;
7867
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_GRID":
7868
+ case 2:
7869
+ message.videoPattern = 2;
7870
+ break;
7871
+ case "SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY":
7872
+ case 3:
7873
+ message.videoPattern = 3;
7874
+ break;
7875
+ }
7876
+ switch (object.audioMode) {
7877
+ default:
7878
+ if (typeof object.audioMode === "number") {
7879
+ message.audioMode = object.audioMode;
7880
+ break;
7881
+ }
7882
+ break;
7883
+ case "SIGNAL_GENERATOR_AUDIO_MODE_SYNC":
7884
+ case 0:
7885
+ message.audioMode = 0;
7886
+ break;
7887
+ case "SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT":
7888
+ case 1:
7889
+ message.audioMode = 1;
7890
+ break;
7891
+ case "SIGNAL_GENERATOR_AUDIO_MODE_TONE":
7892
+ case 2:
7893
+ message.audioMode = 2;
7894
+ break;
7895
+ case "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE":
7896
+ case 3:
7897
+ message.audioMode = 3;
7898
+ break;
7899
+ }
7900
+ return message;
7780
7901
  };
7781
- SignalGeneratorSourceConfig.toObject = function toObject() {
7782
- return {};
7902
+ SignalGeneratorSourceConfig.toObject = function toObject(message, options) {
7903
+ if (!options)
7904
+ options = {};
7905
+ let object = {};
7906
+ if (options.defaults) {
7907
+ object.freeze = false;
7908
+ object.videoPattern = options.enums === String ? "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS" : 0;
7909
+ object.audioMode = options.enums === String ? "SIGNAL_GENERATOR_AUDIO_MODE_SYNC" : 0;
7910
+ }
7911
+ if (message.freeze != null && message.hasOwnProperty("freeze"))
7912
+ object.freeze = message.freeze;
7913
+ if (message.videoPattern != null && message.hasOwnProperty("videoPattern"))
7914
+ 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;
7915
+ if (message.audioMode != null && message.hasOwnProperty("audioMode"))
7916
+ 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;
7917
+ return object;
7783
7918
  };
7784
7919
  SignalGeneratorSourceConfig.prototype.toJSON = function toJSON() {
7785
7920
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);