@stinkycomputing/sesame-api-client 1.5.9 → 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 +12 -0
- package/dist/command-list.d.ts +9 -0
- package/dist/command-list.d.ts.map +1 -1
- package/dist/index.browser.mjs +168 -14
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +168 -14
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +168 -14
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +34 -0
- package/dist/proto/api.js +172 -3
- package/docs/protocol-reference.md +701 -551
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ type IEvent = sesame.v1.rpc.IEvent;
|
|
|
17
17
|
export { sesame, Message, Request, Response, Event };
|
|
18
18
|
export type { IMessage, IRequest, IResponse, IEvent };
|
|
19
19
|
export { CommandList } from './command-list';
|
|
20
|
-
export type { CompositorID, ReplayID, AudioMixerID, INodeConfig, IEncoderConfig, IEncoderResourceConfig, IRecorderOutputConfig, ISuperSlowmoRecorderOutputConfig, IOutputConfig, IDecklinkOutputConfig, IWebSocketOutputConfig, ISrtOutputConfig, IMoqOutputConfig, ISystemAudioOutputConfig, IAudioMixerChannel, IAudioMixerConfig, ISourceConfig, IFileSourceConfig, IRecorderSourceConfig, IBrowserSourceConfig, IRTTSourceConfig, IDecklinkSourceConfig, ISystemAudioSourceConfig, ISrtSourceConfig, IWebsocketSourceConfig, IMoqSourceConfig, ISourceTransportConfig, ITransportCommand, IMetadataBinding, IMetadataOutboundBinding, IMetadataInboundBinding, IPlaylistClip, IPlaylist, ITransactionOptions, keyframe } from './command-list';
|
|
20
|
+
export type { CompositorID, ReplayID, AudioMixerID, INodeConfig, IEncoderConfig, IEncoderResourceConfig, IRecorderOutputConfig, ISuperSlowmoRecorderOutputConfig, IOutputConfig, IDecklinkOutputConfig, IWebSocketOutputConfig, ISrtOutputConfig, IMoqOutputConfig, ISystemAudioOutputConfig, IAudioMixerChannel, IAudioMixerConfig, ISourceConfig, IFileSourceConfig, IRecorderSourceConfig, IBrowserSourceConfig, IRTTSourceConfig, IDecklinkSourceConfig, ISystemAudioSourceConfig, ISrtSourceConfig, IWebsocketSourceConfig, IMoqSourceConfig, ISourceTransportConfig, ITransportCommand, IMetadataBinding, IMetadataOutboundBinding, IMetadataInboundBinding, IPlaylistClip, IPlaylist, IPlaylistTakeOptions, ITransactionOptions, keyframe } from './command-list';
|
|
21
21
|
export type { CompositorProperty, AudioMixerProperty, SourceProperty, PropertyValueMap, BaseNodeProperties, MeshNodeProperties, TextNodeProperties, VideoBoxNodeProperties, ImageNodeProperties, EffectBaseProperties, EffectRttProperties, EffectTimecodeProperties, EffectClipPlaneProperties, } from './generated/property-types';
|
|
22
22
|
export { RPCClient, IClientOptions, IProtobufType } from './rpc-client';
|
|
23
23
|
export { SesameConnection, ConnectionState, IConnectionOptions, MediaPacketCallback, waitForEvent } from './sesame-connection';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,QAAA,MAAM,OAAO,8BAAwB,CAAC;AACtC,QAAA,MAAM,OAAO,8BAAwB,CAAC;AACtC,QAAA,MAAM,QAAQ,+BAAyB,CAAC;AACxC,QAAA,MAAM,KAAK,4BAAsB,CAAC;AAElC,KAAK,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC;AACvC,KAAK,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC;AACvC,KAAK,SAAS,GAAG,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC;AACzC,KA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,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -7333,6 +7333,22 @@ var sesame = $root.sesame = (() => {
|
|
|
7333
7333
|
};
|
|
7334
7334
|
return DecklinkSourceConfig;
|
|
7335
7335
|
}();
|
|
7336
|
+
sources.SignalGeneratorVideoPattern = function() {
|
|
7337
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
7338
|
+
values[valuesById[0] = "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS"] = 0;
|
|
7339
|
+
values[valuesById[1] = "SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP"] = 1;
|
|
7340
|
+
values[valuesById[2] = "SIGNAL_GENERATOR_VIDEO_PATTERN_GRID"] = 2;
|
|
7341
|
+
values[valuesById[3] = "SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY"] = 3;
|
|
7342
|
+
return values;
|
|
7343
|
+
}();
|
|
7344
|
+
sources.SignalGeneratorAudioMode = function() {
|
|
7345
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
7346
|
+
values[valuesById[0] = "SIGNAL_GENERATOR_AUDIO_MODE_SYNC"] = 0;
|
|
7347
|
+
values[valuesById[1] = "SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT"] = 1;
|
|
7348
|
+
values[valuesById[2] = "SIGNAL_GENERATOR_AUDIO_MODE_TONE"] = 2;
|
|
7349
|
+
values[valuesById[3] = "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE"] = 3;
|
|
7350
|
+
return values;
|
|
7351
|
+
}();
|
|
7336
7352
|
sources.SignalGeneratorSourceConfig = function() {
|
|
7337
7353
|
function SignalGeneratorSourceConfig(properties) {
|
|
7338
7354
|
if (properties) {
|
|
@@ -7341,12 +7357,30 @@ var sesame = $root.sesame = (() => {
|
|
|
7341
7357
|
this[keys[i]] = properties[keys[i]];
|
|
7342
7358
|
}
|
|
7343
7359
|
}
|
|
7360
|
+
SignalGeneratorSourceConfig.prototype.freeze = false;
|
|
7361
|
+
SignalGeneratorSourceConfig.prototype.videoPattern = 0;
|
|
7362
|
+
SignalGeneratorSourceConfig.prototype.audioMode = 0;
|
|
7344
7363
|
SignalGeneratorSourceConfig.create = function create(properties) {
|
|
7345
7364
|
return new SignalGeneratorSourceConfig(properties);
|
|
7346
7365
|
};
|
|
7347
7366
|
SignalGeneratorSourceConfig.encode = function encode(message, writer) {
|
|
7348
7367
|
if (!writer)
|
|
7349
7368
|
writer = $Writer.create();
|
|
7369
|
+
if (message.freeze != null && Object.hasOwnProperty.call(message, "freeze"))
|
|
7370
|
+
writer.uint32(
|
|
7371
|
+
/* id 1, wireType 0 =*/
|
|
7372
|
+
8
|
|
7373
|
+
).bool(message.freeze);
|
|
7374
|
+
if (message.videoPattern != null && Object.hasOwnProperty.call(message, "videoPattern"))
|
|
7375
|
+
writer.uint32(
|
|
7376
|
+
/* id 2, wireType 0 =*/
|
|
7377
|
+
16
|
|
7378
|
+
).int32(message.videoPattern);
|
|
7379
|
+
if (message.audioMode != null && Object.hasOwnProperty.call(message, "audioMode"))
|
|
7380
|
+
writer.uint32(
|
|
7381
|
+
/* id 3, wireType 0 =*/
|
|
7382
|
+
24
|
|
7383
|
+
).int32(message.audioMode);
|
|
7350
7384
|
return writer;
|
|
7351
7385
|
};
|
|
7352
7386
|
SignalGeneratorSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -7361,6 +7395,18 @@ var sesame = $root.sesame = (() => {
|
|
|
7361
7395
|
if (tag === error)
|
|
7362
7396
|
break;
|
|
7363
7397
|
switch (tag >>> 3) {
|
|
7398
|
+
case 1: {
|
|
7399
|
+
message.freeze = reader.bool();
|
|
7400
|
+
break;
|
|
7401
|
+
}
|
|
7402
|
+
case 2: {
|
|
7403
|
+
message.videoPattern = reader.int32();
|
|
7404
|
+
break;
|
|
7405
|
+
}
|
|
7406
|
+
case 3: {
|
|
7407
|
+
message.audioMode = reader.int32();
|
|
7408
|
+
break;
|
|
7409
|
+
}
|
|
7364
7410
|
default:
|
|
7365
7411
|
reader.skipType(tag & 7);
|
|
7366
7412
|
break;
|
|
@@ -7376,15 +7422,104 @@ var sesame = $root.sesame = (() => {
|
|
|
7376
7422
|
SignalGeneratorSourceConfig.verify = function verify(message) {
|
|
7377
7423
|
if (typeof message !== "object" || message === null)
|
|
7378
7424
|
return "object expected";
|
|
7425
|
+
if (message.freeze != null && message.hasOwnProperty("freeze")) {
|
|
7426
|
+
if (typeof message.freeze !== "boolean")
|
|
7427
|
+
return "freeze: boolean expected";
|
|
7428
|
+
}
|
|
7429
|
+
if (message.videoPattern != null && message.hasOwnProperty("videoPattern"))
|
|
7430
|
+
switch (message.videoPattern) {
|
|
7431
|
+
default:
|
|
7432
|
+
return "videoPattern: enum value expected";
|
|
7433
|
+
case 0:
|
|
7434
|
+
case 1:
|
|
7435
|
+
case 2:
|
|
7436
|
+
case 3:
|
|
7437
|
+
break;
|
|
7438
|
+
}
|
|
7439
|
+
if (message.audioMode != null && message.hasOwnProperty("audioMode"))
|
|
7440
|
+
switch (message.audioMode) {
|
|
7441
|
+
default:
|
|
7442
|
+
return "audioMode: enum value expected";
|
|
7443
|
+
case 0:
|
|
7444
|
+
case 1:
|
|
7445
|
+
case 2:
|
|
7446
|
+
case 3:
|
|
7447
|
+
break;
|
|
7448
|
+
}
|
|
7379
7449
|
return null;
|
|
7380
7450
|
};
|
|
7381
7451
|
SignalGeneratorSourceConfig.fromObject = function fromObject(object) {
|
|
7382
7452
|
if (object instanceof $root.sesame.v1.sources.SignalGeneratorSourceConfig)
|
|
7383
7453
|
return object;
|
|
7384
|
-
|
|
7454
|
+
let message = new $root.sesame.v1.sources.SignalGeneratorSourceConfig();
|
|
7455
|
+
if (object.freeze != null)
|
|
7456
|
+
message.freeze = Boolean(object.freeze);
|
|
7457
|
+
switch (object.videoPattern) {
|
|
7458
|
+
default:
|
|
7459
|
+
if (typeof object.videoPattern === "number") {
|
|
7460
|
+
message.videoPattern = object.videoPattern;
|
|
7461
|
+
break;
|
|
7462
|
+
}
|
|
7463
|
+
break;
|
|
7464
|
+
case "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS":
|
|
7465
|
+
case 0:
|
|
7466
|
+
message.videoPattern = 0;
|
|
7467
|
+
break;
|
|
7468
|
+
case "SIGNAL_GENERATOR_VIDEO_PATTERN_RAMP":
|
|
7469
|
+
case 1:
|
|
7470
|
+
message.videoPattern = 1;
|
|
7471
|
+
break;
|
|
7472
|
+
case "SIGNAL_GENERATOR_VIDEO_PATTERN_GRID":
|
|
7473
|
+
case 2:
|
|
7474
|
+
message.videoPattern = 2;
|
|
7475
|
+
break;
|
|
7476
|
+
case "SIGNAL_GENERATOR_VIDEO_PATTERN_FILL_KEY":
|
|
7477
|
+
case 3:
|
|
7478
|
+
message.videoPattern = 3;
|
|
7479
|
+
break;
|
|
7480
|
+
}
|
|
7481
|
+
switch (object.audioMode) {
|
|
7482
|
+
default:
|
|
7483
|
+
if (typeof object.audioMode === "number") {
|
|
7484
|
+
message.audioMode = object.audioMode;
|
|
7485
|
+
break;
|
|
7486
|
+
}
|
|
7487
|
+
break;
|
|
7488
|
+
case "SIGNAL_GENERATOR_AUDIO_MODE_SYNC":
|
|
7489
|
+
case 0:
|
|
7490
|
+
message.audioMode = 0;
|
|
7491
|
+
break;
|
|
7492
|
+
case "SIGNAL_GENERATOR_AUDIO_MODE_CHANNEL_IDENT":
|
|
7493
|
+
case 1:
|
|
7494
|
+
message.audioMode = 1;
|
|
7495
|
+
break;
|
|
7496
|
+
case "SIGNAL_GENERATOR_AUDIO_MODE_TONE":
|
|
7497
|
+
case 2:
|
|
7498
|
+
message.audioMode = 2;
|
|
7499
|
+
break;
|
|
7500
|
+
case "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE":
|
|
7501
|
+
case 3:
|
|
7502
|
+
message.audioMode = 3;
|
|
7503
|
+
break;
|
|
7504
|
+
}
|
|
7505
|
+
return message;
|
|
7385
7506
|
};
|
|
7386
|
-
SignalGeneratorSourceConfig.toObject = function toObject() {
|
|
7387
|
-
|
|
7507
|
+
SignalGeneratorSourceConfig.toObject = function toObject(message, options) {
|
|
7508
|
+
if (!options)
|
|
7509
|
+
options = {};
|
|
7510
|
+
let object = {};
|
|
7511
|
+
if (options.defaults) {
|
|
7512
|
+
object.freeze = false;
|
|
7513
|
+
object.videoPattern = options.enums === String ? "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS" : 0;
|
|
7514
|
+
object.audioMode = options.enums === String ? "SIGNAL_GENERATOR_AUDIO_MODE_SYNC" : 0;
|
|
7515
|
+
}
|
|
7516
|
+
if (message.freeze != null && message.hasOwnProperty("freeze"))
|
|
7517
|
+
object.freeze = message.freeze;
|
|
7518
|
+
if (message.videoPattern != null && message.hasOwnProperty("videoPattern"))
|
|
7519
|
+
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;
|
|
7520
|
+
if (message.audioMode != null && message.hasOwnProperty("audioMode"))
|
|
7521
|
+
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;
|
|
7522
|
+
return object;
|
|
7388
7523
|
};
|
|
7389
7524
|
SignalGeneratorSourceConfig.prototype.toJSON = function toJSON() {
|
|
7390
7525
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
@@ -25493,6 +25628,20 @@ var sesame = $root.sesame = (() => {
|
|
|
25493
25628
|
})();
|
|
25494
25629
|
|
|
25495
25630
|
// src/command-list.ts
|
|
25631
|
+
function playlistItems(playlist) {
|
|
25632
|
+
return playlist.clips.map((clip) => ({
|
|
25633
|
+
id: clip.id,
|
|
25634
|
+
recorderId: clip.recorderId,
|
|
25635
|
+
transitionTimeUs: clip.transitionTimeUs,
|
|
25636
|
+
speed: clip.speed ?? 1,
|
|
25637
|
+
audioRouting: clip.audioRouting,
|
|
25638
|
+
audioLevels: clip.audioLevels,
|
|
25639
|
+
startTimeUs: clip.startTimeUs,
|
|
25640
|
+
endTimeUs: clip.endTimeUs,
|
|
25641
|
+
transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
|
|
25642
|
+
transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 }
|
|
25643
|
+
}));
|
|
25644
|
+
}
|
|
25496
25645
|
var CommandList = class {
|
|
25497
25646
|
constructor() {
|
|
25498
25647
|
this.cl = new sesame.v1.commands.CommandList();
|
|
@@ -25600,17 +25749,7 @@ var CommandList = class {
|
|
|
25600
25749
|
playlistLoad(sourceId, playlist, startTimeUs, startIndex, materialPosUs, timeOffsetMs) {
|
|
25601
25750
|
const item = new sesame.v1.commands.CommandListItem();
|
|
25602
25751
|
const loadPlaylistCmd = {
|
|
25603
|
-
items: playlist
|
|
25604
|
-
id: clip.id,
|
|
25605
|
-
recorderId: clip.recorderId,
|
|
25606
|
-
transitionTimeUs: clip.transitionTimeUs,
|
|
25607
|
-
speed: clip.speed || 1,
|
|
25608
|
-
audioRouting: clip.audioRouting,
|
|
25609
|
-
startTimeUs: clip.startTimeUs,
|
|
25610
|
-
endTimeUs: clip.endTimeUs,
|
|
25611
|
-
transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
|
|
25612
|
-
transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 }
|
|
25613
|
-
})),
|
|
25752
|
+
items: playlistItems(playlist),
|
|
25614
25753
|
sourceId,
|
|
25615
25754
|
userPlaylistId: playlist.id,
|
|
25616
25755
|
startTimeUs,
|
|
@@ -25620,6 +25759,21 @@ var CommandList = class {
|
|
|
25620
25759
|
item.loadPlaylist = loadPlaylistCmd;
|
|
25621
25760
|
return this.add(item, timeOffsetMs ?? 0);
|
|
25622
25761
|
}
|
|
25762
|
+
playlistTake(sourceId, playlist, options = {}) {
|
|
25763
|
+
const item = new sesame.v1.commands.CommandListItem();
|
|
25764
|
+
const takePlaylistCmd = {
|
|
25765
|
+
items: playlistItems(playlist),
|
|
25766
|
+
sourceId,
|
|
25767
|
+
userPlaylistId: playlist.id,
|
|
25768
|
+
startTimeUs: options.startTimeUs,
|
|
25769
|
+
startIndex: options.startIndex,
|
|
25770
|
+
materialPosUs: options.materialPosUs,
|
|
25771
|
+
transitionTimeUs: options.transitionTimeUs,
|
|
25772
|
+
playbackSpeed: options.playbackSpeed
|
|
25773
|
+
};
|
|
25774
|
+
item.takePlaylist = takePlaylistCmd;
|
|
25775
|
+
return this.add(item, options.timeOffsetMs ?? 0, options);
|
|
25776
|
+
}
|
|
25623
25777
|
playlistEject(sourceId) {
|
|
25624
25778
|
const item = new sesame.v1.commands.CommandListItem();
|
|
25625
25779
|
const ejectPlaylistCmd = { sourceId };
|