@stinkycomputing/sesame-api-client 1.5.5 → 1.5.6
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 +9 -5
- package/dist/command-list.d.ts.map +1 -1
- package/dist/index.browser.mjs +936 -198
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +936 -198
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +936 -198
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +489 -17
- package/dist/proto/api.js +2486 -1226
- package/package.json +1 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -3911,11 +3911,14 @@ var sesame = $root.sesame = (() => {
|
|
|
3911
3911
|
CommandListItem.prototype.callback = null;
|
|
3912
3912
|
CommandListItem.prototype.setSourceMetadata = null;
|
|
3913
3913
|
CommandListItem.prototype.setMetadataBindings = null;
|
|
3914
|
+
CommandListItem.prototype.addEncoder = null;
|
|
3915
|
+
CommandListItem.prototype.updateEncoder = null;
|
|
3916
|
+
CommandListItem.prototype.removeEncoder = null;
|
|
3914
3917
|
CommandListItem.prototype.transactionId = null;
|
|
3915
3918
|
CommandListItem.prototype.transactionDeps = $util.emptyArray;
|
|
3916
3919
|
let $oneOfFields;
|
|
3917
3920
|
Object.defineProperty(CommandListItem.prototype, "item", {
|
|
3918
|
-
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"]),
|
|
3921
|
+
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"]),
|
|
3919
3922
|
set: $util.oneOfSetter($oneOfFields)
|
|
3920
3923
|
});
|
|
3921
3924
|
Object.defineProperty(CommandListItem.prototype, "_transactionId", {
|
|
@@ -4067,6 +4070,21 @@ var sesame = $root.sesame = (() => {
|
|
|
4067
4070
|
/* id 27, wireType 2 =*/
|
|
4068
4071
|
218
|
|
4069
4072
|
).fork()).ldelim();
|
|
4073
|
+
if (message.addEncoder != null && Object.hasOwnProperty.call(message, "addEncoder"))
|
|
4074
|
+
$root.sesame.v1.outputs.EncoderAddRequest.encode(message.addEncoder, writer.uint32(
|
|
4075
|
+
/* id 28, wireType 2 =*/
|
|
4076
|
+
226
|
|
4077
|
+
).fork()).ldelim();
|
|
4078
|
+
if (message.updateEncoder != null && Object.hasOwnProperty.call(message, "updateEncoder"))
|
|
4079
|
+
$root.sesame.v1.outputs.EncoderUpdateRequest.encode(message.updateEncoder, writer.uint32(
|
|
4080
|
+
/* id 29, wireType 2 =*/
|
|
4081
|
+
234
|
|
4082
|
+
).fork()).ldelim();
|
|
4083
|
+
if (message.removeEncoder != null && Object.hasOwnProperty.call(message, "removeEncoder"))
|
|
4084
|
+
$root.sesame.v1.outputs.EncoderRemoveRequest.encode(message.removeEncoder, writer.uint32(
|
|
4085
|
+
/* id 30, wireType 2 =*/
|
|
4086
|
+
242
|
|
4087
|
+
).fork()).ldelim();
|
|
4070
4088
|
return writer;
|
|
4071
4089
|
};
|
|
4072
4090
|
CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -4181,6 +4199,18 @@ var sesame = $root.sesame = (() => {
|
|
|
4181
4199
|
message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.decode(reader, reader.uint32());
|
|
4182
4200
|
break;
|
|
4183
4201
|
}
|
|
4202
|
+
case 28: {
|
|
4203
|
+
message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.decode(reader, reader.uint32());
|
|
4204
|
+
break;
|
|
4205
|
+
}
|
|
4206
|
+
case 29: {
|
|
4207
|
+
message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.decode(reader, reader.uint32());
|
|
4208
|
+
break;
|
|
4209
|
+
}
|
|
4210
|
+
case 30: {
|
|
4211
|
+
message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.decode(reader, reader.uint32());
|
|
4212
|
+
break;
|
|
4213
|
+
}
|
|
4184
4214
|
case 25: {
|
|
4185
4215
|
message.transactionId = reader.uint32();
|
|
4186
4216
|
break;
|
|
@@ -4454,6 +4484,36 @@ var sesame = $root.sesame = (() => {
|
|
|
4454
4484
|
return "setMetadataBindings." + error;
|
|
4455
4485
|
}
|
|
4456
4486
|
}
|
|
4487
|
+
if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
|
|
4488
|
+
if (properties.item === 1)
|
|
4489
|
+
return "item: multiple values";
|
|
4490
|
+
properties.item = 1;
|
|
4491
|
+
{
|
|
4492
|
+
let error = $root.sesame.v1.outputs.EncoderAddRequest.verify(message.addEncoder);
|
|
4493
|
+
if (error)
|
|
4494
|
+
return "addEncoder." + error;
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
|
|
4498
|
+
if (properties.item === 1)
|
|
4499
|
+
return "item: multiple values";
|
|
4500
|
+
properties.item = 1;
|
|
4501
|
+
{
|
|
4502
|
+
let error = $root.sesame.v1.outputs.EncoderUpdateRequest.verify(message.updateEncoder);
|
|
4503
|
+
if (error)
|
|
4504
|
+
return "updateEncoder." + error;
|
|
4505
|
+
}
|
|
4506
|
+
}
|
|
4507
|
+
if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
|
|
4508
|
+
if (properties.item === 1)
|
|
4509
|
+
return "item: multiple values";
|
|
4510
|
+
properties.item = 1;
|
|
4511
|
+
{
|
|
4512
|
+
let error = $root.sesame.v1.outputs.EncoderRemoveRequest.verify(message.removeEncoder);
|
|
4513
|
+
if (error)
|
|
4514
|
+
return "removeEncoder." + error;
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
4457
4517
|
if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
|
|
4458
4518
|
properties._transactionId = 1;
|
|
4459
4519
|
if (!$util.isInteger(message.transactionId))
|
|
@@ -4602,6 +4662,21 @@ var sesame = $root.sesame = (() => {
|
|
|
4602
4662
|
throw TypeError(".sesame.v1.commands.CommandListItem.setMetadataBindings: object expected");
|
|
4603
4663
|
message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.fromObject(object.setMetadataBindings);
|
|
4604
4664
|
}
|
|
4665
|
+
if (object.addEncoder != null) {
|
|
4666
|
+
if (typeof object.addEncoder !== "object")
|
|
4667
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.addEncoder: object expected");
|
|
4668
|
+
message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.fromObject(object.addEncoder);
|
|
4669
|
+
}
|
|
4670
|
+
if (object.updateEncoder != null) {
|
|
4671
|
+
if (typeof object.updateEncoder !== "object")
|
|
4672
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.updateEncoder: object expected");
|
|
4673
|
+
message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.fromObject(object.updateEncoder);
|
|
4674
|
+
}
|
|
4675
|
+
if (object.removeEncoder != null) {
|
|
4676
|
+
if (typeof object.removeEncoder !== "object")
|
|
4677
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.removeEncoder: object expected");
|
|
4678
|
+
message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.fromObject(object.removeEncoder);
|
|
4679
|
+
}
|
|
4605
4680
|
if (object.transactionId != null)
|
|
4606
4681
|
message.transactionId = object.transactionId >>> 0;
|
|
4607
4682
|
if (object.transactionDeps) {
|
|
@@ -4760,6 +4835,21 @@ var sesame = $root.sesame = (() => {
|
|
|
4760
4835
|
if (options.oneofs)
|
|
4761
4836
|
object.item = "setMetadataBindings";
|
|
4762
4837
|
}
|
|
4838
|
+
if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
|
|
4839
|
+
object.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.toObject(message.addEncoder, options);
|
|
4840
|
+
if (options.oneofs)
|
|
4841
|
+
object.item = "addEncoder";
|
|
4842
|
+
}
|
|
4843
|
+
if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
|
|
4844
|
+
object.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.toObject(message.updateEncoder, options);
|
|
4845
|
+
if (options.oneofs)
|
|
4846
|
+
object.item = "updateEncoder";
|
|
4847
|
+
}
|
|
4848
|
+
if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
|
|
4849
|
+
object.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.toObject(message.removeEncoder, options);
|
|
4850
|
+
if (options.oneofs)
|
|
4851
|
+
object.item = "removeEncoder";
|
|
4852
|
+
}
|
|
4763
4853
|
return object;
|
|
4764
4854
|
};
|
|
4765
4855
|
CommandListItem.prototype.toJSON = function toJSON() {
|
|
@@ -15306,6 +15396,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15306
15396
|
this.audioMixes = [];
|
|
15307
15397
|
this.outputs = [];
|
|
15308
15398
|
this.recorders = [];
|
|
15399
|
+
this.encoders = [];
|
|
15309
15400
|
if (properties) {
|
|
15310
15401
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15311
15402
|
if (properties[keys[i]] != null)
|
|
@@ -15320,6 +15411,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15320
15411
|
Status.prototype.audioMixes = $util.emptyArray;
|
|
15321
15412
|
Status.prototype.outputs = $util.emptyArray;
|
|
15322
15413
|
Status.prototype.recorders = $util.emptyArray;
|
|
15414
|
+
Status.prototype.encoders = $util.emptyArray;
|
|
15323
15415
|
Status.create = function create(properties) {
|
|
15324
15416
|
return new Status(properties);
|
|
15325
15417
|
};
|
|
@@ -15371,6 +15463,12 @@ var sesame = $root.sesame = (() => {
|
|
|
15371
15463
|
/* id 8, wireType 2 =*/
|
|
15372
15464
|
66
|
|
15373
15465
|
).fork()).ldelim();
|
|
15466
|
+
if (message.encoders != null && message.encoders.length)
|
|
15467
|
+
for (let i = 0; i < message.encoders.length; ++i)
|
|
15468
|
+
$root.sesame.v1.outputs.EncoderStatus.encode(message.encoders[i], writer.uint32(
|
|
15469
|
+
/* id 9, wireType 2 =*/
|
|
15470
|
+
74
|
|
15471
|
+
).fork()).ldelim();
|
|
15374
15472
|
return writer;
|
|
15375
15473
|
};
|
|
15376
15474
|
Status.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -15427,6 +15525,12 @@ var sesame = $root.sesame = (() => {
|
|
|
15427
15525
|
message.recorders.push($root.sesame.v1.recorder.RecorderStatus.decode(reader, reader.uint32()));
|
|
15428
15526
|
break;
|
|
15429
15527
|
}
|
|
15528
|
+
case 9: {
|
|
15529
|
+
if (!(message.encoders && message.encoders.length))
|
|
15530
|
+
message.encoders = [];
|
|
15531
|
+
message.encoders.push($root.sesame.v1.outputs.EncoderStatus.decode(reader, reader.uint32()));
|
|
15532
|
+
break;
|
|
15533
|
+
}
|
|
15430
15534
|
default:
|
|
15431
15535
|
reader.skipType(tag & 7);
|
|
15432
15536
|
break;
|
|
@@ -15502,6 +15606,15 @@ var sesame = $root.sesame = (() => {
|
|
|
15502
15606
|
return "recorders." + error;
|
|
15503
15607
|
}
|
|
15504
15608
|
}
|
|
15609
|
+
if (message.encoders != null && message.hasOwnProperty("encoders")) {
|
|
15610
|
+
if (!Array.isArray(message.encoders))
|
|
15611
|
+
return "encoders: array expected";
|
|
15612
|
+
for (let i = 0; i < message.encoders.length; ++i) {
|
|
15613
|
+
let error = $root.sesame.v1.outputs.EncoderStatus.verify(message.encoders[i]);
|
|
15614
|
+
if (error)
|
|
15615
|
+
return "encoders." + error;
|
|
15616
|
+
}
|
|
15617
|
+
}
|
|
15505
15618
|
return null;
|
|
15506
15619
|
};
|
|
15507
15620
|
Status.fromObject = function fromObject(object) {
|
|
@@ -15573,6 +15686,16 @@ var sesame = $root.sesame = (() => {
|
|
|
15573
15686
|
message.recorders[i] = $root.sesame.v1.recorder.RecorderStatus.fromObject(object.recorders[i]);
|
|
15574
15687
|
}
|
|
15575
15688
|
}
|
|
15689
|
+
if (object.encoders) {
|
|
15690
|
+
if (!Array.isArray(object.encoders))
|
|
15691
|
+
throw TypeError(".sesame.v1.status.Status.encoders: array expected");
|
|
15692
|
+
message.encoders = [];
|
|
15693
|
+
for (let i = 0; i < object.encoders.length; ++i) {
|
|
15694
|
+
if (typeof object.encoders[i] !== "object")
|
|
15695
|
+
throw TypeError(".sesame.v1.status.Status.encoders: object expected");
|
|
15696
|
+
message.encoders[i] = $root.sesame.v1.outputs.EncoderStatus.fromObject(object.encoders[i]);
|
|
15697
|
+
}
|
|
15698
|
+
}
|
|
15576
15699
|
return message;
|
|
15577
15700
|
};
|
|
15578
15701
|
Status.toObject = function toObject(message, options) {
|
|
@@ -15585,6 +15708,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15585
15708
|
object.audioMixes = [];
|
|
15586
15709
|
object.outputs = [];
|
|
15587
15710
|
object.recorders = [];
|
|
15711
|
+
object.encoders = [];
|
|
15588
15712
|
}
|
|
15589
15713
|
if (options.defaults) {
|
|
15590
15714
|
object.systemStatus = null;
|
|
@@ -15622,6 +15746,11 @@ var sesame = $root.sesame = (() => {
|
|
|
15622
15746
|
for (let j = 0; j < message.recorders.length; ++j)
|
|
15623
15747
|
object.recorders[j] = $root.sesame.v1.recorder.RecorderStatus.toObject(message.recorders[j], options);
|
|
15624
15748
|
}
|
|
15749
|
+
if (message.encoders && message.encoders.length) {
|
|
15750
|
+
object.encoders = [];
|
|
15751
|
+
for (let j = 0; j < message.encoders.length; ++j)
|
|
15752
|
+
object.encoders[j] = $root.sesame.v1.outputs.EncoderStatus.toObject(message.encoders[j], options);
|
|
15753
|
+
}
|
|
15625
15754
|
return object;
|
|
15626
15755
|
};
|
|
15627
15756
|
Status.prototype.toJSON = function toJSON() {
|
|
@@ -16929,6 +17058,12 @@ var sesame = $root.sesame = (() => {
|
|
|
16929
17058
|
values[valuesById[7] = "OUTPUT_TYPE_ENCODED_SUPER_SLOWMO_RECORDER"] = 7;
|
|
16930
17059
|
return values;
|
|
16931
17060
|
}();
|
|
17061
|
+
outputs.EncoderType = function() {
|
|
17062
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17063
|
+
values[valuesById[0] = "ENCODER_TYPE_UNSPECIFIED"] = 0;
|
|
17064
|
+
values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
|
|
17065
|
+
return values;
|
|
17066
|
+
}();
|
|
16932
17067
|
outputs.EncoderPreset = function() {
|
|
16933
17068
|
const valuesById = {}, values = Object.create(valuesById);
|
|
16934
17069
|
values[valuesById[0] = "ENCODER_PRESET_UNSPECIFIED"] = 0;
|
|
@@ -17243,62 +17378,62 @@ var sesame = $root.sesame = (() => {
|
|
|
17243
17378
|
};
|
|
17244
17379
|
return EncoderConfig;
|
|
17245
17380
|
}();
|
|
17246
|
-
outputs.
|
|
17247
|
-
function
|
|
17381
|
+
outputs.EncoderAddRequest = function() {
|
|
17382
|
+
function EncoderAddRequest(properties) {
|
|
17248
17383
|
if (properties) {
|
|
17249
17384
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17250
17385
|
if (properties[keys[i]] != null)
|
|
17251
17386
|
this[keys[i]] = properties[keys[i]];
|
|
17252
17387
|
}
|
|
17253
17388
|
}
|
|
17254
|
-
|
|
17255
|
-
|
|
17256
|
-
|
|
17257
|
-
|
|
17258
|
-
return new
|
|
17389
|
+
EncoderAddRequest.prototype.id = "";
|
|
17390
|
+
EncoderAddRequest.prototype.compositionId = "";
|
|
17391
|
+
EncoderAddRequest.prototype.encoder = null;
|
|
17392
|
+
EncoderAddRequest.create = function create(properties) {
|
|
17393
|
+
return new EncoderAddRequest(properties);
|
|
17259
17394
|
};
|
|
17260
|
-
|
|
17395
|
+
EncoderAddRequest.encode = function encode(message, writer) {
|
|
17261
17396
|
if (!writer)
|
|
17262
17397
|
writer = $Writer.create();
|
|
17263
|
-
if (message.
|
|
17264
|
-
writer.uint32(
|
|
17265
|
-
/* id 1, wireType 0 =*/
|
|
17266
|
-
8
|
|
17267
|
-
).uint32(message.deviceIndex);
|
|
17268
|
-
if (message.videoFormat != null && Object.hasOwnProperty.call(message, "videoFormat"))
|
|
17398
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
17269
17399
|
writer.uint32(
|
|
17270
|
-
/* id
|
|
17271
|
-
|
|
17272
|
-
).
|
|
17273
|
-
if (message.
|
|
17400
|
+
/* id 1, wireType 2 =*/
|
|
17401
|
+
10
|
|
17402
|
+
).string(message.id);
|
|
17403
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
17274
17404
|
writer.uint32(
|
|
17275
|
-
/* id
|
|
17276
|
-
|
|
17277
|
-
).
|
|
17405
|
+
/* id 2, wireType 2 =*/
|
|
17406
|
+
18
|
|
17407
|
+
).string(message.compositionId);
|
|
17408
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
17409
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
17410
|
+
/* id 3, wireType 2 =*/
|
|
17411
|
+
26
|
|
17412
|
+
).fork()).ldelim();
|
|
17278
17413
|
return writer;
|
|
17279
17414
|
};
|
|
17280
|
-
|
|
17415
|
+
EncoderAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17281
17416
|
return this.encode(message, writer).ldelim();
|
|
17282
17417
|
};
|
|
17283
|
-
|
|
17418
|
+
EncoderAddRequest.decode = function decode(reader, length, error) {
|
|
17284
17419
|
if (!(reader instanceof $Reader))
|
|
17285
17420
|
reader = $Reader.create(reader);
|
|
17286
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.
|
|
17421
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderAddRequest();
|
|
17287
17422
|
while (reader.pos < end) {
|
|
17288
17423
|
let tag = reader.uint32();
|
|
17289
17424
|
if (tag === error)
|
|
17290
17425
|
break;
|
|
17291
17426
|
switch (tag >>> 3) {
|
|
17292
17427
|
case 1: {
|
|
17293
|
-
message.
|
|
17428
|
+
message.id = reader.string();
|
|
17294
17429
|
break;
|
|
17295
17430
|
}
|
|
17296
17431
|
case 2: {
|
|
17297
|
-
message.
|
|
17432
|
+
message.compositionId = reader.string();
|
|
17298
17433
|
break;
|
|
17299
17434
|
}
|
|
17300
17435
|
case 3: {
|
|
17301
|
-
message.
|
|
17436
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
17302
17437
|
break;
|
|
17303
17438
|
}
|
|
17304
17439
|
default:
|
|
@@ -17308,161 +17443,128 @@ var sesame = $root.sesame = (() => {
|
|
|
17308
17443
|
}
|
|
17309
17444
|
return message;
|
|
17310
17445
|
};
|
|
17311
|
-
|
|
17446
|
+
EncoderAddRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
17312
17447
|
if (!(reader instanceof $Reader))
|
|
17313
17448
|
reader = new $Reader(reader);
|
|
17314
17449
|
return this.decode(reader, reader.uint32());
|
|
17315
17450
|
};
|
|
17316
|
-
|
|
17451
|
+
EncoderAddRequest.verify = function verify(message) {
|
|
17317
17452
|
if (typeof message !== "object" || message === null)
|
|
17318
17453
|
return "object expected";
|
|
17319
|
-
if (message.
|
|
17320
|
-
if (!$util.
|
|
17321
|
-
return "
|
|
17454
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
17455
|
+
if (!$util.isString(message.id))
|
|
17456
|
+
return "id: string expected";
|
|
17322
17457
|
}
|
|
17323
|
-
if (message.
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
case 4:
|
|
17332
|
-
break;
|
|
17333
|
-
}
|
|
17334
|
-
if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill")) {
|
|
17335
|
-
if (typeof message.keyAndFill !== "boolean")
|
|
17336
|
-
return "keyAndFill: boolean expected";
|
|
17458
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
17459
|
+
if (!$util.isString(message.compositionId))
|
|
17460
|
+
return "compositionId: string expected";
|
|
17461
|
+
}
|
|
17462
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
17463
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
17464
|
+
if (error)
|
|
17465
|
+
return "encoder." + error;
|
|
17337
17466
|
}
|
|
17338
17467
|
return null;
|
|
17339
17468
|
};
|
|
17340
|
-
|
|
17341
|
-
if (object instanceof $root.sesame.v1.outputs.
|
|
17469
|
+
EncoderAddRequest.fromObject = function fromObject(object) {
|
|
17470
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderAddRequest)
|
|
17342
17471
|
return object;
|
|
17343
|
-
let message = new $root.sesame.v1.outputs.
|
|
17344
|
-
if (object.
|
|
17345
|
-
message.
|
|
17346
|
-
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
|
|
17350
|
-
|
|
17351
|
-
|
|
17352
|
-
break;
|
|
17353
|
-
case "VIDEO_FORMAT_UNSPECIFIED":
|
|
17354
|
-
case 0:
|
|
17355
|
-
message.videoFormat = 0;
|
|
17356
|
-
break;
|
|
17357
|
-
case "VIDEO_FORMAT_1080_50I":
|
|
17358
|
-
case 1:
|
|
17359
|
-
message.videoFormat = 1;
|
|
17360
|
-
break;
|
|
17361
|
-
case "VIDEO_FORMAT_1080_50P":
|
|
17362
|
-
case 2:
|
|
17363
|
-
message.videoFormat = 2;
|
|
17364
|
-
break;
|
|
17365
|
-
case "VIDEO_FORMAT_1080_60I":
|
|
17366
|
-
case 3:
|
|
17367
|
-
message.videoFormat = 3;
|
|
17368
|
-
break;
|
|
17369
|
-
case "VIDEO_FORMAT_1080_60P":
|
|
17370
|
-
case 4:
|
|
17371
|
-
message.videoFormat = 4;
|
|
17372
|
-
break;
|
|
17472
|
+
let message = new $root.sesame.v1.outputs.EncoderAddRequest();
|
|
17473
|
+
if (object.id != null)
|
|
17474
|
+
message.id = String(object.id);
|
|
17475
|
+
if (object.compositionId != null)
|
|
17476
|
+
message.compositionId = String(object.compositionId);
|
|
17477
|
+
if (object.encoder != null) {
|
|
17478
|
+
if (typeof object.encoder !== "object")
|
|
17479
|
+
throw TypeError(".sesame.v1.outputs.EncoderAddRequest.encoder: object expected");
|
|
17480
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
17373
17481
|
}
|
|
17374
|
-
if (object.keyAndFill != null)
|
|
17375
|
-
message.keyAndFill = Boolean(object.keyAndFill);
|
|
17376
17482
|
return message;
|
|
17377
17483
|
};
|
|
17378
|
-
|
|
17484
|
+
EncoderAddRequest.toObject = function toObject(message, options) {
|
|
17379
17485
|
if (!options)
|
|
17380
17486
|
options = {};
|
|
17381
17487
|
let object = {};
|
|
17382
17488
|
if (options.defaults) {
|
|
17383
|
-
object.
|
|
17384
|
-
object.
|
|
17385
|
-
object.
|
|
17489
|
+
object.id = "";
|
|
17490
|
+
object.compositionId = "";
|
|
17491
|
+
object.encoder = null;
|
|
17386
17492
|
}
|
|
17387
|
-
if (message.
|
|
17388
|
-
object.
|
|
17389
|
-
if (message.
|
|
17390
|
-
object.
|
|
17391
|
-
if (message.
|
|
17392
|
-
object.
|
|
17493
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
17494
|
+
object.id = message.id;
|
|
17495
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
17496
|
+
object.compositionId = message.compositionId;
|
|
17497
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
17498
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
17393
17499
|
return object;
|
|
17394
17500
|
};
|
|
17395
|
-
|
|
17501
|
+
EncoderAddRequest.prototype.toJSON = function toJSON() {
|
|
17396
17502
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17397
17503
|
};
|
|
17398
|
-
|
|
17504
|
+
EncoderAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17399
17505
|
if (typeUrlPrefix === void 0) {
|
|
17400
17506
|
typeUrlPrefix = "type.googleapis.com";
|
|
17401
17507
|
}
|
|
17402
|
-
return typeUrlPrefix + "/sesame.v1.outputs.
|
|
17508
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderAddRequest";
|
|
17403
17509
|
};
|
|
17404
|
-
return
|
|
17510
|
+
return EncoderAddRequest;
|
|
17405
17511
|
}();
|
|
17406
|
-
outputs.
|
|
17407
|
-
function
|
|
17408
|
-
this.metadataTracks = [];
|
|
17512
|
+
outputs.EncoderUpdateRequest = function() {
|
|
17513
|
+
function EncoderUpdateRequest(properties) {
|
|
17409
17514
|
if (properties) {
|
|
17410
17515
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17411
17516
|
if (properties[keys[i]] != null)
|
|
17412
17517
|
this[keys[i]] = properties[keys[i]];
|
|
17413
17518
|
}
|
|
17414
17519
|
}
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
return new
|
|
17520
|
+
EncoderUpdateRequest.prototype.id = "";
|
|
17521
|
+
EncoderUpdateRequest.prototype.compositionId = "";
|
|
17522
|
+
EncoderUpdateRequest.prototype.encoder = null;
|
|
17523
|
+
EncoderUpdateRequest.create = function create(properties) {
|
|
17524
|
+
return new EncoderUpdateRequest(properties);
|
|
17420
17525
|
};
|
|
17421
|
-
|
|
17526
|
+
EncoderUpdateRequest.encode = function encode(message, writer) {
|
|
17422
17527
|
if (!writer)
|
|
17423
17528
|
writer = $Writer.create();
|
|
17424
|
-
if (message.
|
|
17529
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
17425
17530
|
writer.uint32(
|
|
17426
17531
|
/* id 1, wireType 2 =*/
|
|
17427
17532
|
10
|
|
17428
|
-
).string(message.
|
|
17429
|
-
if (message.
|
|
17430
|
-
|
|
17533
|
+
).string(message.id);
|
|
17534
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
17535
|
+
writer.uint32(
|
|
17431
17536
|
/* id 2, wireType 2 =*/
|
|
17432
17537
|
18
|
|
17538
|
+
).string(message.compositionId);
|
|
17539
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
17540
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
17541
|
+
/* id 3, wireType 2 =*/
|
|
17542
|
+
26
|
|
17433
17543
|
).fork()).ldelim();
|
|
17434
|
-
if (message.metadataTracks != null && message.metadataTracks.length)
|
|
17435
|
-
for (let i = 0; i < message.metadataTracks.length; ++i)
|
|
17436
|
-
writer.uint32(
|
|
17437
|
-
/* id 3, wireType 2 =*/
|
|
17438
|
-
26
|
|
17439
|
-
).string(message.metadataTracks[i]);
|
|
17440
17544
|
return writer;
|
|
17441
17545
|
};
|
|
17442
|
-
|
|
17546
|
+
EncoderUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17443
17547
|
return this.encode(message, writer).ldelim();
|
|
17444
17548
|
};
|
|
17445
|
-
|
|
17549
|
+
EncoderUpdateRequest.decode = function decode(reader, length, error) {
|
|
17446
17550
|
if (!(reader instanceof $Reader))
|
|
17447
17551
|
reader = $Reader.create(reader);
|
|
17448
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.
|
|
17552
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
|
|
17449
17553
|
while (reader.pos < end) {
|
|
17450
17554
|
let tag = reader.uint32();
|
|
17451
17555
|
if (tag === error)
|
|
17452
17556
|
break;
|
|
17453
17557
|
switch (tag >>> 3) {
|
|
17454
17558
|
case 1: {
|
|
17455
|
-
message.
|
|
17559
|
+
message.id = reader.string();
|
|
17456
17560
|
break;
|
|
17457
17561
|
}
|
|
17458
17562
|
case 2: {
|
|
17459
|
-
message.
|
|
17563
|
+
message.compositionId = reader.string();
|
|
17460
17564
|
break;
|
|
17461
17565
|
}
|
|
17462
17566
|
case 3: {
|
|
17463
|
-
|
|
17464
|
-
message.metadataTracks = [];
|
|
17465
|
-
message.metadataTracks.push(reader.string());
|
|
17567
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
17466
17568
|
break;
|
|
17467
17569
|
}
|
|
17468
17570
|
default:
|
|
@@ -17472,43 +17574,422 @@ var sesame = $root.sesame = (() => {
|
|
|
17472
17574
|
}
|
|
17473
17575
|
return message;
|
|
17474
17576
|
};
|
|
17475
|
-
|
|
17577
|
+
EncoderUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
17476
17578
|
if (!(reader instanceof $Reader))
|
|
17477
17579
|
reader = new $Reader(reader);
|
|
17478
17580
|
return this.decode(reader, reader.uint32());
|
|
17479
17581
|
};
|
|
17480
|
-
|
|
17582
|
+
EncoderUpdateRequest.verify = function verify(message) {
|
|
17481
17583
|
if (typeof message !== "object" || message === null)
|
|
17482
17584
|
return "object expected";
|
|
17483
|
-
if (message.
|
|
17484
|
-
if (!$util.isString(message.
|
|
17485
|
-
return "
|
|
17585
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
17586
|
+
if (!$util.isString(message.id))
|
|
17587
|
+
return "id: string expected";
|
|
17588
|
+
}
|
|
17589
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
17590
|
+
if (!$util.isString(message.compositionId))
|
|
17591
|
+
return "compositionId: string expected";
|
|
17486
17592
|
}
|
|
17487
17593
|
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
17488
17594
|
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
17489
17595
|
if (error)
|
|
17490
17596
|
return "encoder." + error;
|
|
17491
17597
|
}
|
|
17492
|
-
if (message.metadataTracks != null && message.hasOwnProperty("metadataTracks")) {
|
|
17493
|
-
if (!Array.isArray(message.metadataTracks))
|
|
17494
|
-
return "metadataTracks: array expected";
|
|
17495
|
-
for (let i = 0; i < message.metadataTracks.length; ++i)
|
|
17496
|
-
if (!$util.isString(message.metadataTracks[i]))
|
|
17497
|
-
return "metadataTracks: string[] expected";
|
|
17498
|
-
}
|
|
17499
17598
|
return null;
|
|
17500
17599
|
};
|
|
17501
|
-
|
|
17502
|
-
if (object instanceof $root.sesame.v1.outputs.
|
|
17600
|
+
EncoderUpdateRequest.fromObject = function fromObject(object) {
|
|
17601
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderUpdateRequest)
|
|
17503
17602
|
return object;
|
|
17504
|
-
let message = new $root.sesame.v1.outputs.
|
|
17505
|
-
if (object.
|
|
17506
|
-
message.
|
|
17507
|
-
if (object.
|
|
17508
|
-
|
|
17509
|
-
|
|
17510
|
-
|
|
17603
|
+
let message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
|
|
17604
|
+
if (object.id != null)
|
|
17605
|
+
message.id = String(object.id);
|
|
17606
|
+
if (object.compositionId != null)
|
|
17607
|
+
message.compositionId = String(object.compositionId);
|
|
17608
|
+
if (object.encoder != null) {
|
|
17609
|
+
if (typeof object.encoder !== "object")
|
|
17610
|
+
throw TypeError(".sesame.v1.outputs.EncoderUpdateRequest.encoder: object expected");
|
|
17611
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
17612
|
+
}
|
|
17613
|
+
return message;
|
|
17614
|
+
};
|
|
17615
|
+
EncoderUpdateRequest.toObject = function toObject(message, options) {
|
|
17616
|
+
if (!options)
|
|
17617
|
+
options = {};
|
|
17618
|
+
let object = {};
|
|
17619
|
+
if (options.defaults) {
|
|
17620
|
+
object.id = "";
|
|
17621
|
+
object.compositionId = "";
|
|
17622
|
+
object.encoder = null;
|
|
17623
|
+
}
|
|
17624
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
17625
|
+
object.id = message.id;
|
|
17626
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
17627
|
+
object.compositionId = message.compositionId;
|
|
17628
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
17629
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
17630
|
+
return object;
|
|
17631
|
+
};
|
|
17632
|
+
EncoderUpdateRequest.prototype.toJSON = function toJSON() {
|
|
17633
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17634
|
+
};
|
|
17635
|
+
EncoderUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17636
|
+
if (typeUrlPrefix === void 0) {
|
|
17637
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17638
|
+
}
|
|
17639
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderUpdateRequest";
|
|
17640
|
+
};
|
|
17641
|
+
return EncoderUpdateRequest;
|
|
17642
|
+
}();
|
|
17643
|
+
outputs.EncoderRemoveRequest = function() {
|
|
17644
|
+
function EncoderRemoveRequest(properties) {
|
|
17645
|
+
if (properties) {
|
|
17646
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17647
|
+
if (properties[keys[i]] != null)
|
|
17648
|
+
this[keys[i]] = properties[keys[i]];
|
|
17649
|
+
}
|
|
17650
|
+
}
|
|
17651
|
+
EncoderRemoveRequest.prototype.id = "";
|
|
17652
|
+
EncoderRemoveRequest.create = function create(properties) {
|
|
17653
|
+
return new EncoderRemoveRequest(properties);
|
|
17654
|
+
};
|
|
17655
|
+
EncoderRemoveRequest.encode = function encode(message, writer) {
|
|
17656
|
+
if (!writer)
|
|
17657
|
+
writer = $Writer.create();
|
|
17658
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
17659
|
+
writer.uint32(
|
|
17660
|
+
/* id 1, wireType 2 =*/
|
|
17661
|
+
10
|
|
17662
|
+
).string(message.id);
|
|
17663
|
+
return writer;
|
|
17664
|
+
};
|
|
17665
|
+
EncoderRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17666
|
+
return this.encode(message, writer).ldelim();
|
|
17667
|
+
};
|
|
17668
|
+
EncoderRemoveRequest.decode = function decode(reader, length, error) {
|
|
17669
|
+
if (!(reader instanceof $Reader))
|
|
17670
|
+
reader = $Reader.create(reader);
|
|
17671
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
|
|
17672
|
+
while (reader.pos < end) {
|
|
17673
|
+
let tag = reader.uint32();
|
|
17674
|
+
if (tag === error)
|
|
17675
|
+
break;
|
|
17676
|
+
switch (tag >>> 3) {
|
|
17677
|
+
case 1: {
|
|
17678
|
+
message.id = reader.string();
|
|
17679
|
+
break;
|
|
17680
|
+
}
|
|
17681
|
+
default:
|
|
17682
|
+
reader.skipType(tag & 7);
|
|
17683
|
+
break;
|
|
17684
|
+
}
|
|
17685
|
+
}
|
|
17686
|
+
return message;
|
|
17687
|
+
};
|
|
17688
|
+
EncoderRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
17689
|
+
if (!(reader instanceof $Reader))
|
|
17690
|
+
reader = new $Reader(reader);
|
|
17691
|
+
return this.decode(reader, reader.uint32());
|
|
17692
|
+
};
|
|
17693
|
+
EncoderRemoveRequest.verify = function verify(message) {
|
|
17694
|
+
if (typeof message !== "object" || message === null)
|
|
17695
|
+
return "object expected";
|
|
17696
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
17697
|
+
if (!$util.isString(message.id))
|
|
17698
|
+
return "id: string expected";
|
|
17699
|
+
}
|
|
17700
|
+
return null;
|
|
17701
|
+
};
|
|
17702
|
+
EncoderRemoveRequest.fromObject = function fromObject(object) {
|
|
17703
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderRemoveRequest)
|
|
17704
|
+
return object;
|
|
17705
|
+
let message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
|
|
17706
|
+
if (object.id != null)
|
|
17707
|
+
message.id = String(object.id);
|
|
17708
|
+
return message;
|
|
17709
|
+
};
|
|
17710
|
+
EncoderRemoveRequest.toObject = function toObject(message, options) {
|
|
17711
|
+
if (!options)
|
|
17712
|
+
options = {};
|
|
17713
|
+
let object = {};
|
|
17714
|
+
if (options.defaults)
|
|
17715
|
+
object.id = "";
|
|
17716
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
17717
|
+
object.id = message.id;
|
|
17718
|
+
return object;
|
|
17719
|
+
};
|
|
17720
|
+
EncoderRemoveRequest.prototype.toJSON = function toJSON() {
|
|
17721
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17722
|
+
};
|
|
17723
|
+
EncoderRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17724
|
+
if (typeUrlPrefix === void 0) {
|
|
17725
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17726
|
+
}
|
|
17727
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderRemoveRequest";
|
|
17728
|
+
};
|
|
17729
|
+
return EncoderRemoveRequest;
|
|
17730
|
+
}();
|
|
17731
|
+
outputs.DecklinkOutputConfig = function() {
|
|
17732
|
+
function DecklinkOutputConfig(properties) {
|
|
17733
|
+
if (properties) {
|
|
17734
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17735
|
+
if (properties[keys[i]] != null)
|
|
17736
|
+
this[keys[i]] = properties[keys[i]];
|
|
17737
|
+
}
|
|
17738
|
+
}
|
|
17739
|
+
DecklinkOutputConfig.prototype.deviceIndex = 0;
|
|
17740
|
+
DecklinkOutputConfig.prototype.videoFormat = 0;
|
|
17741
|
+
DecklinkOutputConfig.prototype.keyAndFill = false;
|
|
17742
|
+
DecklinkOutputConfig.create = function create(properties) {
|
|
17743
|
+
return new DecklinkOutputConfig(properties);
|
|
17744
|
+
};
|
|
17745
|
+
DecklinkOutputConfig.encode = function encode(message, writer) {
|
|
17746
|
+
if (!writer)
|
|
17747
|
+
writer = $Writer.create();
|
|
17748
|
+
if (message.deviceIndex != null && Object.hasOwnProperty.call(message, "deviceIndex"))
|
|
17749
|
+
writer.uint32(
|
|
17750
|
+
/* id 1, wireType 0 =*/
|
|
17751
|
+
8
|
|
17752
|
+
).uint32(message.deviceIndex);
|
|
17753
|
+
if (message.videoFormat != null && Object.hasOwnProperty.call(message, "videoFormat"))
|
|
17754
|
+
writer.uint32(
|
|
17755
|
+
/* id 2, wireType 0 =*/
|
|
17756
|
+
16
|
|
17757
|
+
).int32(message.videoFormat);
|
|
17758
|
+
if (message.keyAndFill != null && Object.hasOwnProperty.call(message, "keyAndFill"))
|
|
17759
|
+
writer.uint32(
|
|
17760
|
+
/* id 3, wireType 0 =*/
|
|
17761
|
+
24
|
|
17762
|
+
).bool(message.keyAndFill);
|
|
17763
|
+
return writer;
|
|
17764
|
+
};
|
|
17765
|
+
DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17766
|
+
return this.encode(message, writer).ldelim();
|
|
17767
|
+
};
|
|
17768
|
+
DecklinkOutputConfig.decode = function decode(reader, length, error) {
|
|
17769
|
+
if (!(reader instanceof $Reader))
|
|
17770
|
+
reader = $Reader.create(reader);
|
|
17771
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
|
|
17772
|
+
while (reader.pos < end) {
|
|
17773
|
+
let tag = reader.uint32();
|
|
17774
|
+
if (tag === error)
|
|
17775
|
+
break;
|
|
17776
|
+
switch (tag >>> 3) {
|
|
17777
|
+
case 1: {
|
|
17778
|
+
message.deviceIndex = reader.uint32();
|
|
17779
|
+
break;
|
|
17780
|
+
}
|
|
17781
|
+
case 2: {
|
|
17782
|
+
message.videoFormat = reader.int32();
|
|
17783
|
+
break;
|
|
17784
|
+
}
|
|
17785
|
+
case 3: {
|
|
17786
|
+
message.keyAndFill = reader.bool();
|
|
17787
|
+
break;
|
|
17788
|
+
}
|
|
17789
|
+
default:
|
|
17790
|
+
reader.skipType(tag & 7);
|
|
17791
|
+
break;
|
|
17792
|
+
}
|
|
17793
|
+
}
|
|
17794
|
+
return message;
|
|
17795
|
+
};
|
|
17796
|
+
DecklinkOutputConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
17797
|
+
if (!(reader instanceof $Reader))
|
|
17798
|
+
reader = new $Reader(reader);
|
|
17799
|
+
return this.decode(reader, reader.uint32());
|
|
17800
|
+
};
|
|
17801
|
+
DecklinkOutputConfig.verify = function verify(message) {
|
|
17802
|
+
if (typeof message !== "object" || message === null)
|
|
17803
|
+
return "object expected";
|
|
17804
|
+
if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex")) {
|
|
17805
|
+
if (!$util.isInteger(message.deviceIndex))
|
|
17806
|
+
return "deviceIndex: integer expected";
|
|
17807
|
+
}
|
|
17808
|
+
if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
|
|
17809
|
+
switch (message.videoFormat) {
|
|
17810
|
+
default:
|
|
17811
|
+
return "videoFormat: enum value expected";
|
|
17812
|
+
case 0:
|
|
17813
|
+
case 1:
|
|
17814
|
+
case 2:
|
|
17815
|
+
case 3:
|
|
17816
|
+
case 4:
|
|
17817
|
+
break;
|
|
17818
|
+
}
|
|
17819
|
+
if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill")) {
|
|
17820
|
+
if (typeof message.keyAndFill !== "boolean")
|
|
17821
|
+
return "keyAndFill: boolean expected";
|
|
17822
|
+
}
|
|
17823
|
+
return null;
|
|
17824
|
+
};
|
|
17825
|
+
DecklinkOutputConfig.fromObject = function fromObject(object) {
|
|
17826
|
+
if (object instanceof $root.sesame.v1.outputs.DecklinkOutputConfig)
|
|
17827
|
+
return object;
|
|
17828
|
+
let message = new $root.sesame.v1.outputs.DecklinkOutputConfig();
|
|
17829
|
+
if (object.deviceIndex != null)
|
|
17830
|
+
message.deviceIndex = object.deviceIndex >>> 0;
|
|
17831
|
+
switch (object.videoFormat) {
|
|
17832
|
+
default:
|
|
17833
|
+
if (typeof object.videoFormat === "number") {
|
|
17834
|
+
message.videoFormat = object.videoFormat;
|
|
17835
|
+
break;
|
|
17836
|
+
}
|
|
17837
|
+
break;
|
|
17838
|
+
case "VIDEO_FORMAT_UNSPECIFIED":
|
|
17839
|
+
case 0:
|
|
17840
|
+
message.videoFormat = 0;
|
|
17841
|
+
break;
|
|
17842
|
+
case "VIDEO_FORMAT_1080_50I":
|
|
17843
|
+
case 1:
|
|
17844
|
+
message.videoFormat = 1;
|
|
17845
|
+
break;
|
|
17846
|
+
case "VIDEO_FORMAT_1080_50P":
|
|
17847
|
+
case 2:
|
|
17848
|
+
message.videoFormat = 2;
|
|
17849
|
+
break;
|
|
17850
|
+
case "VIDEO_FORMAT_1080_60I":
|
|
17851
|
+
case 3:
|
|
17852
|
+
message.videoFormat = 3;
|
|
17853
|
+
break;
|
|
17854
|
+
case "VIDEO_FORMAT_1080_60P":
|
|
17855
|
+
case 4:
|
|
17856
|
+
message.videoFormat = 4;
|
|
17857
|
+
break;
|
|
17858
|
+
}
|
|
17859
|
+
if (object.keyAndFill != null)
|
|
17860
|
+
message.keyAndFill = Boolean(object.keyAndFill);
|
|
17861
|
+
return message;
|
|
17862
|
+
};
|
|
17863
|
+
DecklinkOutputConfig.toObject = function toObject(message, options) {
|
|
17864
|
+
if (!options)
|
|
17865
|
+
options = {};
|
|
17866
|
+
let object = {};
|
|
17867
|
+
if (options.defaults) {
|
|
17868
|
+
object.deviceIndex = 0;
|
|
17869
|
+
object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
|
|
17870
|
+
object.keyAndFill = false;
|
|
17871
|
+
}
|
|
17872
|
+
if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
|
|
17873
|
+
object.deviceIndex = message.deviceIndex;
|
|
17874
|
+
if (message.videoFormat != null && message.hasOwnProperty("videoFormat"))
|
|
17875
|
+
object.videoFormat = options.enums === String ? $root.sesame.v1.common.VideoFormat[message.videoFormat] === void 0 ? message.videoFormat : $root.sesame.v1.common.VideoFormat[message.videoFormat] : message.videoFormat;
|
|
17876
|
+
if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
|
|
17877
|
+
object.keyAndFill = message.keyAndFill;
|
|
17878
|
+
return object;
|
|
17879
|
+
};
|
|
17880
|
+
DecklinkOutputConfig.prototype.toJSON = function toJSON() {
|
|
17881
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17882
|
+
};
|
|
17883
|
+
DecklinkOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17884
|
+
if (typeUrlPrefix === void 0) {
|
|
17885
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17511
17886
|
}
|
|
17887
|
+
return typeUrlPrefix + "/sesame.v1.outputs.DecklinkOutputConfig";
|
|
17888
|
+
};
|
|
17889
|
+
return DecklinkOutputConfig;
|
|
17890
|
+
}();
|
|
17891
|
+
outputs.EncodedWebSocketOutputConfig = function() {
|
|
17892
|
+
function EncodedWebSocketOutputConfig(properties) {
|
|
17893
|
+
this.metadataTracks = [];
|
|
17894
|
+
if (properties) {
|
|
17895
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17896
|
+
if (properties[keys[i]] != null)
|
|
17897
|
+
this[keys[i]] = properties[keys[i]];
|
|
17898
|
+
}
|
|
17899
|
+
}
|
|
17900
|
+
EncodedWebSocketOutputConfig.prototype.channel = "";
|
|
17901
|
+
EncodedWebSocketOutputConfig.prototype.encoderId = "";
|
|
17902
|
+
EncodedWebSocketOutputConfig.prototype.metadataTracks = $util.emptyArray;
|
|
17903
|
+
EncodedWebSocketOutputConfig.create = function create(properties) {
|
|
17904
|
+
return new EncodedWebSocketOutputConfig(properties);
|
|
17905
|
+
};
|
|
17906
|
+
EncodedWebSocketOutputConfig.encode = function encode(message, writer) {
|
|
17907
|
+
if (!writer)
|
|
17908
|
+
writer = $Writer.create();
|
|
17909
|
+
if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
|
|
17910
|
+
writer.uint32(
|
|
17911
|
+
/* id 1, wireType 2 =*/
|
|
17912
|
+
10
|
|
17913
|
+
).string(message.channel);
|
|
17914
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
17915
|
+
writer.uint32(
|
|
17916
|
+
/* id 2, wireType 2 =*/
|
|
17917
|
+
18
|
|
17918
|
+
).string(message.encoderId);
|
|
17919
|
+
if (message.metadataTracks != null && message.metadataTracks.length)
|
|
17920
|
+
for (let i = 0; i < message.metadataTracks.length; ++i)
|
|
17921
|
+
writer.uint32(
|
|
17922
|
+
/* id 3, wireType 2 =*/
|
|
17923
|
+
26
|
|
17924
|
+
).string(message.metadataTracks[i]);
|
|
17925
|
+
return writer;
|
|
17926
|
+
};
|
|
17927
|
+
EncodedWebSocketOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17928
|
+
return this.encode(message, writer).ldelim();
|
|
17929
|
+
};
|
|
17930
|
+
EncodedWebSocketOutputConfig.decode = function decode(reader, length, error) {
|
|
17931
|
+
if (!(reader instanceof $Reader))
|
|
17932
|
+
reader = $Reader.create(reader);
|
|
17933
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
|
|
17934
|
+
while (reader.pos < end) {
|
|
17935
|
+
let tag = reader.uint32();
|
|
17936
|
+
if (tag === error)
|
|
17937
|
+
break;
|
|
17938
|
+
switch (tag >>> 3) {
|
|
17939
|
+
case 1: {
|
|
17940
|
+
message.channel = reader.string();
|
|
17941
|
+
break;
|
|
17942
|
+
}
|
|
17943
|
+
case 2: {
|
|
17944
|
+
message.encoderId = reader.string();
|
|
17945
|
+
break;
|
|
17946
|
+
}
|
|
17947
|
+
case 3: {
|
|
17948
|
+
if (!(message.metadataTracks && message.metadataTracks.length))
|
|
17949
|
+
message.metadataTracks = [];
|
|
17950
|
+
message.metadataTracks.push(reader.string());
|
|
17951
|
+
break;
|
|
17952
|
+
}
|
|
17953
|
+
default:
|
|
17954
|
+
reader.skipType(tag & 7);
|
|
17955
|
+
break;
|
|
17956
|
+
}
|
|
17957
|
+
}
|
|
17958
|
+
return message;
|
|
17959
|
+
};
|
|
17960
|
+
EncodedWebSocketOutputConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
17961
|
+
if (!(reader instanceof $Reader))
|
|
17962
|
+
reader = new $Reader(reader);
|
|
17963
|
+
return this.decode(reader, reader.uint32());
|
|
17964
|
+
};
|
|
17965
|
+
EncodedWebSocketOutputConfig.verify = function verify(message) {
|
|
17966
|
+
if (typeof message !== "object" || message === null)
|
|
17967
|
+
return "object expected";
|
|
17968
|
+
if (message.channel != null && message.hasOwnProperty("channel")) {
|
|
17969
|
+
if (!$util.isString(message.channel))
|
|
17970
|
+
return "channel: string expected";
|
|
17971
|
+
}
|
|
17972
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
17973
|
+
if (!$util.isString(message.encoderId))
|
|
17974
|
+
return "encoderId: string expected";
|
|
17975
|
+
}
|
|
17976
|
+
if (message.metadataTracks != null && message.hasOwnProperty("metadataTracks")) {
|
|
17977
|
+
if (!Array.isArray(message.metadataTracks))
|
|
17978
|
+
return "metadataTracks: array expected";
|
|
17979
|
+
for (let i = 0; i < message.metadataTracks.length; ++i)
|
|
17980
|
+
if (!$util.isString(message.metadataTracks[i]))
|
|
17981
|
+
return "metadataTracks: string[] expected";
|
|
17982
|
+
}
|
|
17983
|
+
return null;
|
|
17984
|
+
};
|
|
17985
|
+
EncodedWebSocketOutputConfig.fromObject = function fromObject(object) {
|
|
17986
|
+
if (object instanceof $root.sesame.v1.outputs.EncodedWebSocketOutputConfig)
|
|
17987
|
+
return object;
|
|
17988
|
+
let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
|
|
17989
|
+
if (object.channel != null)
|
|
17990
|
+
message.channel = String(object.channel);
|
|
17991
|
+
if (object.encoderId != null)
|
|
17992
|
+
message.encoderId = String(object.encoderId);
|
|
17512
17993
|
if (object.metadataTracks) {
|
|
17513
17994
|
if (!Array.isArray(object.metadataTracks))
|
|
17514
17995
|
throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.metadataTracks: array expected");
|
|
@@ -17526,12 +18007,12 @@ var sesame = $root.sesame = (() => {
|
|
|
17526
18007
|
object.metadataTracks = [];
|
|
17527
18008
|
if (options.defaults) {
|
|
17528
18009
|
object.channel = "";
|
|
17529
|
-
object.
|
|
18010
|
+
object.encoderId = "";
|
|
17530
18011
|
}
|
|
17531
18012
|
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
17532
18013
|
object.channel = message.channel;
|
|
17533
|
-
if (message.
|
|
17534
|
-
object.
|
|
18014
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18015
|
+
object.encoderId = message.encoderId;
|
|
17535
18016
|
if (message.metadataTracks && message.metadataTracks.length) {
|
|
17536
18017
|
object.metadataTracks = [];
|
|
17537
18018
|
for (let j = 0; j < message.metadataTracks.length; ++j)
|
|
@@ -17558,7 +18039,7 @@ var sesame = $root.sesame = (() => {
|
|
|
17558
18039
|
this[keys[i]] = properties[keys[i]];
|
|
17559
18040
|
}
|
|
17560
18041
|
}
|
|
17561
|
-
EncodedRecorderOutputConfig.prototype.
|
|
18042
|
+
EncodedRecorderOutputConfig.prototype.encoderId = "";
|
|
17562
18043
|
EncodedRecorderOutputConfig.prototype.filename = "";
|
|
17563
18044
|
EncodedRecorderOutputConfig.prototype.sizeGb = 0;
|
|
17564
18045
|
EncodedRecorderOutputConfig.prototype.groupId = "";
|
|
@@ -17569,11 +18050,11 @@ var sesame = $root.sesame = (() => {
|
|
|
17569
18050
|
EncodedRecorderOutputConfig.encode = function encode(message, writer) {
|
|
17570
18051
|
if (!writer)
|
|
17571
18052
|
writer = $Writer.create();
|
|
17572
|
-
if (message.
|
|
17573
|
-
|
|
18053
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
18054
|
+
writer.uint32(
|
|
17574
18055
|
/* id 1, wireType 2 =*/
|
|
17575
18056
|
10
|
|
17576
|
-
).
|
|
18057
|
+
).string(message.encoderId);
|
|
17577
18058
|
if (message.filename != null && Object.hasOwnProperty.call(message, "filename"))
|
|
17578
18059
|
writer.uint32(
|
|
17579
18060
|
/* id 2, wireType 2 =*/
|
|
@@ -17609,7 +18090,7 @@ var sesame = $root.sesame = (() => {
|
|
|
17609
18090
|
break;
|
|
17610
18091
|
switch (tag >>> 3) {
|
|
17611
18092
|
case 1: {
|
|
17612
|
-
message.
|
|
18093
|
+
message.encoderId = reader.string();
|
|
17613
18094
|
break;
|
|
17614
18095
|
}
|
|
17615
18096
|
case 2: {
|
|
@@ -17643,10 +18124,9 @@ var sesame = $root.sesame = (() => {
|
|
|
17643
18124
|
EncodedRecorderOutputConfig.verify = function verify(message) {
|
|
17644
18125
|
if (typeof message !== "object" || message === null)
|
|
17645
18126
|
return "object expected";
|
|
17646
|
-
if (message.
|
|
17647
|
-
|
|
17648
|
-
|
|
17649
|
-
return "encoder." + error;
|
|
18127
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
18128
|
+
if (!$util.isString(message.encoderId))
|
|
18129
|
+
return "encoderId: string expected";
|
|
17650
18130
|
}
|
|
17651
18131
|
if (message.filename != null && message.hasOwnProperty("filename")) {
|
|
17652
18132
|
if (!$util.isString(message.filename))
|
|
@@ -17675,11 +18155,8 @@ var sesame = $root.sesame = (() => {
|
|
|
17675
18155
|
if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
|
|
17676
18156
|
return object;
|
|
17677
18157
|
let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
|
|
17678
|
-
if (object.
|
|
17679
|
-
|
|
17680
|
-
throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
|
|
17681
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
17682
|
-
}
|
|
18158
|
+
if (object.encoderId != null)
|
|
18159
|
+
message.encoderId = String(object.encoderId);
|
|
17683
18160
|
if (object.filename != null)
|
|
17684
18161
|
message.filename = String(object.filename);
|
|
17685
18162
|
if (object.sizeGb != null)
|
|
@@ -17713,14 +18190,14 @@ var sesame = $root.sesame = (() => {
|
|
|
17713
18190
|
options = {};
|
|
17714
18191
|
let object = {};
|
|
17715
18192
|
if (options.defaults) {
|
|
17716
|
-
object.
|
|
18193
|
+
object.encoderId = "";
|
|
17717
18194
|
object.filename = "";
|
|
17718
18195
|
object.sizeGb = 0;
|
|
17719
18196
|
object.groupId = "";
|
|
17720
18197
|
object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
|
|
17721
|
-
}
|
|
17722
|
-
if (message.
|
|
17723
|
-
object.
|
|
18198
|
+
}
|
|
18199
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18200
|
+
object.encoderId = message.encoderId;
|
|
17724
18201
|
if (message.filename != null && message.hasOwnProperty("filename"))
|
|
17725
18202
|
object.filename = message.filename;
|
|
17726
18203
|
if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
|
|
@@ -18013,7 +18490,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18013
18490
|
}
|
|
18014
18491
|
}
|
|
18015
18492
|
EncodedSrtOutputConfig.prototype.url = "";
|
|
18016
|
-
EncodedSrtOutputConfig.prototype.
|
|
18493
|
+
EncodedSrtOutputConfig.prototype.encoderId = "";
|
|
18017
18494
|
EncodedSrtOutputConfig.create = function create(properties) {
|
|
18018
18495
|
return new EncodedSrtOutputConfig(properties);
|
|
18019
18496
|
};
|
|
@@ -18025,11 +18502,11 @@ var sesame = $root.sesame = (() => {
|
|
|
18025
18502
|
/* id 1, wireType 2 =*/
|
|
18026
18503
|
10
|
|
18027
18504
|
).string(message.url);
|
|
18028
|
-
if (message.
|
|
18029
|
-
|
|
18505
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
18506
|
+
writer.uint32(
|
|
18030
18507
|
/* id 2, wireType 2 =*/
|
|
18031
18508
|
18
|
|
18032
|
-
).
|
|
18509
|
+
).string(message.encoderId);
|
|
18033
18510
|
return writer;
|
|
18034
18511
|
};
|
|
18035
18512
|
EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -18049,7 +18526,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18049
18526
|
break;
|
|
18050
18527
|
}
|
|
18051
18528
|
case 2: {
|
|
18052
|
-
message.
|
|
18529
|
+
message.encoderId = reader.string();
|
|
18053
18530
|
break;
|
|
18054
18531
|
}
|
|
18055
18532
|
default:
|
|
@@ -18071,10 +18548,9 @@ var sesame = $root.sesame = (() => {
|
|
|
18071
18548
|
if (!$util.isString(message.url))
|
|
18072
18549
|
return "url: string expected";
|
|
18073
18550
|
}
|
|
18074
|
-
if (message.
|
|
18075
|
-
|
|
18076
|
-
|
|
18077
|
-
return "encoder." + error;
|
|
18551
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
18552
|
+
if (!$util.isString(message.encoderId))
|
|
18553
|
+
return "encoderId: string expected";
|
|
18078
18554
|
}
|
|
18079
18555
|
return null;
|
|
18080
18556
|
};
|
|
@@ -18084,11 +18560,8 @@ var sesame = $root.sesame = (() => {
|
|
|
18084
18560
|
let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
|
|
18085
18561
|
if (object.url != null)
|
|
18086
18562
|
message.url = String(object.url);
|
|
18087
|
-
if (object.
|
|
18088
|
-
|
|
18089
|
-
throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
|
|
18090
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
18091
|
-
}
|
|
18563
|
+
if (object.encoderId != null)
|
|
18564
|
+
message.encoderId = String(object.encoderId);
|
|
18092
18565
|
return message;
|
|
18093
18566
|
};
|
|
18094
18567
|
EncodedSrtOutputConfig.toObject = function toObject(message, options) {
|
|
@@ -18097,12 +18570,12 @@ var sesame = $root.sesame = (() => {
|
|
|
18097
18570
|
let object = {};
|
|
18098
18571
|
if (options.defaults) {
|
|
18099
18572
|
object.url = "";
|
|
18100
|
-
object.
|
|
18573
|
+
object.encoderId = "";
|
|
18101
18574
|
}
|
|
18102
18575
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
18103
18576
|
object.url = message.url;
|
|
18104
|
-
if (message.
|
|
18105
|
-
object.
|
|
18577
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18578
|
+
object.encoderId = message.encoderId;
|
|
18106
18579
|
return object;
|
|
18107
18580
|
};
|
|
18108
18581
|
EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -18125,7 +18598,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18125
18598
|
this[keys[i]] = properties[keys[i]];
|
|
18126
18599
|
}
|
|
18127
18600
|
}
|
|
18128
|
-
EncodedMoqOutputConfig.prototype.
|
|
18601
|
+
EncodedMoqOutputConfig.prototype.encoderId = "";
|
|
18129
18602
|
EncodedMoqOutputConfig.prototype.url = "";
|
|
18130
18603
|
EncodedMoqOutputConfig.prototype.broadcast = "";
|
|
18131
18604
|
EncodedMoqOutputConfig.prototype.key = "";
|
|
@@ -18136,11 +18609,11 @@ var sesame = $root.sesame = (() => {
|
|
|
18136
18609
|
EncodedMoqOutputConfig.encode = function encode(message, writer) {
|
|
18137
18610
|
if (!writer)
|
|
18138
18611
|
writer = $Writer.create();
|
|
18139
|
-
if (message.
|
|
18140
|
-
|
|
18612
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
18613
|
+
writer.uint32(
|
|
18141
18614
|
/* id 1, wireType 2 =*/
|
|
18142
18615
|
10
|
|
18143
|
-
).
|
|
18616
|
+
).string(message.encoderId);
|
|
18144
18617
|
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
18145
18618
|
writer.uint32(
|
|
18146
18619
|
/* id 2, wireType 2 =*/
|
|
@@ -18177,7 +18650,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18177
18650
|
break;
|
|
18178
18651
|
switch (tag >>> 3) {
|
|
18179
18652
|
case 1: {
|
|
18180
|
-
message.
|
|
18653
|
+
message.encoderId = reader.string();
|
|
18181
18654
|
break;
|
|
18182
18655
|
}
|
|
18183
18656
|
case 2: {
|
|
@@ -18213,10 +18686,9 @@ var sesame = $root.sesame = (() => {
|
|
|
18213
18686
|
EncodedMoqOutputConfig.verify = function verify(message) {
|
|
18214
18687
|
if (typeof message !== "object" || message === null)
|
|
18215
18688
|
return "object expected";
|
|
18216
|
-
if (message.
|
|
18217
|
-
|
|
18218
|
-
|
|
18219
|
-
return "encoder." + error;
|
|
18689
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
18690
|
+
if (!$util.isString(message.encoderId))
|
|
18691
|
+
return "encoderId: string expected";
|
|
18220
18692
|
}
|
|
18221
18693
|
if (message.url != null && message.hasOwnProperty("url")) {
|
|
18222
18694
|
if (!$util.isString(message.url))
|
|
@@ -18243,11 +18715,8 @@ var sesame = $root.sesame = (() => {
|
|
|
18243
18715
|
if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
|
|
18244
18716
|
return object;
|
|
18245
18717
|
let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
|
|
18246
|
-
if (object.
|
|
18247
|
-
|
|
18248
|
-
throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
|
|
18249
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
18250
|
-
}
|
|
18718
|
+
if (object.encoderId != null)
|
|
18719
|
+
message.encoderId = String(object.encoderId);
|
|
18251
18720
|
if (object.url != null)
|
|
18252
18721
|
message.url = String(object.url);
|
|
18253
18722
|
if (object.broadcast != null)
|
|
@@ -18270,13 +18739,13 @@ var sesame = $root.sesame = (() => {
|
|
|
18270
18739
|
if (options.arrays || options.defaults)
|
|
18271
18740
|
object.metadataTracks = [];
|
|
18272
18741
|
if (options.defaults) {
|
|
18273
|
-
object.
|
|
18742
|
+
object.encoderId = "";
|
|
18274
18743
|
object.url = "";
|
|
18275
18744
|
object.broadcast = "";
|
|
18276
18745
|
object.key = "";
|
|
18277
18746
|
}
|
|
18278
|
-
if (message.
|
|
18279
|
-
object.
|
|
18747
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18748
|
+
object.encoderId = message.encoderId;
|
|
18280
18749
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
18281
18750
|
object.url = message.url;
|
|
18282
18751
|
if (message.broadcast != null && message.hasOwnProperty("broadcast"))
|
|
@@ -19332,6 +19801,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19332
19801
|
OutputStatus.prototype.url = "";
|
|
19333
19802
|
OutputStatus.prototype.bufferSize = 0;
|
|
19334
19803
|
OutputStatus.prototype.srtStats = null;
|
|
19804
|
+
OutputStatus.prototype.encoderId = "";
|
|
19335
19805
|
let $oneOfFields;
|
|
19336
19806
|
Object.defineProperty(OutputStatus.prototype, "_msg", {
|
|
19337
19807
|
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
@@ -19382,6 +19852,11 @@ var sesame = $root.sesame = (() => {
|
|
|
19382
19852
|
/* id 7, wireType 2 =*/
|
|
19383
19853
|
58
|
|
19384
19854
|
).fork()).ldelim();
|
|
19855
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
19856
|
+
writer.uint32(
|
|
19857
|
+
/* id 8, wireType 2 =*/
|
|
19858
|
+
66
|
|
19859
|
+
).string(message.encoderId);
|
|
19385
19860
|
return writer;
|
|
19386
19861
|
};
|
|
19387
19862
|
OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -19424,6 +19899,10 @@ var sesame = $root.sesame = (() => {
|
|
|
19424
19899
|
message.srtStats = $root.sesame.v1.status.SRTSendStatistics.decode(reader, reader.uint32());
|
|
19425
19900
|
break;
|
|
19426
19901
|
}
|
|
19902
|
+
case 8: {
|
|
19903
|
+
message.encoderId = reader.string();
|
|
19904
|
+
break;
|
|
19905
|
+
}
|
|
19427
19906
|
default:
|
|
19428
19907
|
reader.skipType(tag & 7);
|
|
19429
19908
|
break;
|
|
@@ -19492,6 +19971,10 @@ var sesame = $root.sesame = (() => {
|
|
|
19492
19971
|
return "srtStats." + error;
|
|
19493
19972
|
}
|
|
19494
19973
|
}
|
|
19974
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
19975
|
+
if (!$util.isString(message.encoderId))
|
|
19976
|
+
return "encoderId: string expected";
|
|
19977
|
+
}
|
|
19495
19978
|
return null;
|
|
19496
19979
|
};
|
|
19497
19980
|
OutputStatus.fromObject = function fromObject(object) {
|
|
@@ -19587,6 +20070,8 @@ var sesame = $root.sesame = (() => {
|
|
|
19587
20070
|
throw TypeError(".sesame.v1.outputs.OutputStatus.srtStats: object expected");
|
|
19588
20071
|
message.srtStats = $root.sesame.v1.status.SRTSendStatistics.fromObject(object.srtStats);
|
|
19589
20072
|
}
|
|
20073
|
+
if (object.encoderId != null)
|
|
20074
|
+
message.encoderId = String(object.encoderId);
|
|
19590
20075
|
return message;
|
|
19591
20076
|
};
|
|
19592
20077
|
OutputStatus.toObject = function toObject(message, options) {
|
|
@@ -19599,6 +20084,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19599
20084
|
object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
|
|
19600
20085
|
object.url = "";
|
|
19601
20086
|
object.bufferSize = 0;
|
|
20087
|
+
object.encoderId = "";
|
|
19602
20088
|
}
|
|
19603
20089
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
19604
20090
|
object.id = message.id;
|
|
@@ -19620,6 +20106,8 @@ var sesame = $root.sesame = (() => {
|
|
|
19620
20106
|
if (options.oneofs)
|
|
19621
20107
|
object._srtStats = "srtStats";
|
|
19622
20108
|
}
|
|
20109
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
20110
|
+
object.encoderId = message.encoderId;
|
|
19623
20111
|
return object;
|
|
19624
20112
|
};
|
|
19625
20113
|
OutputStatus.prototype.toJSON = function toJSON() {
|
|
@@ -19633,6 +20121,241 @@ var sesame = $root.sesame = (() => {
|
|
|
19633
20121
|
};
|
|
19634
20122
|
return OutputStatus;
|
|
19635
20123
|
}();
|
|
20124
|
+
outputs.EncoderStatus = function() {
|
|
20125
|
+
function EncoderStatus(properties) {
|
|
20126
|
+
if (properties) {
|
|
20127
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20128
|
+
if (properties[keys[i]] != null)
|
|
20129
|
+
this[keys[i]] = properties[keys[i]];
|
|
20130
|
+
}
|
|
20131
|
+
}
|
|
20132
|
+
EncoderStatus.prototype.id = "";
|
|
20133
|
+
EncoderStatus.prototype.type = 0;
|
|
20134
|
+
EncoderStatus.prototype.state = 0;
|
|
20135
|
+
EncoderStatus.prototype.msg = null;
|
|
20136
|
+
EncoderStatus.prototype.compositionId = "";
|
|
20137
|
+
let $oneOfFields;
|
|
20138
|
+
Object.defineProperty(EncoderStatus.prototype, "_msg", {
|
|
20139
|
+
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
20140
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20141
|
+
});
|
|
20142
|
+
EncoderStatus.create = function create(properties) {
|
|
20143
|
+
return new EncoderStatus(properties);
|
|
20144
|
+
};
|
|
20145
|
+
EncoderStatus.encode = function encode(message, writer) {
|
|
20146
|
+
if (!writer)
|
|
20147
|
+
writer = $Writer.create();
|
|
20148
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
20149
|
+
writer.uint32(
|
|
20150
|
+
/* id 1, wireType 2 =*/
|
|
20151
|
+
10
|
|
20152
|
+
).string(message.id);
|
|
20153
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
20154
|
+
writer.uint32(
|
|
20155
|
+
/* id 2, wireType 0 =*/
|
|
20156
|
+
16
|
|
20157
|
+
).int32(message.type);
|
|
20158
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
20159
|
+
writer.uint32(
|
|
20160
|
+
/* id 3, wireType 0 =*/
|
|
20161
|
+
24
|
|
20162
|
+
).int32(message.state);
|
|
20163
|
+
if (message.msg != null && Object.hasOwnProperty.call(message, "msg"))
|
|
20164
|
+
writer.uint32(
|
|
20165
|
+
/* id 4, wireType 2 =*/
|
|
20166
|
+
34
|
|
20167
|
+
).string(message.msg);
|
|
20168
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
20169
|
+
writer.uint32(
|
|
20170
|
+
/* id 5, wireType 2 =*/
|
|
20171
|
+
42
|
|
20172
|
+
).string(message.compositionId);
|
|
20173
|
+
return writer;
|
|
20174
|
+
};
|
|
20175
|
+
EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20176
|
+
return this.encode(message, writer).ldelim();
|
|
20177
|
+
};
|
|
20178
|
+
EncoderStatus.decode = function decode(reader, length, error) {
|
|
20179
|
+
if (!(reader instanceof $Reader))
|
|
20180
|
+
reader = $Reader.create(reader);
|
|
20181
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderStatus();
|
|
20182
|
+
while (reader.pos < end) {
|
|
20183
|
+
let tag = reader.uint32();
|
|
20184
|
+
if (tag === error)
|
|
20185
|
+
break;
|
|
20186
|
+
switch (tag >>> 3) {
|
|
20187
|
+
case 1: {
|
|
20188
|
+
message.id = reader.string();
|
|
20189
|
+
break;
|
|
20190
|
+
}
|
|
20191
|
+
case 2: {
|
|
20192
|
+
message.type = reader.int32();
|
|
20193
|
+
break;
|
|
20194
|
+
}
|
|
20195
|
+
case 3: {
|
|
20196
|
+
message.state = reader.int32();
|
|
20197
|
+
break;
|
|
20198
|
+
}
|
|
20199
|
+
case 4: {
|
|
20200
|
+
message.msg = reader.string();
|
|
20201
|
+
break;
|
|
20202
|
+
}
|
|
20203
|
+
case 5: {
|
|
20204
|
+
message.compositionId = reader.string();
|
|
20205
|
+
break;
|
|
20206
|
+
}
|
|
20207
|
+
default:
|
|
20208
|
+
reader.skipType(tag & 7);
|
|
20209
|
+
break;
|
|
20210
|
+
}
|
|
20211
|
+
}
|
|
20212
|
+
return message;
|
|
20213
|
+
};
|
|
20214
|
+
EncoderStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
20215
|
+
if (!(reader instanceof $Reader))
|
|
20216
|
+
reader = new $Reader(reader);
|
|
20217
|
+
return this.decode(reader, reader.uint32());
|
|
20218
|
+
};
|
|
20219
|
+
EncoderStatus.verify = function verify(message) {
|
|
20220
|
+
if (typeof message !== "object" || message === null)
|
|
20221
|
+
return "object expected";
|
|
20222
|
+
let properties = {};
|
|
20223
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
20224
|
+
if (!$util.isString(message.id))
|
|
20225
|
+
return "id: string expected";
|
|
20226
|
+
}
|
|
20227
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
20228
|
+
switch (message.type) {
|
|
20229
|
+
default:
|
|
20230
|
+
return "type: enum value expected";
|
|
20231
|
+
case 0:
|
|
20232
|
+
case 1:
|
|
20233
|
+
break;
|
|
20234
|
+
}
|
|
20235
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
20236
|
+
switch (message.state) {
|
|
20237
|
+
default:
|
|
20238
|
+
return "state: enum value expected";
|
|
20239
|
+
case 0:
|
|
20240
|
+
case 1:
|
|
20241
|
+
case 2:
|
|
20242
|
+
case 3:
|
|
20243
|
+
case 4:
|
|
20244
|
+
case 5:
|
|
20245
|
+
case 6:
|
|
20246
|
+
break;
|
|
20247
|
+
}
|
|
20248
|
+
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
20249
|
+
properties._msg = 1;
|
|
20250
|
+
if (!$util.isString(message.msg))
|
|
20251
|
+
return "msg: string expected";
|
|
20252
|
+
}
|
|
20253
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
20254
|
+
if (!$util.isString(message.compositionId))
|
|
20255
|
+
return "compositionId: string expected";
|
|
20256
|
+
}
|
|
20257
|
+
return null;
|
|
20258
|
+
};
|
|
20259
|
+
EncoderStatus.fromObject = function fromObject(object) {
|
|
20260
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderStatus)
|
|
20261
|
+
return object;
|
|
20262
|
+
let message = new $root.sesame.v1.outputs.EncoderStatus();
|
|
20263
|
+
if (object.id != null)
|
|
20264
|
+
message.id = String(object.id);
|
|
20265
|
+
switch (object.type) {
|
|
20266
|
+
default:
|
|
20267
|
+
if (typeof object.type === "number") {
|
|
20268
|
+
message.type = object.type;
|
|
20269
|
+
break;
|
|
20270
|
+
}
|
|
20271
|
+
break;
|
|
20272
|
+
case "ENCODER_TYPE_UNSPECIFIED":
|
|
20273
|
+
case 0:
|
|
20274
|
+
message.type = 0;
|
|
20275
|
+
break;
|
|
20276
|
+
case "ENCODER_TYPE_VIDEO":
|
|
20277
|
+
case 1:
|
|
20278
|
+
message.type = 1;
|
|
20279
|
+
break;
|
|
20280
|
+
}
|
|
20281
|
+
switch (object.state) {
|
|
20282
|
+
default:
|
|
20283
|
+
if (typeof object.state === "number") {
|
|
20284
|
+
message.state = object.state;
|
|
20285
|
+
break;
|
|
20286
|
+
}
|
|
20287
|
+
break;
|
|
20288
|
+
case "CONNECTION_STATE_UNSPECIFIED":
|
|
20289
|
+
case 0:
|
|
20290
|
+
message.state = 0;
|
|
20291
|
+
break;
|
|
20292
|
+
case "CONNECTION_STATE_INITIALIZING":
|
|
20293
|
+
case 1:
|
|
20294
|
+
message.state = 1;
|
|
20295
|
+
break;
|
|
20296
|
+
case "CONNECTION_STATE_CONNECTING":
|
|
20297
|
+
case 2:
|
|
20298
|
+
message.state = 2;
|
|
20299
|
+
break;
|
|
20300
|
+
case "CONNECTION_STATE_ONLINE":
|
|
20301
|
+
case 3:
|
|
20302
|
+
message.state = 3;
|
|
20303
|
+
break;
|
|
20304
|
+
case "CONNECTION_STATE_DEGRADED":
|
|
20305
|
+
case 4:
|
|
20306
|
+
message.state = 4;
|
|
20307
|
+
break;
|
|
20308
|
+
case "CONNECTION_STATE_OFFLINE":
|
|
20309
|
+
case 5:
|
|
20310
|
+
message.state = 5;
|
|
20311
|
+
break;
|
|
20312
|
+
case "CONNECTION_STATE_ERROR":
|
|
20313
|
+
case 6:
|
|
20314
|
+
message.state = 6;
|
|
20315
|
+
break;
|
|
20316
|
+
}
|
|
20317
|
+
if (object.msg != null)
|
|
20318
|
+
message.msg = String(object.msg);
|
|
20319
|
+
if (object.compositionId != null)
|
|
20320
|
+
message.compositionId = String(object.compositionId);
|
|
20321
|
+
return message;
|
|
20322
|
+
};
|
|
20323
|
+
EncoderStatus.toObject = function toObject(message, options) {
|
|
20324
|
+
if (!options)
|
|
20325
|
+
options = {};
|
|
20326
|
+
let object = {};
|
|
20327
|
+
if (options.defaults) {
|
|
20328
|
+
object.id = "";
|
|
20329
|
+
object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
|
|
20330
|
+
object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
|
|
20331
|
+
object.compositionId = "";
|
|
20332
|
+
}
|
|
20333
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
20334
|
+
object.id = message.id;
|
|
20335
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
20336
|
+
object.type = options.enums === String ? $root.sesame.v1.outputs.EncoderType[message.type] === void 0 ? message.type : $root.sesame.v1.outputs.EncoderType[message.type] : message.type;
|
|
20337
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
20338
|
+
object.state = options.enums === String ? $root.sesame.v1.common.ConnectionState[message.state] === void 0 ? message.state : $root.sesame.v1.common.ConnectionState[message.state] : message.state;
|
|
20339
|
+
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
20340
|
+
object.msg = message.msg;
|
|
20341
|
+
if (options.oneofs)
|
|
20342
|
+
object._msg = "msg";
|
|
20343
|
+
}
|
|
20344
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
20345
|
+
object.compositionId = message.compositionId;
|
|
20346
|
+
return object;
|
|
20347
|
+
};
|
|
20348
|
+
EncoderStatus.prototype.toJSON = function toJSON() {
|
|
20349
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20350
|
+
};
|
|
20351
|
+
EncoderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20352
|
+
if (typeUrlPrefix === void 0) {
|
|
20353
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
20354
|
+
}
|
|
20355
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderStatus";
|
|
20356
|
+
};
|
|
20357
|
+
return EncoderStatus;
|
|
20358
|
+
}();
|
|
19636
20359
|
return outputs;
|
|
19637
20360
|
}();
|
|
19638
20361
|
v1.compositor = function() {
|
|
@@ -25051,6 +25774,21 @@ var CommandList = class {
|
|
|
25051
25774
|
item.removeOutput = { id };
|
|
25052
25775
|
return this.add(item, timeOffsetMs);
|
|
25053
25776
|
}
|
|
25777
|
+
encoderAdd(id, cfg, timeOffsetMs) {
|
|
25778
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
25779
|
+
item.addEncoder = { id, ...cfg };
|
|
25780
|
+
return this.add(item, timeOffsetMs);
|
|
25781
|
+
}
|
|
25782
|
+
encoderUpdate(id, cfg, timeOffsetMs) {
|
|
25783
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
25784
|
+
item.updateEncoder = { id, ...cfg };
|
|
25785
|
+
return this.add(item, timeOffsetMs);
|
|
25786
|
+
}
|
|
25787
|
+
encoderRemove(id, timeOffsetMs) {
|
|
25788
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
25789
|
+
item.removeEncoder = { id };
|
|
25790
|
+
return this.add(item, timeOffsetMs);
|
|
25791
|
+
}
|
|
25054
25792
|
audioMixerAdd(id, cfg, timeOffsetMs) {
|
|
25055
25793
|
let item = new sesame.v1.commands.CommandListItem();
|
|
25056
25794
|
item.addAudioMixer = { id, config: cfg };
|