@stinkycomputing/sesame-api-client 1.8.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/command-list.d.ts +24 -0
- package/dist/command-list.d.ts.map +1 -1
- package/dist/index.browser.mjs +1609 -264
- package/dist/index.browser.mjs.map +3 -3
- package/dist/index.cjs +1612 -264
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1609 -264
- package/dist/index.mjs.map +3 -3
- package/dist/proto/api.d.ts +868 -38
- package/dist/proto/api.js +2238 -2
- package/dist/sesame-wire-protocol.d.ts +34 -0
- package/dist/sesame-wire-protocol.d.ts.map +1 -1
- package/docs/protocol-reference.md +137 -0
- package/package.json +1 -1
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() {
|
|
@@ -9189,6 +9283,7 @@ var sesame = $root.sesame = (() => {
|
|
|
9189
9283
|
case 4:
|
|
9190
9284
|
case 5:
|
|
9191
9285
|
case 6:
|
|
9286
|
+
case 7:
|
|
9192
9287
|
break;
|
|
9193
9288
|
}
|
|
9194
9289
|
if (message.transportState != null && message.hasOwnProperty("transportState"))
|
|
@@ -9369,6 +9464,10 @@ var sesame = $root.sesame = (() => {
|
|
|
9369
9464
|
case 6:
|
|
9370
9465
|
message.state = 6;
|
|
9371
9466
|
break;
|
|
9467
|
+
case "CONNECTION_STATE_DISABLED":
|
|
9468
|
+
case 7:
|
|
9469
|
+
message.state = 7;
|
|
9470
|
+
break;
|
|
9372
9471
|
}
|
|
9373
9472
|
switch (object.transportState) {
|
|
9374
9473
|
default:
|
|
@@ -19376,6 +19475,13 @@ var sesame = $root.sesame = (() => {
|
|
|
19376
19475
|
};
|
|
19377
19476
|
return EncodedSuperSlowMoRecorderOutputConfig;
|
|
19378
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
|
+
}();
|
|
19379
19485
|
outputs.EncodedSrtOutputConfig = function() {
|
|
19380
19486
|
function EncodedSrtOutputConfig(properties) {
|
|
19381
19487
|
if (properties) {
|
|
@@ -19386,6 +19492,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19386
19492
|
}
|
|
19387
19493
|
EncodedSrtOutputConfig.prototype.url = "";
|
|
19388
19494
|
EncodedSrtOutputConfig.prototype.encoderId = "";
|
|
19495
|
+
EncodedSrtOutputConfig.prototype.control = 0;
|
|
19389
19496
|
EncodedSrtOutputConfig.create = function create(properties) {
|
|
19390
19497
|
return new EncodedSrtOutputConfig(properties);
|
|
19391
19498
|
};
|
|
@@ -19402,6 +19509,11 @@ var sesame = $root.sesame = (() => {
|
|
|
19402
19509
|
/* id 2, wireType 2 =*/
|
|
19403
19510
|
18
|
|
19404
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);
|
|
19405
19517
|
return writer;
|
|
19406
19518
|
};
|
|
19407
19519
|
EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -19424,6 +19536,10 @@ var sesame = $root.sesame = (() => {
|
|
|
19424
19536
|
message.encoderId = reader.string();
|
|
19425
19537
|
break;
|
|
19426
19538
|
}
|
|
19539
|
+
case 3: {
|
|
19540
|
+
message.control = reader.int32();
|
|
19541
|
+
break;
|
|
19542
|
+
}
|
|
19427
19543
|
default:
|
|
19428
19544
|
reader.skipType(tag & 7);
|
|
19429
19545
|
break;
|
|
@@ -19447,6 +19563,15 @@ var sesame = $root.sesame = (() => {
|
|
|
19447
19563
|
if (!$util.isString(message.encoderId))
|
|
19448
19564
|
return "encoderId: string expected";
|
|
19449
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
|
+
}
|
|
19450
19575
|
return null;
|
|
19451
19576
|
};
|
|
19452
19577
|
EncodedSrtOutputConfig.fromObject = function fromObject(object) {
|
|
@@ -19457,6 +19582,26 @@ var sesame = $root.sesame = (() => {
|
|
|
19457
19582
|
message.url = String(object.url);
|
|
19458
19583
|
if (object.encoderId != null)
|
|
19459
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
|
+
}
|
|
19460
19605
|
return message;
|
|
19461
19606
|
};
|
|
19462
19607
|
EncodedSrtOutputConfig.toObject = function toObject(message, options) {
|
|
@@ -19466,11 +19611,14 @@ var sesame = $root.sesame = (() => {
|
|
|
19466
19611
|
if (options.defaults) {
|
|
19467
19612
|
object.url = "";
|
|
19468
19613
|
object.encoderId = "";
|
|
19614
|
+
object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
|
|
19469
19615
|
}
|
|
19470
19616
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
19471
19617
|
object.url = message.url;
|
|
19472
19618
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
19473
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;
|
|
19474
19622
|
return object;
|
|
19475
19623
|
};
|
|
19476
19624
|
EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -20593,6 +20741,144 @@ var sesame = $root.sesame = (() => {
|
|
|
20593
20741
|
};
|
|
20594
20742
|
return OutputRemoveRequest;
|
|
20595
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
|
+
}();
|
|
20596
20882
|
outputs.KeyframeRequest = function() {
|
|
20597
20883
|
function KeyframeRequest(properties) {
|
|
20598
20884
|
if (properties) {
|
|
@@ -20697,6 +20983,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20697
20983
|
OutputStatus.prototype.bufferSize = 0;
|
|
20698
20984
|
OutputStatus.prototype.srtStats = null;
|
|
20699
20985
|
OutputStatus.prototype.encoderId = "";
|
|
20986
|
+
OutputStatus.prototype.control = 0;
|
|
20700
20987
|
let $oneOfFields;
|
|
20701
20988
|
Object.defineProperty(OutputStatus.prototype, "_msg", {
|
|
20702
20989
|
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
@@ -20752,6 +21039,11 @@ var sesame = $root.sesame = (() => {
|
|
|
20752
21039
|
/* id 8, wireType 2 =*/
|
|
20753
21040
|
66
|
|
20754
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);
|
|
20755
21047
|
return writer;
|
|
20756
21048
|
};
|
|
20757
21049
|
OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -20798,6 +21090,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20798
21090
|
message.encoderId = reader.string();
|
|
20799
21091
|
break;
|
|
20800
21092
|
}
|
|
21093
|
+
case 9: {
|
|
21094
|
+
message.control = reader.int32();
|
|
21095
|
+
break;
|
|
21096
|
+
}
|
|
20801
21097
|
default:
|
|
20802
21098
|
reader.skipType(tag & 7);
|
|
20803
21099
|
break;
|
|
@@ -20843,6 +21139,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20843
21139
|
case 4:
|
|
20844
21140
|
case 5:
|
|
20845
21141
|
case 6:
|
|
21142
|
+
case 7:
|
|
20846
21143
|
break;
|
|
20847
21144
|
}
|
|
20848
21145
|
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
@@ -20870,6 +21167,15 @@ var sesame = $root.sesame = (() => {
|
|
|
20870
21167
|
if (!$util.isString(message.encoderId))
|
|
20871
21168
|
return "encoderId: string expected";
|
|
20872
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
|
+
}
|
|
20873
21179
|
return null;
|
|
20874
21180
|
};
|
|
20875
21181
|
OutputStatus.fromObject = function fromObject(object) {
|
|
@@ -20953,6 +21259,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20953
21259
|
case 6:
|
|
20954
21260
|
message.state = 6;
|
|
20955
21261
|
break;
|
|
21262
|
+
case "CONNECTION_STATE_DISABLED":
|
|
21263
|
+
case 7:
|
|
21264
|
+
message.state = 7;
|
|
21265
|
+
break;
|
|
20956
21266
|
}
|
|
20957
21267
|
if (object.msg != null)
|
|
20958
21268
|
message.msg = String(object.msg);
|
|
@@ -20967,6 +21277,26 @@ var sesame = $root.sesame = (() => {
|
|
|
20967
21277
|
}
|
|
20968
21278
|
if (object.encoderId != null)
|
|
20969
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
|
+
}
|
|
20970
21300
|
return message;
|
|
20971
21301
|
};
|
|
20972
21302
|
OutputStatus.toObject = function toObject(message, options) {
|
|
@@ -20980,6 +21310,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20980
21310
|
object.url = "";
|
|
20981
21311
|
object.bufferSize = 0;
|
|
20982
21312
|
object.encoderId = "";
|
|
21313
|
+
object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
|
|
20983
21314
|
}
|
|
20984
21315
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
20985
21316
|
object.id = message.id;
|
|
@@ -21003,6 +21334,8 @@ var sesame = $root.sesame = (() => {
|
|
|
21003
21334
|
}
|
|
21004
21335
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
21005
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;
|
|
21006
21339
|
return object;
|
|
21007
21340
|
};
|
|
21008
21341
|
OutputStatus.prototype.toJSON = function toJSON() {
|
|
@@ -21148,6 +21481,7 @@ var sesame = $root.sesame = (() => {
|
|
|
21148
21481
|
case 4:
|
|
21149
21482
|
case 5:
|
|
21150
21483
|
case 6:
|
|
21484
|
+
case 7:
|
|
21151
21485
|
break;
|
|
21152
21486
|
}
|
|
21153
21487
|
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
@@ -21222,6 +21556,10 @@ var sesame = $root.sesame = (() => {
|
|
|
21222
21556
|
case 6:
|
|
21223
21557
|
message.state = 6;
|
|
21224
21558
|
break;
|
|
21559
|
+
case "CONNECTION_STATE_DISABLED":
|
|
21560
|
+
case 7:
|
|
21561
|
+
message.state = 7;
|
|
21562
|
+
break;
|
|
21225
21563
|
}
|
|
21226
21564
|
if (object.msg != null)
|
|
21227
21565
|
message.msg = String(object.msg);
|
|
@@ -22083,72 +22421,52 @@ var sesame = $root.sesame = (() => {
|
|
|
22083
22421
|
};
|
|
22084
22422
|
return NodeRemoveRequest;
|
|
22085
22423
|
}();
|
|
22086
|
-
compositor.
|
|
22087
|
-
function
|
|
22424
|
+
compositor.SideDataSetRequest = function() {
|
|
22425
|
+
function SideDataSetRequest(properties) {
|
|
22088
22426
|
if (properties) {
|
|
22089
22427
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22090
22428
|
if (properties[keys[i]] != null)
|
|
22091
22429
|
this[keys[i]] = properties[keys[i]];
|
|
22092
22430
|
}
|
|
22093
22431
|
}
|
|
22094
|
-
|
|
22095
|
-
|
|
22096
|
-
|
|
22097
|
-
|
|
22098
|
-
PropertySetRequest.create = function create(properties) {
|
|
22099
|
-
return new PropertySetRequest(properties);
|
|
22432
|
+
SideDataSetRequest.prototype.compositorId = "";
|
|
22433
|
+
SideDataSetRequest.prototype.sideData = null;
|
|
22434
|
+
SideDataSetRequest.create = function create(properties) {
|
|
22435
|
+
return new SideDataSetRequest(properties);
|
|
22100
22436
|
};
|
|
22101
|
-
|
|
22437
|
+
SideDataSetRequest.encode = function encode(message, writer) {
|
|
22102
22438
|
if (!writer)
|
|
22103
22439
|
writer = $Writer.create();
|
|
22104
|
-
if (message.
|
|
22105
|
-
|
|
22440
|
+
if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
|
|
22441
|
+
writer.uint32(
|
|
22106
22442
|
/* id 1, wireType 2 =*/
|
|
22107
22443
|
10
|
|
22108
|
-
).
|
|
22109
|
-
if (message.
|
|
22110
|
-
writer.uint32(
|
|
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(
|
|
22111
22447
|
/* id 2, wireType 2 =*/
|
|
22112
22448
|
18
|
|
22113
|
-
).string(message.address);
|
|
22114
|
-
if (message.property != null && Object.hasOwnProperty.call(message, "property"))
|
|
22115
|
-
writer.uint32(
|
|
22116
|
-
/* id 3, wireType 2 =*/
|
|
22117
|
-
26
|
|
22118
|
-
).string(message.property);
|
|
22119
|
-
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
22120
|
-
$root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
|
|
22121
|
-
/* id 4, wireType 2 =*/
|
|
22122
|
-
34
|
|
22123
22449
|
).fork()).ldelim();
|
|
22124
22450
|
return writer;
|
|
22125
22451
|
};
|
|
22126
|
-
|
|
22452
|
+
SideDataSetRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22127
22453
|
return this.encode(message, writer).ldelim();
|
|
22128
22454
|
};
|
|
22129
|
-
|
|
22455
|
+
SideDataSetRequest.decode = function decode(reader, length, error) {
|
|
22130
22456
|
if (!(reader instanceof $Reader))
|
|
22131
22457
|
reader = $Reader.create(reader);
|
|
22132
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.
|
|
22458
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataSetRequest();
|
|
22133
22459
|
while (reader.pos < end) {
|
|
22134
22460
|
let tag = reader.uint32();
|
|
22135
22461
|
if (tag === error)
|
|
22136
22462
|
break;
|
|
22137
22463
|
switch (tag >>> 3) {
|
|
22138
22464
|
case 1: {
|
|
22139
|
-
message.
|
|
22465
|
+
message.compositorId = reader.string();
|
|
22140
22466
|
break;
|
|
22141
22467
|
}
|
|
22142
22468
|
case 2: {
|
|
22143
|
-
message.
|
|
22144
|
-
break;
|
|
22145
|
-
}
|
|
22146
|
-
case 3: {
|
|
22147
|
-
message.property = reader.string();
|
|
22148
|
-
break;
|
|
22149
|
-
}
|
|
22150
|
-
case 4: {
|
|
22151
|
-
message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
|
|
22469
|
+
message.sideData = $root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32());
|
|
22152
22470
|
break;
|
|
22153
22471
|
}
|
|
22154
22472
|
default:
|
|
@@ -22158,36 +22476,276 @@ var sesame = $root.sesame = (() => {
|
|
|
22158
22476
|
}
|
|
22159
22477
|
return message;
|
|
22160
22478
|
};
|
|
22161
|
-
|
|
22479
|
+
SideDataSetRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
22162
22480
|
if (!(reader instanceof $Reader))
|
|
22163
22481
|
reader = new $Reader(reader);
|
|
22164
22482
|
return this.decode(reader, reader.uint32());
|
|
22165
22483
|
};
|
|
22166
|
-
|
|
22484
|
+
SideDataSetRequest.verify = function verify(message) {
|
|
22167
22485
|
if (typeof message !== "object" || message === null)
|
|
22168
22486
|
return "object expected";
|
|
22169
|
-
if (message.
|
|
22170
|
-
|
|
22171
|
-
|
|
22172
|
-
return "domain." + error;
|
|
22173
|
-
}
|
|
22174
|
-
if (message.address != null && message.hasOwnProperty("address")) {
|
|
22175
|
-
if (!$util.isString(message.address))
|
|
22176
|
-
return "address: string expected";
|
|
22177
|
-
}
|
|
22178
|
-
if (message.property != null && message.hasOwnProperty("property")) {
|
|
22179
|
-
if (!$util.isString(message.property))
|
|
22180
|
-
return "property: string expected";
|
|
22487
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
|
|
22488
|
+
if (!$util.isString(message.compositorId))
|
|
22489
|
+
return "compositorId: string expected";
|
|
22181
22490
|
}
|
|
22182
|
-
if (message.
|
|
22183
|
-
let error = $root.sesame.v1.
|
|
22491
|
+
if (message.sideData != null && message.hasOwnProperty("sideData")) {
|
|
22492
|
+
let error = $root.sesame.v1.sidedata.SideData.verify(message.sideData);
|
|
22184
22493
|
if (error)
|
|
22185
|
-
return "
|
|
22494
|
+
return "sideData." + error;
|
|
22186
22495
|
}
|
|
22187
22496
|
return null;
|
|
22188
22497
|
};
|
|
22189
|
-
|
|
22190
|
-
if (object instanceof $root.sesame.v1.compositor.
|
|
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)
|
|
22191
22749
|
return object;
|
|
22192
22750
|
let message = new $root.sesame.v1.compositor.PropertySetRequest();
|
|
22193
22751
|
if (object.domain != null) {
|
|
@@ -22233,100 +22791,879 @@ var sesame = $root.sesame = (() => {
|
|
|
22233
22791
|
if (typeUrlPrefix === void 0) {
|
|
22234
22792
|
typeUrlPrefix = "type.googleapis.com";
|
|
22235
22793
|
}
|
|
22236
|
-
return typeUrlPrefix + "/sesame.v1.compositor.PropertySetRequest";
|
|
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) {
|
|
23231
|
+
if (!options)
|
|
23232
|
+
options = {};
|
|
23233
|
+
let object = {};
|
|
23234
|
+
if (options.defaults) {
|
|
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;
|
|
23242
|
+
}
|
|
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;
|
|
23257
|
+
return object;
|
|
23258
|
+
};
|
|
23259
|
+
AtlasEntry.prototype.toJSON = function toJSON() {
|
|
23260
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
23261
|
+
};
|
|
23262
|
+
AtlasEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
23263
|
+
if (typeUrlPrefix === void 0) {
|
|
23264
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
23265
|
+
}
|
|
23266
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.AtlasEntry";
|
|
23267
|
+
};
|
|
23268
|
+
return AtlasEntry;
|
|
23269
|
+
}();
|
|
23270
|
+
sidedata.AtlasLayout = function() {
|
|
23271
|
+
function AtlasLayout(properties) {
|
|
23272
|
+
this.entries = [];
|
|
23273
|
+
if (properties) {
|
|
23274
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23275
|
+
if (properties[keys[i]] != null)
|
|
23276
|
+
this[keys[i]] = properties[keys[i]];
|
|
23277
|
+
}
|
|
23278
|
+
}
|
|
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);
|
|
23284
|
+
};
|
|
23285
|
+
AtlasLayout.encode = function encode(message, writer) {
|
|
23286
|
+
if (!writer)
|
|
23287
|
+
writer = $Writer.create();
|
|
23288
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
23289
|
+
writer.uint32(
|
|
23290
|
+
/* id 1, wireType 0 =*/
|
|
23291
|
+
8
|
|
23292
|
+
).uint32(message.width);
|
|
23293
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
23294
|
+
writer.uint32(
|
|
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();
|
|
23304
|
+
return writer;
|
|
23305
|
+
};
|
|
23306
|
+
AtlasLayout.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23307
|
+
return this.encode(message, writer).ldelim();
|
|
23308
|
+
};
|
|
23309
|
+
AtlasLayout.decode = function decode(reader, length, error) {
|
|
23310
|
+
if (!(reader instanceof $Reader))
|
|
23311
|
+
reader = $Reader.create(reader);
|
|
23312
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasLayout();
|
|
23313
|
+
while (reader.pos < end) {
|
|
23314
|
+
let tag = reader.uint32();
|
|
23315
|
+
if (tag === error)
|
|
23316
|
+
break;
|
|
23317
|
+
switch (tag >>> 3) {
|
|
23318
|
+
case 1: {
|
|
23319
|
+
message.width = reader.uint32();
|
|
23320
|
+
break;
|
|
23321
|
+
}
|
|
23322
|
+
case 2: {
|
|
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()));
|
|
23330
|
+
break;
|
|
23331
|
+
}
|
|
23332
|
+
default:
|
|
23333
|
+
reader.skipType(tag & 7);
|
|
23334
|
+
break;
|
|
23335
|
+
}
|
|
23336
|
+
}
|
|
23337
|
+
return message;
|
|
23338
|
+
};
|
|
23339
|
+
AtlasLayout.decodeDelimited = function decodeDelimited(reader) {
|
|
23340
|
+
if (!(reader instanceof $Reader))
|
|
23341
|
+
reader = new $Reader(reader);
|
|
23342
|
+
return this.decode(reader, reader.uint32());
|
|
23343
|
+
};
|
|
23344
|
+
AtlasLayout.verify = function verify(message) {
|
|
23345
|
+
if (typeof message !== "object" || message === null)
|
|
23346
|
+
return "object expected";
|
|
23347
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
23348
|
+
if (!$util.isInteger(message.width))
|
|
23349
|
+
return "width: integer expected";
|
|
23350
|
+
}
|
|
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
|
+
}
|
|
23363
|
+
}
|
|
23364
|
+
return null;
|
|
23365
|
+
};
|
|
23366
|
+
AtlasLayout.fromObject = function fromObject(object) {
|
|
23367
|
+
if (object instanceof $root.sesame.v1.sidedata.AtlasLayout)
|
|
23368
|
+
return object;
|
|
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
|
+
}
|
|
23384
|
+
return message;
|
|
23385
|
+
};
|
|
23386
|
+
AtlasLayout.toObject = function toObject(message, options) {
|
|
23387
|
+
if (!options)
|
|
23388
|
+
options = {};
|
|
23389
|
+
let object = {};
|
|
23390
|
+
if (options.arrays || options.defaults)
|
|
23391
|
+
object.entries = [];
|
|
23392
|
+
if (options.defaults) {
|
|
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);
|
|
23404
|
+
}
|
|
23405
|
+
return object;
|
|
23406
|
+
};
|
|
23407
|
+
AtlasLayout.prototype.toJSON = function toJSON() {
|
|
23408
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
23409
|
+
};
|
|
23410
|
+
AtlasLayout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
23411
|
+
if (typeUrlPrefix === void 0) {
|
|
23412
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
23413
|
+
}
|
|
23414
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.AtlasLayout";
|
|
23415
|
+
};
|
|
23416
|
+
return AtlasLayout;
|
|
23417
|
+
}();
|
|
23418
|
+
sidedata.SideData = function() {
|
|
23419
|
+
function SideData2(properties) {
|
|
23420
|
+
if (properties) {
|
|
23421
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23422
|
+
if (properties[keys[i]] != null)
|
|
23423
|
+
this[keys[i]] = properties[keys[i]];
|
|
23424
|
+
}
|
|
23425
|
+
}
|
|
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);
|
|
23438
|
+
};
|
|
23439
|
+
SideData2.encode = function encode(message, writer) {
|
|
23440
|
+
if (!writer)
|
|
23441
|
+
writer = $Writer.create();
|
|
23442
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
23443
|
+
writer.uint32(
|
|
23444
|
+
/* id 1, wireType 2 =*/
|
|
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
|
|
23456
|
+
).fork()).ldelim();
|
|
23457
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
23458
|
+
writer.uint32(
|
|
23459
|
+
/* id 20, wireType 2 =*/
|
|
23460
|
+
162
|
|
23461
|
+
).string(message.json);
|
|
23462
|
+
if (message.binary != null && Object.hasOwnProperty.call(message, "binary"))
|
|
23463
|
+
writer.uint32(
|
|
23464
|
+
/* id 21, wireType 2 =*/
|
|
23465
|
+
170
|
|
23466
|
+
).bytes(message.binary);
|
|
23467
|
+
return writer;
|
|
23468
|
+
};
|
|
23469
|
+
SideData2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23470
|
+
return this.encode(message, writer).ldelim();
|
|
23471
|
+
};
|
|
23472
|
+
SideData2.decode = function decode(reader, length, error) {
|
|
23473
|
+
if (!(reader instanceof $Reader))
|
|
23474
|
+
reader = $Reader.create(reader);
|
|
23475
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideData();
|
|
23476
|
+
while (reader.pos < end) {
|
|
23477
|
+
let tag = reader.uint32();
|
|
23478
|
+
if (tag === error)
|
|
23479
|
+
break;
|
|
23480
|
+
switch (tag >>> 3) {
|
|
23481
|
+
case 1: {
|
|
23482
|
+
message.id = reader.string();
|
|
23483
|
+
break;
|
|
23484
|
+
}
|
|
23485
|
+
case 2: {
|
|
23486
|
+
message.version = reader.uint64();
|
|
23487
|
+
break;
|
|
23488
|
+
}
|
|
23489
|
+
case 10: {
|
|
23490
|
+
message.atlas = $root.sesame.v1.sidedata.AtlasLayout.decode(reader, reader.uint32());
|
|
23491
|
+
break;
|
|
23492
|
+
}
|
|
23493
|
+
case 20: {
|
|
23494
|
+
message.json = reader.string();
|
|
23495
|
+
break;
|
|
23496
|
+
}
|
|
23497
|
+
case 21: {
|
|
23498
|
+
message.binary = reader.bytes();
|
|
23499
|
+
break;
|
|
23500
|
+
}
|
|
23501
|
+
default:
|
|
23502
|
+
reader.skipType(tag & 7);
|
|
23503
|
+
break;
|
|
23504
|
+
}
|
|
23505
|
+
}
|
|
23506
|
+
return message;
|
|
23507
|
+
};
|
|
23508
|
+
SideData2.decodeDelimited = function decodeDelimited(reader) {
|
|
23509
|
+
if (!(reader instanceof $Reader))
|
|
23510
|
+
reader = new $Reader(reader);
|
|
23511
|
+
return this.decode(reader, reader.uint32());
|
|
23512
|
+
};
|
|
23513
|
+
SideData2.verify = function verify(message) {
|
|
23514
|
+
if (typeof message !== "object" || message === null)
|
|
23515
|
+
return "object expected";
|
|
23516
|
+
let properties = {};
|
|
23517
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
23518
|
+
if (!$util.isString(message.id))
|
|
23519
|
+
return "id: string expected";
|
|
23520
|
+
}
|
|
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";
|
|
23524
|
+
}
|
|
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
|
+
}
|
|
23532
|
+
}
|
|
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";
|
|
23546
|
+
}
|
|
23547
|
+
return null;
|
|
23548
|
+
};
|
|
23549
|
+
SideData2.fromObject = function fromObject(object) {
|
|
23550
|
+
if (object instanceof $root.sesame.v1.sidedata.SideData)
|
|
23551
|
+
return object;
|
|
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) {
|
|
23581
|
+
if (!options)
|
|
23582
|
+
options = {};
|
|
23583
|
+
let object = {};
|
|
23584
|
+
if (options.defaults) {
|
|
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";
|
|
23613
|
+
}
|
|
23614
|
+
return object;
|
|
23615
|
+
};
|
|
23616
|
+
SideData2.prototype.toJSON = function toJSON() {
|
|
23617
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
23618
|
+
};
|
|
23619
|
+
SideData2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
23620
|
+
if (typeUrlPrefix === void 0) {
|
|
23621
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
23622
|
+
}
|
|
23623
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.SideData";
|
|
22237
23624
|
};
|
|
22238
|
-
return
|
|
23625
|
+
return SideData2;
|
|
22239
23626
|
}();
|
|
22240
|
-
|
|
22241
|
-
function
|
|
22242
|
-
this.
|
|
23627
|
+
sidedata.SideDataSet = function() {
|
|
23628
|
+
function SideDataSet(properties) {
|
|
23629
|
+
this.entries = [];
|
|
22243
23630
|
if (properties) {
|
|
22244
23631
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22245
23632
|
if (properties[keys[i]] != null)
|
|
22246
23633
|
this[keys[i]] = properties[keys[i]];
|
|
22247
23634
|
}
|
|
22248
23635
|
}
|
|
22249
|
-
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
PropertyAnimateRequest.prototype.keyframes = $util.emptyArray;
|
|
22253
|
-
PropertyAnimateRequest.prototype.before = 0;
|
|
22254
|
-
PropertyAnimateRequest.prototype.after = 0;
|
|
22255
|
-
PropertyAnimateRequest.create = function create(properties) {
|
|
22256
|
-
return new PropertyAnimateRequest(properties);
|
|
23636
|
+
SideDataSet.prototype.entries = $util.emptyArray;
|
|
23637
|
+
SideDataSet.create = function create(properties) {
|
|
23638
|
+
return new SideDataSet(properties);
|
|
22257
23639
|
};
|
|
22258
|
-
|
|
23640
|
+
SideDataSet.encode = function encode(message, writer) {
|
|
22259
23641
|
if (!writer)
|
|
22260
23642
|
writer = $Writer.create();
|
|
22261
|
-
if (message.
|
|
22262
|
-
|
|
22263
|
-
|
|
22264
|
-
|
|
22265
|
-
|
|
22266
|
-
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
22267
|
-
writer.uint32(
|
|
22268
|
-
/* id 2, wireType 2 =*/
|
|
22269
|
-
18
|
|
22270
|
-
).string(message.address);
|
|
22271
|
-
if (message.property != null && Object.hasOwnProperty.call(message, "property"))
|
|
22272
|
-
writer.uint32(
|
|
22273
|
-
/* id 3, wireType 2 =*/
|
|
22274
|
-
26
|
|
22275
|
-
).string(message.property);
|
|
22276
|
-
if (message.keyframes != null && message.keyframes.length)
|
|
22277
|
-
for (let i = 0; i < message.keyframes.length; ++i)
|
|
22278
|
-
$root.sesame.v1.compositor.KeyFrame.encode(message.keyframes[i], writer.uint32(
|
|
22279
|
-
/* id 4, wireType 2 =*/
|
|
22280
|
-
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
|
|
22281
23648
|
).fork()).ldelim();
|
|
22282
|
-
if (message.before != null && Object.hasOwnProperty.call(message, "before"))
|
|
22283
|
-
writer.uint32(
|
|
22284
|
-
/* id 5, wireType 0 =*/
|
|
22285
|
-
40
|
|
22286
|
-
).int32(message.before);
|
|
22287
|
-
if (message.after != null && Object.hasOwnProperty.call(message, "after"))
|
|
22288
|
-
writer.uint32(
|
|
22289
|
-
/* id 6, wireType 0 =*/
|
|
22290
|
-
48
|
|
22291
|
-
).int32(message.after);
|
|
22292
23649
|
return writer;
|
|
22293
23650
|
};
|
|
22294
|
-
|
|
23651
|
+
SideDataSet.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22295
23652
|
return this.encode(message, writer).ldelim();
|
|
22296
23653
|
};
|
|
22297
|
-
|
|
23654
|
+
SideDataSet.decode = function decode(reader, length, error) {
|
|
22298
23655
|
if (!(reader instanceof $Reader))
|
|
22299
23656
|
reader = $Reader.create(reader);
|
|
22300
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.
|
|
23657
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideDataSet();
|
|
22301
23658
|
while (reader.pos < end) {
|
|
22302
23659
|
let tag = reader.uint32();
|
|
22303
23660
|
if (tag === error)
|
|
22304
23661
|
break;
|
|
22305
23662
|
switch (tag >>> 3) {
|
|
22306
23663
|
case 1: {
|
|
22307
|
-
message.
|
|
22308
|
-
|
|
22309
|
-
|
|
22310
|
-
case 2: {
|
|
22311
|
-
message.address = reader.string();
|
|
22312
|
-
break;
|
|
22313
|
-
}
|
|
22314
|
-
case 3: {
|
|
22315
|
-
message.property = reader.string();
|
|
22316
|
-
break;
|
|
22317
|
-
}
|
|
22318
|
-
case 4: {
|
|
22319
|
-
if (!(message.keyframes && message.keyframes.length))
|
|
22320
|
-
message.keyframes = [];
|
|
22321
|
-
message.keyframes.push($root.sesame.v1.compositor.KeyFrame.decode(reader, reader.uint32()));
|
|
22322
|
-
break;
|
|
22323
|
-
}
|
|
22324
|
-
case 5: {
|
|
22325
|
-
message.before = reader.int32();
|
|
22326
|
-
break;
|
|
22327
|
-
}
|
|
22328
|
-
case 6: {
|
|
22329
|
-
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()));
|
|
22330
23667
|
break;
|
|
22331
23668
|
}
|
|
22332
23669
|
default:
|
|
@@ -22336,173 +23673,66 @@ var sesame = $root.sesame = (() => {
|
|
|
22336
23673
|
}
|
|
22337
23674
|
return message;
|
|
22338
23675
|
};
|
|
22339
|
-
|
|
23676
|
+
SideDataSet.decodeDelimited = function decodeDelimited(reader) {
|
|
22340
23677
|
if (!(reader instanceof $Reader))
|
|
22341
23678
|
reader = new $Reader(reader);
|
|
22342
23679
|
return this.decode(reader, reader.uint32());
|
|
22343
23680
|
};
|
|
22344
|
-
|
|
23681
|
+
SideDataSet.verify = function verify(message) {
|
|
22345
23682
|
if (typeof message !== "object" || message === null)
|
|
22346
23683
|
return "object expected";
|
|
22347
|
-
if (message.
|
|
22348
|
-
|
|
22349
|
-
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
if (message.address != null && message.hasOwnProperty("address")) {
|
|
22353
|
-
if (!$util.isString(message.address))
|
|
22354
|
-
return "address: string expected";
|
|
22355
|
-
}
|
|
22356
|
-
if (message.property != null && message.hasOwnProperty("property")) {
|
|
22357
|
-
if (!$util.isString(message.property))
|
|
22358
|
-
return "property: string expected";
|
|
22359
|
-
}
|
|
22360
|
-
if (message.keyframes != null && message.hasOwnProperty("keyframes")) {
|
|
22361
|
-
if (!Array.isArray(message.keyframes))
|
|
22362
|
-
return "keyframes: array expected";
|
|
22363
|
-
for (let i = 0; i < message.keyframes.length; ++i) {
|
|
22364
|
-
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]);
|
|
22365
23689
|
if (error)
|
|
22366
|
-
return "
|
|
23690
|
+
return "entries." + error;
|
|
22367
23691
|
}
|
|
22368
23692
|
}
|
|
22369
|
-
if (message.before != null && message.hasOwnProperty("before"))
|
|
22370
|
-
switch (message.before) {
|
|
22371
|
-
default:
|
|
22372
|
-
return "before: enum value expected";
|
|
22373
|
-
case 0:
|
|
22374
|
-
case 1:
|
|
22375
|
-
case 2:
|
|
22376
|
-
case 3:
|
|
22377
|
-
break;
|
|
22378
|
-
}
|
|
22379
|
-
if (message.after != null && message.hasOwnProperty("after"))
|
|
22380
|
-
switch (message.after) {
|
|
22381
|
-
default:
|
|
22382
|
-
return "after: enum value expected";
|
|
22383
|
-
case 0:
|
|
22384
|
-
case 1:
|
|
22385
|
-
case 2:
|
|
22386
|
-
case 3:
|
|
22387
|
-
break;
|
|
22388
|
-
}
|
|
22389
23693
|
return null;
|
|
22390
23694
|
};
|
|
22391
|
-
|
|
22392
|
-
if (object instanceof $root.sesame.v1.
|
|
23695
|
+
SideDataSet.fromObject = function fromObject(object) {
|
|
23696
|
+
if (object instanceof $root.sesame.v1.sidedata.SideDataSet)
|
|
22393
23697
|
return object;
|
|
22394
|
-
let message = new $root.sesame.v1.
|
|
22395
|
-
if (object.
|
|
22396
|
-
if (
|
|
22397
|
-
throw TypeError(".sesame.v1.
|
|
22398
|
-
message.
|
|
22399
|
-
|
|
22400
|
-
|
|
22401
|
-
|
|
22402
|
-
|
|
22403
|
-
message.property = String(object.property);
|
|
22404
|
-
if (object.keyframes) {
|
|
22405
|
-
if (!Array.isArray(object.keyframes))
|
|
22406
|
-
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: array expected");
|
|
22407
|
-
message.keyframes = [];
|
|
22408
|
-
for (let i = 0; i < object.keyframes.length; ++i) {
|
|
22409
|
-
if (typeof object.keyframes[i] !== "object")
|
|
22410
|
-
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: object expected");
|
|
22411
|
-
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]);
|
|
22412
23707
|
}
|
|
22413
23708
|
}
|
|
22414
|
-
switch (object.before) {
|
|
22415
|
-
default:
|
|
22416
|
-
if (typeof object.before === "number") {
|
|
22417
|
-
message.before = object.before;
|
|
22418
|
-
break;
|
|
22419
|
-
}
|
|
22420
|
-
break;
|
|
22421
|
-
case "ANIM_MODE_CONSTANT":
|
|
22422
|
-
case 0:
|
|
22423
|
-
message.before = 0;
|
|
22424
|
-
break;
|
|
22425
|
-
case "ANIM_MODE_STATE_FROM":
|
|
22426
|
-
case 1:
|
|
22427
|
-
message.before = 1;
|
|
22428
|
-
break;
|
|
22429
|
-
case "ANIM_MODE_LOOP":
|
|
22430
|
-
case 2:
|
|
22431
|
-
message.before = 2;
|
|
22432
|
-
break;
|
|
22433
|
-
case "ANIM_MODE_BOUNCE":
|
|
22434
|
-
case 3:
|
|
22435
|
-
message.before = 3;
|
|
22436
|
-
break;
|
|
22437
|
-
}
|
|
22438
|
-
switch (object.after) {
|
|
22439
|
-
default:
|
|
22440
|
-
if (typeof object.after === "number") {
|
|
22441
|
-
message.after = object.after;
|
|
22442
|
-
break;
|
|
22443
|
-
}
|
|
22444
|
-
break;
|
|
22445
|
-
case "ANIM_MODE_CONSTANT":
|
|
22446
|
-
case 0:
|
|
22447
|
-
message.after = 0;
|
|
22448
|
-
break;
|
|
22449
|
-
case "ANIM_MODE_STATE_FROM":
|
|
22450
|
-
case 1:
|
|
22451
|
-
message.after = 1;
|
|
22452
|
-
break;
|
|
22453
|
-
case "ANIM_MODE_LOOP":
|
|
22454
|
-
case 2:
|
|
22455
|
-
message.after = 2;
|
|
22456
|
-
break;
|
|
22457
|
-
case "ANIM_MODE_BOUNCE":
|
|
22458
|
-
case 3:
|
|
22459
|
-
message.after = 3;
|
|
22460
|
-
break;
|
|
22461
|
-
}
|
|
22462
23709
|
return message;
|
|
22463
23710
|
};
|
|
22464
|
-
|
|
23711
|
+
SideDataSet.toObject = function toObject(message, options) {
|
|
22465
23712
|
if (!options)
|
|
22466
23713
|
options = {};
|
|
22467
23714
|
let object = {};
|
|
22468
23715
|
if (options.arrays || options.defaults)
|
|
22469
|
-
object.
|
|
22470
|
-
if (
|
|
22471
|
-
object.
|
|
22472
|
-
|
|
22473
|
-
|
|
22474
|
-
object.before = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
22475
|
-
object.after = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
22476
|
-
}
|
|
22477
|
-
if (message.domain != null && message.hasOwnProperty("domain"))
|
|
22478
|
-
object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
|
|
22479
|
-
if (message.address != null && message.hasOwnProperty("address"))
|
|
22480
|
-
object.address = message.address;
|
|
22481
|
-
if (message.property != null && message.hasOwnProperty("property"))
|
|
22482
|
-
object.property = message.property;
|
|
22483
|
-
if (message.keyframes && message.keyframes.length) {
|
|
22484
|
-
object.keyframes = [];
|
|
22485
|
-
for (let j = 0; j < message.keyframes.length; ++j)
|
|
22486
|
-
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);
|
|
22487
23721
|
}
|
|
22488
|
-
if (message.before != null && message.hasOwnProperty("before"))
|
|
22489
|
-
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;
|
|
22490
|
-
if (message.after != null && message.hasOwnProperty("after"))
|
|
22491
|
-
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;
|
|
22492
23722
|
return object;
|
|
22493
23723
|
};
|
|
22494
|
-
|
|
23724
|
+
SideDataSet.prototype.toJSON = function toJSON() {
|
|
22495
23725
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
22496
23726
|
};
|
|
22497
|
-
|
|
23727
|
+
SideDataSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22498
23728
|
if (typeUrlPrefix === void 0) {
|
|
22499
23729
|
typeUrlPrefix = "type.googleapis.com";
|
|
22500
23730
|
}
|
|
22501
|
-
return typeUrlPrefix + "/sesame.v1.
|
|
23731
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.SideDataSet";
|
|
22502
23732
|
};
|
|
22503
|
-
return
|
|
23733
|
+
return SideDataSet;
|
|
22504
23734
|
}();
|
|
22505
|
-
return
|
|
23735
|
+
return sidedata;
|
|
22506
23736
|
}();
|
|
22507
23737
|
v1.jobs = function() {
|
|
22508
23738
|
const jobs = {};
|
|
@@ -25432,6 +26662,9 @@ var sesame = $root.sesame = (() => {
|
|
|
25432
26662
|
case 4:
|
|
25433
26663
|
case 5:
|
|
25434
26664
|
case 6:
|
|
26665
|
+
case 7:
|
|
26666
|
+
case 8:
|
|
26667
|
+
case 9:
|
|
25435
26668
|
break;
|
|
25436
26669
|
}
|
|
25437
26670
|
return null;
|
|
@@ -25485,6 +26718,18 @@ var sesame = $root.sesame = (() => {
|
|
|
25485
26718
|
case 6:
|
|
25486
26719
|
message.dataType = 6;
|
|
25487
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;
|
|
25488
26733
|
}
|
|
25489
26734
|
return message;
|
|
25490
26735
|
};
|
|
@@ -26033,6 +27278,7 @@ var sesame = $root.sesame = (() => {
|
|
|
26033
27278
|
MediaFrameData.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
26034
27279
|
MediaFrameData.prototype.keyframe = false;
|
|
26035
27280
|
MediaFrameData.prototype.codecData = null;
|
|
27281
|
+
MediaFrameData.prototype.sideData = null;
|
|
26036
27282
|
MediaFrameData.create = function create(properties) {
|
|
26037
27283
|
return new MediaFrameData(properties);
|
|
26038
27284
|
};
|
|
@@ -26054,6 +27300,11 @@ var sesame = $root.sesame = (() => {
|
|
|
26054
27300
|
/* id 3, wireType 2 =*/
|
|
26055
27301
|
26
|
|
26056
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();
|
|
26057
27308
|
return writer;
|
|
26058
27309
|
};
|
|
26059
27310
|
MediaFrameData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -26080,6 +27331,10 @@ var sesame = $root.sesame = (() => {
|
|
|
26080
27331
|
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
26081
27332
|
break;
|
|
26082
27333
|
}
|
|
27334
|
+
case 4: {
|
|
27335
|
+
message.sideData = $root.sesame.v1.sidedata.SideDataSet.decode(reader, reader.uint32());
|
|
27336
|
+
break;
|
|
27337
|
+
}
|
|
26083
27338
|
default:
|
|
26084
27339
|
reader.skipType(tag & 7);
|
|
26085
27340
|
break;
|
|
@@ -26108,6 +27363,11 @@ var sesame = $root.sesame = (() => {
|
|
|
26108
27363
|
if (error)
|
|
26109
27364
|
return "codecData." + error;
|
|
26110
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
|
+
}
|
|
26111
27371
|
return null;
|
|
26112
27372
|
};
|
|
26113
27373
|
MediaFrameData.fromObject = function fromObject(object) {
|
|
@@ -26131,6 +27391,11 @@ var sesame = $root.sesame = (() => {
|
|
|
26131
27391
|
throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
|
|
26132
27392
|
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
26133
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
|
+
}
|
|
26134
27399
|
return message;
|
|
26135
27400
|
};
|
|
26136
27401
|
MediaFrameData.toObject = function toObject(message, options) {
|
|
@@ -26145,6 +27410,7 @@ var sesame = $root.sesame = (() => {
|
|
|
26145
27410
|
object.pts = options.longs === String ? "0" : 0;
|
|
26146
27411
|
object.keyframe = false;
|
|
26147
27412
|
object.codecData = null;
|
|
27413
|
+
object.sideData = null;
|
|
26148
27414
|
}
|
|
26149
27415
|
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
26150
27416
|
if (typeof message.pts === "number")
|
|
@@ -26155,6 +27421,8 @@ var sesame = $root.sesame = (() => {
|
|
|
26155
27421
|
object.keyframe = message.keyframe;
|
|
26156
27422
|
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
26157
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);
|
|
26158
27426
|
return object;
|
|
26159
27427
|
};
|
|
26160
27428
|
MediaFrameData.prototype.toJSON = function toJSON() {
|
|
@@ -26177,6 +27445,9 @@ var sesame = $root.sesame = (() => {
|
|
|
26177
27445
|
values[valuesById[4] = "DATA_TYPE_TRANSPORT_CONTROL"] = 4;
|
|
26178
27446
|
values[valuesById[5] = "DATA_TYPE_AUDIO_CONTROL"] = 5;
|
|
26179
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;
|
|
26180
27451
|
return values;
|
|
26181
27452
|
}();
|
|
26182
27453
|
wire.DataFrameData = function() {
|
|
@@ -26253,6 +27524,9 @@ var sesame = $root.sesame = (() => {
|
|
|
26253
27524
|
case 4:
|
|
26254
27525
|
case 5:
|
|
26255
27526
|
case 6:
|
|
27527
|
+
case 7:
|
|
27528
|
+
case 8:
|
|
27529
|
+
case 9:
|
|
26256
27530
|
break;
|
|
26257
27531
|
}
|
|
26258
27532
|
if (message.trackName != null && message.hasOwnProperty("trackName")) {
|
|
@@ -26300,6 +27574,18 @@ var sesame = $root.sesame = (() => {
|
|
|
26300
27574
|
case 6:
|
|
26301
27575
|
message.dataType = 6;
|
|
26302
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;
|
|
26303
27589
|
}
|
|
26304
27590
|
if (object.trackName != null)
|
|
26305
27591
|
message.trackName = String(object.trackName);
|
|
@@ -26636,6 +27922,32 @@ var CommandList = class {
|
|
|
26636
27922
|
item.clearCompositor = { id };
|
|
26637
27923
|
return this.add(item, timeOffsetMs);
|
|
26638
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
|
+
}
|
|
26639
27951
|
sourceAdd(id, cfg, timeOffsetMs) {
|
|
26640
27952
|
let item = new sesame.v1.commands.CommandListItem();
|
|
26641
27953
|
item.addSource = { id, config: cfg };
|
|
@@ -26812,6 +28124,15 @@ var CommandList = class {
|
|
|
26812
28124
|
item.removeOutput = { id };
|
|
26813
28125
|
return this.add(item, timeOffsetMs);
|
|
26814
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
|
+
}
|
|
26815
28136
|
encoderAdd(id, cfg, timeOffsetMs) {
|
|
26816
28137
|
let item = new sesame.v1.commands.CommandListItem();
|
|
26817
28138
|
item.addEncoder = { id, ...cfg };
|
|
@@ -26925,6 +28246,7 @@ var DataType = sesame.v1.wire.DataType;
|
|
|
26925
28246
|
var FrameHeader = sesame.v1.wire.FrameHeader;
|
|
26926
28247
|
var MediaCodecData = sesame.v1.wire.MediaCodecData;
|
|
26927
28248
|
var CodecType = sesame.v1.common.CodecType;
|
|
28249
|
+
var SideData = sesame.v1.sidedata.SideData;
|
|
26928
28250
|
function parseDataFrame(frame) {
|
|
26929
28251
|
if (!frame.valid || !frame.header || !frame.payload) return null;
|
|
26930
28252
|
if (frame.header.type !== sesame.v1.wire.FrameType.FRAME_TYPE_DATA) return null;
|
|
@@ -26971,6 +28293,29 @@ function parseDataFrame(frame) {
|
|
|
26971
28293
|
return null;
|
|
26972
28294
|
}
|
|
26973
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
|
+
};
|
|
26974
28319
|
function buildAudioControlFrame(trackName, request) {
|
|
26975
28320
|
const payload = sesame.v1.audio.AudioControlRequest.encode(request).finish();
|
|
26976
28321
|
return WireProtocol.serialize(
|
|
@@ -27694,12 +29039,15 @@ var Event = sesame.v1.rpc.Event;
|
|
|
27694
29039
|
Response,
|
|
27695
29040
|
SesameClient,
|
|
27696
29041
|
SesameConnection,
|
|
29042
|
+
SideData,
|
|
29043
|
+
SideDataTracker,
|
|
27697
29044
|
StatusApi,
|
|
27698
29045
|
WireProtocol,
|
|
27699
29046
|
buildAudioControlFrame,
|
|
27700
29047
|
buildBinaryDataFrame,
|
|
27701
29048
|
buildTransportControlFrame,
|
|
27702
29049
|
getLogger,
|
|
29050
|
+
getSideData,
|
|
27703
29051
|
log,
|
|
27704
29052
|
parseDataFrame,
|
|
27705
29053
|
sesame,
|