@stinkycomputing/sesame-api-client 1.4.1-alpha.7 → 1.4.1-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.d.ts CHANGED
@@ -10,7 +10,7 @@ import { sesame } from './proto/api';
10
10
  declare const Message: typeof sesame.v1.rpc.Message;
11
11
  export { sesame, Message };
12
12
  export { CommandList } from './command-list';
13
- export type { CompositorID, ReplayID, AudioMixerID, INodeConfig, IEncoderConfig, IRecorderOutputConfig, ISuperSlowmoRecorderOutputConfig, IOutputConfig, IDecklinkOutputConfig, IAudioMixerChannel, IAudioMixerConfig, ISourceConfig, IRecorderSourceConfig, ISourceTransportConfig, ITransportCommand, IPlaylistClip, IPlaylist, ITransactionOptions } from './command-list';
13
+ export type { CompositorID, ReplayID, AudioMixerID, INodeConfig, IEncoderConfig, IRecorderOutputConfig, ISuperSlowmoRecorderOutputConfig, IOutputConfig, IDecklinkOutputConfig, IWebSocketOutputConfig, ISrtOutputConfig, IMoqOutputConfig, ISystemAudioOutputConfig, IAudioMixerChannel, IAudioMixerConfig, ISourceConfig, IFileSourceConfig, IRecorderSourceConfig, IBrowserSourceConfig, IRTTSourceConfig, IDecklinkSourceConfig, ISystemAudioSourceConfig, ISrtSourceConfig, IWebsocketSourceConfig, IMoqSourceConfig, ISourceTransportConfig, ITransportCommand, IPlaylistClip, IPlaylist, ITransactionOptions } from './command-list';
14
14
  export { SesameBinaryProtocol, PacketType, CodecType } from './sesame-binary-protocol';
15
15
  export { setLogger, getLogger, log, ILogger } from './logger';
16
16
  //# sourceMappingURL=browser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,QAAA,MAAM,OAAO,8BAAwB,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,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AO,EAAE,oBAAoB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGvF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
package/dist/browser.mjs CHANGED
@@ -8180,7 +8180,7 @@ var sesame = $root.sesame = (() => {
8180
8180
  RecorderClip.prototype.endTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8181
8181
  RecorderClip.prototype.lockedStartUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8182
8182
  RecorderClip.prototype.lockedEndUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8183
- RecorderClip.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8183
+ RecorderClip.prototype.userTimeMs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8184
8184
  RecorderClip.create = function create(properties) {
8185
8185
  return new RecorderClip(properties);
8186
8186
  };
@@ -8227,11 +8227,11 @@ var sesame = $root.sesame = (() => {
8227
8227
  /* id 8, wireType 0 =*/
8228
8228
  64
8229
8229
  ).int64(message.lockedEndUs);
8230
- if (message.userTimeUs != null && Object.hasOwnProperty.call(message, "userTimeUs"))
8230
+ if (message.userTimeMs != null && Object.hasOwnProperty.call(message, "userTimeMs"))
8231
8231
  writer.uint32(
8232
8232
  /* id 9, wireType 0 =*/
8233
8233
  72
8234
- ).int64(message.userTimeUs);
8234
+ ).int64(message.userTimeMs);
8235
8235
  return writer;
8236
8236
  };
8237
8237
  RecorderClip.encodeDelimited = function encodeDelimited(message, writer) {
@@ -8279,7 +8279,7 @@ var sesame = $root.sesame = (() => {
8279
8279
  break;
8280
8280
  }
8281
8281
  case 9: {
8282
- message.userTimeUs = reader.int64();
8282
+ message.userTimeMs = reader.int64();
8283
8283
  break;
8284
8284
  }
8285
8285
  default:
@@ -8329,9 +8329,9 @@ var sesame = $root.sesame = (() => {
8329
8329
  if (!$util.isInteger(message.lockedEndUs) && !(message.lockedEndUs && $util.isInteger(message.lockedEndUs.low) && $util.isInteger(message.lockedEndUs.high)))
8330
8330
  return "lockedEndUs: integer|Long expected";
8331
8331
  }
8332
- if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs")) {
8333
- if (!$util.isInteger(message.userTimeUs) && !(message.userTimeUs && $util.isInteger(message.userTimeUs.low) && $util.isInteger(message.userTimeUs.high)))
8334
- return "userTimeUs: integer|Long expected";
8332
+ if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs")) {
8333
+ if (!$util.isInteger(message.userTimeMs) && !(message.userTimeMs && $util.isInteger(message.userTimeMs.low) && $util.isInteger(message.userTimeMs.high)))
8334
+ return "userTimeMs: integer|Long expected";
8335
8335
  }
8336
8336
  return null;
8337
8337
  };
@@ -8403,15 +8403,15 @@ var sesame = $root.sesame = (() => {
8403
8403
  else if (typeof object.lockedEndUs === "object")
8404
8404
  message.lockedEndUs = new $util.LongBits(object.lockedEndUs.low >>> 0, object.lockedEndUs.high >>> 0).toNumber();
8405
8405
  }
8406
- if (object.userTimeUs != null) {
8406
+ if (object.userTimeMs != null) {
8407
8407
  if ($util.Long)
8408
- (message.userTimeUs = $util.Long.fromValue(object.userTimeUs)).unsigned = false;
8409
- else if (typeof object.userTimeUs === "string")
8410
- message.userTimeUs = parseInt(object.userTimeUs, 10);
8411
- else if (typeof object.userTimeUs === "number")
8412
- message.userTimeUs = object.userTimeUs;
8413
- else if (typeof object.userTimeUs === "object")
8414
- message.userTimeUs = new $util.LongBits(object.userTimeUs.low >>> 0, object.userTimeUs.high >>> 0).toNumber();
8408
+ (message.userTimeMs = $util.Long.fromValue(object.userTimeMs)).unsigned = false;
8409
+ else if (typeof object.userTimeMs === "string")
8410
+ message.userTimeMs = parseInt(object.userTimeMs, 10);
8411
+ else if (typeof object.userTimeMs === "number")
8412
+ message.userTimeMs = object.userTimeMs;
8413
+ else if (typeof object.userTimeMs === "object")
8414
+ message.userTimeMs = new $util.LongBits(object.userTimeMs.low >>> 0, object.userTimeMs.high >>> 0).toNumber();
8415
8415
  }
8416
8416
  return message;
8417
8417
  };
@@ -8454,9 +8454,9 @@ var sesame = $root.sesame = (() => {
8454
8454
  object.lockedEndUs = options.longs === String ? "0" : 0;
8455
8455
  if ($util.Long) {
8456
8456
  let long = new $util.Long(0, 0, false);
8457
- object.userTimeUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
8457
+ object.userTimeMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
8458
8458
  } else
8459
- object.userTimeUs = options.longs === String ? "0" : 0;
8459
+ object.userTimeMs = options.longs === String ? "0" : 0;
8460
8460
  }
8461
8461
  if (message.id != null && message.hasOwnProperty("id"))
8462
8462
  if (typeof message.id === "number")
@@ -8492,11 +8492,11 @@ var sesame = $root.sesame = (() => {
8492
8492
  object.lockedEndUs = options.longs === String ? String(message.lockedEndUs) : message.lockedEndUs;
8493
8493
  else
8494
8494
  object.lockedEndUs = options.longs === String ? $util.Long.prototype.toString.call(message.lockedEndUs) : options.longs === Number ? new $util.LongBits(message.lockedEndUs.low >>> 0, message.lockedEndUs.high >>> 0).toNumber() : message.lockedEndUs;
8495
- if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs"))
8496
- if (typeof message.userTimeUs === "number")
8497
- object.userTimeUs = options.longs === String ? String(message.userTimeUs) : message.userTimeUs;
8495
+ if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs"))
8496
+ if (typeof message.userTimeMs === "number")
8497
+ object.userTimeMs = options.longs === String ? String(message.userTimeMs) : message.userTimeMs;
8498
8498
  else
8499
- object.userTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeUs) : options.longs === Number ? new $util.LongBits(message.userTimeUs.low >>> 0, message.userTimeUs.high >>> 0).toNumber() : message.userTimeUs;
8499
+ object.userTimeMs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeMs) : options.longs === Number ? new $util.LongBits(message.userTimeMs.low >>> 0, message.userTimeMs.high >>> 0).toNumber() : message.userTimeMs;
8500
8500
  return object;
8501
8501
  };
8502
8502
  RecorderClip.prototype.toJSON = function toJSON() {
@@ -21105,7 +21105,7 @@ var CommandList = class {
21105
21105
  this.cl.commandList.splice(this.cl.commandList.indexOf(item.del), 1);
21106
21106
  });
21107
21107
  }
21108
- get_command_list_msg() {
21108
+ getCommandListMsg() {
21109
21109
  return this.cl;
21110
21110
  }
21111
21111
  callback(event, data, timeOffsetMs) {
@@ -21113,32 +21113,32 @@ var CommandList = class {
21113
21113
  item.callback = { event, data };
21114
21114
  return this.add(item, timeOffsetMs);
21115
21115
  }
21116
- add_compositor(id, width, height, multisample, timeOffsetMs) {
21116
+ compositorAdd(id, width, height, multisample, timeOffsetMs) {
21117
21117
  let item = new sesame.v1.commands.CommandListItem();
21118
21118
  item.addCompositor = { id, multisample, width, height };
21119
21119
  return this.add(item, timeOffsetMs);
21120
21120
  }
21121
- remove_compositor(id, timeOffsetMs) {
21121
+ compositorRemove(id, timeOffsetMs) {
21122
21122
  let item = new sesame.v1.commands.CommandListItem();
21123
21123
  item.removeCompositor = { id };
21124
21124
  return this.add(item, timeOffsetMs);
21125
21125
  }
21126
- clear_compositor(id, timeOffsetMs) {
21126
+ compositorClear(id, timeOffsetMs) {
21127
21127
  let item = new sesame.v1.commands.CommandListItem();
21128
21128
  item.clearCompositor = { id };
21129
21129
  return this.add(item, timeOffsetMs);
21130
21130
  }
21131
- add_source(id, cfg, timeOffsetMs) {
21131
+ sourceAdd(id, cfg, timeOffsetMs) {
21132
21132
  let item = new sesame.v1.commands.CommandListItem();
21133
21133
  item.addSource = { id, config: cfg };
21134
21134
  return this.add(item, timeOffsetMs);
21135
21135
  }
21136
- remove_source(id, timeOffsetMs) {
21136
+ sourceRemove(id, timeOffsetMs) {
21137
21137
  let item = new sesame.v1.commands.CommandListItem();
21138
21138
  item.removeSource = { id };
21139
21139
  return this.add(item, timeOffsetMs);
21140
21140
  }
21141
- add_node(id, cfg, timeOffsetMs) {
21141
+ nodeAdd(id, cfg, timeOffsetMs) {
21142
21142
  let item = new sesame.v1.commands.CommandListItem();
21143
21143
  item.addNode = {
21144
21144
  compositorId: cfg.compositorId,
@@ -21148,12 +21148,12 @@ var CommandList = class {
21148
21148
  };
21149
21149
  return this.add(item, timeOffsetMs);
21150
21150
  }
21151
- remove_node(compositorId, address, timeOffsetMs) {
21151
+ nodeRemove(compositorId, address, timeOffsetMs) {
21152
21152
  let item = new sesame.v1.commands.CommandListItem();
21153
21153
  item.removeNode = { compositorId, address };
21154
21154
  return this.add(item, timeOffsetMs);
21155
21155
  }
21156
- set_property(propertyDomain, addr, prop, val, timeOffsetMs) {
21156
+ propertySet(propertyDomain, addr, prop, val, timeOffsetMs) {
21157
21157
  let item = new sesame.v1.commands.CommandListItem();
21158
21158
  item.setProperty = {
21159
21159
  address: addr,
@@ -21163,7 +21163,7 @@ var CommandList = class {
21163
21163
  };
21164
21164
  return this.add(item, timeOffsetMs);
21165
21165
  }
21166
- add_load_playlist_command(sourceId, playlist) {
21166
+ playlistLoad(sourceId, playlist) {
21167
21167
  const item = new sesame.v1.commands.CommandListItem();
21168
21168
  const loadPlaylistCmd = {
21169
21169
  items: playlist.clips.map((clip) => ({
@@ -21186,13 +21186,13 @@ var CommandList = class {
21186
21186
  item.loadPlaylist = loadPlaylistCmd;
21187
21187
  return this.add(item, 0);
21188
21188
  }
21189
- add_eject_playlist_command(sourceId) {
21189
+ playlistEject(sourceId) {
21190
21190
  const item = new sesame.v1.commands.CommandListItem();
21191
21191
  const ejectPlaylistCmd = { sourceId };
21192
21192
  item.ejectPlaylist = ejectPlaylistCmd;
21193
21193
  return this.add(item, 0);
21194
21194
  }
21195
- add_transport_command(id, msg, timeOffsetMs) {
21195
+ transportCommand(id, msg, timeOffsetMs) {
21196
21196
  let item = new sesame.v1.commands.CommandListItem();
21197
21197
  let transportCmd = { sourceId: id };
21198
21198
  let cmd;
@@ -21265,17 +21265,17 @@ var CommandList = class {
21265
21265
  item.updateSourceTransport = transportCmd;
21266
21266
  return this.add(item, timeOffsetMs, { transactionId: msg.transactionId, dependencies: [] });
21267
21267
  }
21268
- update_source(id, cfg, timeOffsetMs) {
21268
+ sourceUpdate(id, cfg, timeOffsetMs) {
21269
21269
  let item = new sesame.v1.commands.CommandListItem();
21270
21270
  item.updateSource = { id, config: cfg };
21271
21271
  return this.add(item, timeOffsetMs);
21272
21272
  }
21273
- update_source_metadata(id, metadata, timeOffsetMs) {
21273
+ sourceUpdateMetadata(id, metadata, timeOffsetMs) {
21274
21274
  let item = new sesame.v1.commands.CommandListItem();
21275
21275
  item.setSourceMetadata = { sourceId: id, metadata };
21276
21276
  return this.add(item, timeOffsetMs);
21277
21277
  }
21278
- update_source_transport(id, cfg, timeOffsetMs) {
21278
+ sourceUpdateTransport(id, cfg, timeOffsetMs) {
21279
21279
  let item = new sesame.v1.commands.CommandListItem();
21280
21280
  item.updateSourceTransport = {
21281
21281
  sourceId: id,
@@ -21284,47 +21284,47 @@ var CommandList = class {
21284
21284
  };
21285
21285
  return this.add(item, timeOffsetMs);
21286
21286
  }
21287
- add_output(id, cfg, timeOffsetMs) {
21287
+ outputAdd(id, cfg, timeOffsetMs) {
21288
21288
  let item = new sesame.v1.commands.CommandListItem();
21289
21289
  item.addOutput = { id, ...cfg };
21290
21290
  return this.add(item, timeOffsetMs);
21291
21291
  }
21292
- update_output(id, cfg, timeOffsetMs) {
21292
+ outputUpdate(id, cfg, timeOffsetMs) {
21293
21293
  let item = new sesame.v1.commands.CommandListItem();
21294
21294
  item.updateOutput = { id, ...cfg };
21295
21295
  return this.add(item, timeOffsetMs);
21296
21296
  }
21297
- remove_output(id, timeOffsetMs) {
21297
+ outputRemove(id, timeOffsetMs) {
21298
21298
  let item = new sesame.v1.commands.CommandListItem();
21299
21299
  item.removeOutput = { id };
21300
21300
  return this.add(item, timeOffsetMs);
21301
21301
  }
21302
- add_audio_mixer(id, cfg, timeOffsetMs) {
21302
+ audioMixerAdd(id, cfg, timeOffsetMs) {
21303
21303
  let item = new sesame.v1.commands.CommandListItem();
21304
21304
  item.addAudioMixer = { id, config: cfg };
21305
21305
  return this.add(item, timeOffsetMs);
21306
21306
  }
21307
- update_audio_mixer(id, cfg, timeOffsetMs) {
21307
+ audioMixerUpdate(id, cfg, timeOffsetMs) {
21308
21308
  let item = new sesame.v1.commands.CommandListItem();
21309
21309
  item.updateAudioMixer = { id, config: cfg };
21310
21310
  return this.add(item, timeOffsetMs);
21311
21311
  }
21312
- add_audio_mixer_channel(mixerId, cfg, timeOffsetMs) {
21312
+ audioMixerChannelAdd(mixerId, cfg, timeOffsetMs) {
21313
21313
  let item = new sesame.v1.commands.CommandListItem();
21314
21314
  item.addAudioChannel = { mixerId, channelConfig: cfg };
21315
21315
  return this.add(item, timeOffsetMs);
21316
21316
  }
21317
- remove_audio_mixer(mixerId, timeOffsetMs) {
21317
+ audioMixerRemove(mixerId, timeOffsetMs) {
21318
21318
  let item = new sesame.v1.commands.CommandListItem();
21319
21319
  item.removeAudioMixer = { id: mixerId };
21320
21320
  return this.add(item, timeOffsetMs);
21321
21321
  }
21322
- remove_audio_mixer_channel(mixerId, channelId, timeOffsetMs) {
21322
+ audioMixerChannelRemove(mixerId, channelId, timeOffsetMs) {
21323
21323
  let item = new sesame.v1.commands.CommandListItem();
21324
21324
  item.removeAudioChannel = { mixerId, channelId };
21325
21325
  return this.add(item, timeOffsetMs);
21326
21326
  }
21327
- animate_property(propertyDomain, addr, prop, before, after, keyframes, timeOffsetMs) {
21327
+ propertyAnimate(propertyDomain, addr, prop, before, after, keyframes, timeOffsetMs) {
21328
21328
  let item = new sesame.v1.commands.CommandListItem();
21329
21329
  item.animateProperty = {
21330
21330
  address: addr,