@stinkycomputing/sesame-api-client 1.4.1-alpha.2 → 1.4.1-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.cjs +181 -412
- package/dist/browser.cjs.map +2 -2
- package/dist/browser.d.ts +1 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.mjs +181 -412
- package/dist/browser.mjs.map +2 -2
- package/dist/command-list.d.ts +17 -140
- package/dist/command-list.d.ts.map +1 -1
- package/dist/index.cjs +181 -412
- 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 +181 -412
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +44 -141
- package/dist/proto/api.js +208 -418
- package/package.json +1 -1
package/dist/browser.cjs
CHANGED
|
@@ -4492,7 +4492,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4492
4492
|
SourceCommonConfig.prototype.playState = 0;
|
|
4493
4493
|
SourceCommonConfig.prototype.mipMap = false;
|
|
4494
4494
|
SourceCommonConfig.prototype.textureSize = 0;
|
|
4495
|
-
SourceCommonConfig.prototype.decoderType = 0;
|
|
4496
4495
|
SourceCommonConfig.prototype.deinterlace = 0;
|
|
4497
4496
|
SourceCommonConfig.prototype.videoProcessors = $util.emptyArray;
|
|
4498
4497
|
SourceCommonConfig.create = function create(properties) {
|
|
@@ -4541,11 +4540,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4541
4540
|
/* id 8, wireType 0 =*/
|
|
4542
4541
|
64
|
|
4543
4542
|
).int32(message.textureSize);
|
|
4544
|
-
if (message.decoderType != null && Object.hasOwnProperty.call(message, "decoderType"))
|
|
4545
|
-
writer.uint32(
|
|
4546
|
-
/* id 9, wireType 0 =*/
|
|
4547
|
-
72
|
|
4548
|
-
).int32(message.decoderType);
|
|
4549
4543
|
if (message.deinterlace != null && Object.hasOwnProperty.call(message, "deinterlace"))
|
|
4550
4544
|
writer.uint32(
|
|
4551
4545
|
/* id 10, wireType 0 =*/
|
|
@@ -4603,10 +4597,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4603
4597
|
message.textureSize = reader.int32();
|
|
4604
4598
|
break;
|
|
4605
4599
|
}
|
|
4606
|
-
case 9: {
|
|
4607
|
-
message.decoderType = reader.int32();
|
|
4608
|
-
break;
|
|
4609
|
-
}
|
|
4610
4600
|
case 10: {
|
|
4611
4601
|
message.deinterlace = reader.int32();
|
|
4612
4602
|
break;
|
|
@@ -4676,16 +4666,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4676
4666
|
case 2:
|
|
4677
4667
|
break;
|
|
4678
4668
|
}
|
|
4679
|
-
if (message.decoderType != null && message.hasOwnProperty("decoderType"))
|
|
4680
|
-
switch (message.decoderType) {
|
|
4681
|
-
default:
|
|
4682
|
-
return "decoderType: enum value expected";
|
|
4683
|
-
case 0:
|
|
4684
|
-
case 1:
|
|
4685
|
-
case 2:
|
|
4686
|
-
case 3:
|
|
4687
|
-
break;
|
|
4688
|
-
}
|
|
4689
4669
|
if (message.deinterlace != null && message.hasOwnProperty("deinterlace"))
|
|
4690
4670
|
switch (message.deinterlace) {
|
|
4691
4671
|
default:
|
|
@@ -4771,30 +4751,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4771
4751
|
message.textureSize = 2;
|
|
4772
4752
|
break;
|
|
4773
4753
|
}
|
|
4774
|
-
switch (object.decoderType) {
|
|
4775
|
-
default:
|
|
4776
|
-
if (typeof object.decoderType === "number") {
|
|
4777
|
-
message.decoderType = object.decoderType;
|
|
4778
|
-
break;
|
|
4779
|
-
}
|
|
4780
|
-
break;
|
|
4781
|
-
case "DECODER_TYPE_UNSPECIFIED":
|
|
4782
|
-
case 0:
|
|
4783
|
-
message.decoderType = 0;
|
|
4784
|
-
break;
|
|
4785
|
-
case "DECODER_TYPE_H264":
|
|
4786
|
-
case 1:
|
|
4787
|
-
message.decoderType = 1;
|
|
4788
|
-
break;
|
|
4789
|
-
case "DECODER_TYPE_HEVC":
|
|
4790
|
-
case 2:
|
|
4791
|
-
message.decoderType = 2;
|
|
4792
|
-
break;
|
|
4793
|
-
case "DECODER_TYPE_AV1":
|
|
4794
|
-
case 3:
|
|
4795
|
-
message.decoderType = 3;
|
|
4796
|
-
break;
|
|
4797
|
-
}
|
|
4798
4754
|
switch (object.deinterlace) {
|
|
4799
4755
|
default:
|
|
4800
4756
|
if (typeof object.deinterlace === "number") {
|
|
@@ -4846,7 +4802,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4846
4802
|
object.playState = options.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0;
|
|
4847
4803
|
object.mipMap = false;
|
|
4848
4804
|
object.textureSize = options.enums === String ? "SOURCE_TEXTURE_SIZE_UNSPECIFIED" : 0;
|
|
4849
|
-
object.decoderType = options.enums === String ? "DECODER_TYPE_UNSPECIFIED" : 0;
|
|
4850
4805
|
object.deinterlace = options.enums === String ? "DEINTERLACE_TYPE_PROGRESSIVE" : 0;
|
|
4851
4806
|
}
|
|
4852
4807
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
@@ -4865,8 +4820,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4865
4820
|
object.mipMap = message.mipMap;
|
|
4866
4821
|
if (message.textureSize != null && message.hasOwnProperty("textureSize"))
|
|
4867
4822
|
object.textureSize = options.enums === String ? $root.sesame.v1.sources.SourceTextureSize[message.textureSize] === void 0 ? message.textureSize : $root.sesame.v1.sources.SourceTextureSize[message.textureSize] : message.textureSize;
|
|
4868
|
-
if (message.decoderType != null && message.hasOwnProperty("decoderType"))
|
|
4869
|
-
object.decoderType = options.enums === String ? $root.sesame.v1.sources.DecoderType[message.decoderType] === void 0 ? message.decoderType : $root.sesame.v1.sources.DecoderType[message.decoderType] : message.decoderType;
|
|
4870
4823
|
if (message.deinterlace != null && message.hasOwnProperty("deinterlace"))
|
|
4871
4824
|
object.deinterlace = options.enums === String ? $root.sesame.v1.sources.DeinterlaceType[message.deinterlace] === void 0 ? message.deinterlace : $root.sesame.v1.sources.DeinterlaceType[message.deinterlace] : message.deinterlace;
|
|
4872
4825
|
if (message.videoProcessors && message.videoProcessors.length) {
|
|
@@ -4984,6 +4937,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4984
4937
|
}
|
|
4985
4938
|
}
|
|
4986
4939
|
RecorderSourceConfig.prototype.recorderId = "";
|
|
4940
|
+
RecorderSourceConfig.prototype.decoderType = 0;
|
|
4987
4941
|
RecorderSourceConfig.create = function create(properties) {
|
|
4988
4942
|
return new RecorderSourceConfig(properties);
|
|
4989
4943
|
};
|
|
@@ -4995,6 +4949,11 @@ var sesame = $root.sesame = (() => {
|
|
|
4995
4949
|
/* id 1, wireType 2 =*/
|
|
4996
4950
|
10
|
|
4997
4951
|
).string(message.recorderId);
|
|
4952
|
+
if (message.decoderType != null && Object.hasOwnProperty.call(message, "decoderType"))
|
|
4953
|
+
writer.uint32(
|
|
4954
|
+
/* id 2, wireType 0 =*/
|
|
4955
|
+
16
|
|
4956
|
+
).int32(message.decoderType);
|
|
4998
4957
|
return writer;
|
|
4999
4958
|
};
|
|
5000
4959
|
RecorderSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -5013,6 +4972,10 @@ var sesame = $root.sesame = (() => {
|
|
|
5013
4972
|
message.recorderId = reader.string();
|
|
5014
4973
|
break;
|
|
5015
4974
|
}
|
|
4975
|
+
case 2: {
|
|
4976
|
+
message.decoderType = reader.int32();
|
|
4977
|
+
break;
|
|
4978
|
+
}
|
|
5016
4979
|
default:
|
|
5017
4980
|
reader.skipType(tag & 7);
|
|
5018
4981
|
break;
|
|
@@ -5032,6 +4995,16 @@ var sesame = $root.sesame = (() => {
|
|
|
5032
4995
|
if (!$util.isString(message.recorderId))
|
|
5033
4996
|
return "recorderId: string expected";
|
|
5034
4997
|
}
|
|
4998
|
+
if (message.decoderType != null && message.hasOwnProperty("decoderType"))
|
|
4999
|
+
switch (message.decoderType) {
|
|
5000
|
+
default:
|
|
5001
|
+
return "decoderType: enum value expected";
|
|
5002
|
+
case 0:
|
|
5003
|
+
case 1:
|
|
5004
|
+
case 2:
|
|
5005
|
+
case 3:
|
|
5006
|
+
break;
|
|
5007
|
+
}
|
|
5035
5008
|
return null;
|
|
5036
5009
|
};
|
|
5037
5010
|
RecorderSourceConfig.fromObject = function fromObject(object) {
|
|
@@ -5040,16 +5013,44 @@ var sesame = $root.sesame = (() => {
|
|
|
5040
5013
|
let message = new $root.sesame.v1.sources.RecorderSourceConfig();
|
|
5041
5014
|
if (object.recorderId != null)
|
|
5042
5015
|
message.recorderId = String(object.recorderId);
|
|
5016
|
+
switch (object.decoderType) {
|
|
5017
|
+
default:
|
|
5018
|
+
if (typeof object.decoderType === "number") {
|
|
5019
|
+
message.decoderType = object.decoderType;
|
|
5020
|
+
break;
|
|
5021
|
+
}
|
|
5022
|
+
break;
|
|
5023
|
+
case "DECODER_TYPE_UNSPECIFIED":
|
|
5024
|
+
case 0:
|
|
5025
|
+
message.decoderType = 0;
|
|
5026
|
+
break;
|
|
5027
|
+
case "DECODER_TYPE_H264":
|
|
5028
|
+
case 1:
|
|
5029
|
+
message.decoderType = 1;
|
|
5030
|
+
break;
|
|
5031
|
+
case "DECODER_TYPE_HEVC":
|
|
5032
|
+
case 2:
|
|
5033
|
+
message.decoderType = 2;
|
|
5034
|
+
break;
|
|
5035
|
+
case "DECODER_TYPE_AV1":
|
|
5036
|
+
case 3:
|
|
5037
|
+
message.decoderType = 3;
|
|
5038
|
+
break;
|
|
5039
|
+
}
|
|
5043
5040
|
return message;
|
|
5044
5041
|
};
|
|
5045
5042
|
RecorderSourceConfig.toObject = function toObject(message, options) {
|
|
5046
5043
|
if (!options)
|
|
5047
5044
|
options = {};
|
|
5048
5045
|
let object = {};
|
|
5049
|
-
if (options.defaults)
|
|
5046
|
+
if (options.defaults) {
|
|
5050
5047
|
object.recorderId = "";
|
|
5048
|
+
object.decoderType = options.enums === String ? "DECODER_TYPE_UNSPECIFIED" : 0;
|
|
5049
|
+
}
|
|
5051
5050
|
if (message.recorderId != null && message.hasOwnProperty("recorderId"))
|
|
5052
5051
|
object.recorderId = message.recorderId;
|
|
5052
|
+
if (message.decoderType != null && message.hasOwnProperty("decoderType"))
|
|
5053
|
+
object.decoderType = options.enums === String ? $root.sesame.v1.sources.DecoderType[message.decoderType] === void 0 ? message.decoderType : $root.sesame.v1.sources.DecoderType[message.decoderType] : message.decoderType;
|
|
5053
5054
|
return object;
|
|
5054
5055
|
};
|
|
5055
5056
|
RecorderSourceConfig.prototype.toJSON = function toJSON() {
|
|
@@ -14209,6 +14210,9 @@ var sesame = $root.sesame = (() => {
|
|
|
14209
14210
|
EncoderConfig.prototype.preset = 0;
|
|
14210
14211
|
EncoderConfig.prototype.bitrateKbps = 0;
|
|
14211
14212
|
EncoderConfig.prototype.keyframeInterval = 0;
|
|
14213
|
+
EncoderConfig.prototype.width = 0;
|
|
14214
|
+
EncoderConfig.prototype.height = 0;
|
|
14215
|
+
EncoderConfig.prototype.fps = 0;
|
|
14212
14216
|
EncoderConfig.create = function create(properties) {
|
|
14213
14217
|
return new EncoderConfig(properties);
|
|
14214
14218
|
};
|
|
@@ -14235,6 +14239,21 @@ var sesame = $root.sesame = (() => {
|
|
|
14235
14239
|
/* id 4, wireType 0 =*/
|
|
14236
14240
|
32
|
|
14237
14241
|
).uint32(message.keyframeInterval);
|
|
14242
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
14243
|
+
writer.uint32(
|
|
14244
|
+
/* id 5, wireType 0 =*/
|
|
14245
|
+
40
|
|
14246
|
+
).uint32(message.width);
|
|
14247
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
14248
|
+
writer.uint32(
|
|
14249
|
+
/* id 6, wireType 0 =*/
|
|
14250
|
+
48
|
|
14251
|
+
).uint32(message.height);
|
|
14252
|
+
if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
|
|
14253
|
+
writer.uint32(
|
|
14254
|
+
/* id 7, wireType 5 =*/
|
|
14255
|
+
61
|
|
14256
|
+
).float(message.fps);
|
|
14238
14257
|
return writer;
|
|
14239
14258
|
};
|
|
14240
14259
|
EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -14265,6 +14284,18 @@ var sesame = $root.sesame = (() => {
|
|
|
14265
14284
|
message.keyframeInterval = reader.uint32();
|
|
14266
14285
|
break;
|
|
14267
14286
|
}
|
|
14287
|
+
case 5: {
|
|
14288
|
+
message.width = reader.uint32();
|
|
14289
|
+
break;
|
|
14290
|
+
}
|
|
14291
|
+
case 6: {
|
|
14292
|
+
message.height = reader.uint32();
|
|
14293
|
+
break;
|
|
14294
|
+
}
|
|
14295
|
+
case 7: {
|
|
14296
|
+
message.fps = reader.float();
|
|
14297
|
+
break;
|
|
14298
|
+
}
|
|
14268
14299
|
default:
|
|
14269
14300
|
reader.skipType(tag & 7);
|
|
14270
14301
|
break;
|
|
@@ -14311,6 +14342,18 @@ var sesame = $root.sesame = (() => {
|
|
|
14311
14342
|
if (!$util.isInteger(message.keyframeInterval))
|
|
14312
14343
|
return "keyframeInterval: integer expected";
|
|
14313
14344
|
}
|
|
14345
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
14346
|
+
if (!$util.isInteger(message.width))
|
|
14347
|
+
return "width: integer expected";
|
|
14348
|
+
}
|
|
14349
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
14350
|
+
if (!$util.isInteger(message.height))
|
|
14351
|
+
return "height: integer expected";
|
|
14352
|
+
}
|
|
14353
|
+
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
14354
|
+
if (typeof message.fps !== "number")
|
|
14355
|
+
return "fps: number expected";
|
|
14356
|
+
}
|
|
14314
14357
|
return null;
|
|
14315
14358
|
};
|
|
14316
14359
|
EncoderConfig.fromObject = function fromObject(object) {
|
|
@@ -14381,6 +14424,12 @@ var sesame = $root.sesame = (() => {
|
|
|
14381
14424
|
message.bitrateKbps = object.bitrateKbps >>> 0;
|
|
14382
14425
|
if (object.keyframeInterval != null)
|
|
14383
14426
|
message.keyframeInterval = object.keyframeInterval >>> 0;
|
|
14427
|
+
if (object.width != null)
|
|
14428
|
+
message.width = object.width >>> 0;
|
|
14429
|
+
if (object.height != null)
|
|
14430
|
+
message.height = object.height >>> 0;
|
|
14431
|
+
if (object.fps != null)
|
|
14432
|
+
message.fps = Number(object.fps);
|
|
14384
14433
|
return message;
|
|
14385
14434
|
};
|
|
14386
14435
|
EncoderConfig.toObject = function toObject(message, options) {
|
|
@@ -14392,6 +14441,9 @@ var sesame = $root.sesame = (() => {
|
|
|
14392
14441
|
object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
|
|
14393
14442
|
object.bitrateKbps = 0;
|
|
14394
14443
|
object.keyframeInterval = 0;
|
|
14444
|
+
object.width = 0;
|
|
14445
|
+
object.height = 0;
|
|
14446
|
+
object.fps = 0;
|
|
14395
14447
|
}
|
|
14396
14448
|
if (message.codecId != null && message.hasOwnProperty("codecId"))
|
|
14397
14449
|
object.codecId = options.enums === String ? $root.sesame.v1.common.CodecId[message.codecId] === void 0 ? message.codecId : $root.sesame.v1.common.CodecId[message.codecId] : message.codecId;
|
|
@@ -14401,168 +14453,24 @@ var sesame = $root.sesame = (() => {
|
|
|
14401
14453
|
object.bitrateKbps = message.bitrateKbps;
|
|
14402
14454
|
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
|
|
14403
14455
|
object.keyframeInterval = message.keyframeInterval;
|
|
14404
|
-
return object;
|
|
14405
|
-
};
|
|
14406
|
-
EncoderConfig.prototype.toJSON = function toJSON() {
|
|
14407
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14408
|
-
};
|
|
14409
|
-
EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14410
|
-
if (typeUrlPrefix === void 0) {
|
|
14411
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
14412
|
-
}
|
|
14413
|
-
return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
|
|
14414
|
-
};
|
|
14415
|
-
return EncoderConfig;
|
|
14416
|
-
}();
|
|
14417
|
-
outputs.OutputEncodedConfig = function() {
|
|
14418
|
-
function OutputEncodedConfig(properties) {
|
|
14419
|
-
if (properties) {
|
|
14420
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14421
|
-
if (properties[keys[i]] != null)
|
|
14422
|
-
this[keys[i]] = properties[keys[i]];
|
|
14423
|
-
}
|
|
14424
|
-
}
|
|
14425
|
-
OutputEncodedConfig.prototype.width = 0;
|
|
14426
|
-
OutputEncodedConfig.prototype.height = 0;
|
|
14427
|
-
OutputEncodedConfig.prototype.fps = 0;
|
|
14428
|
-
OutputEncodedConfig.prototype.encoderConfig = null;
|
|
14429
|
-
OutputEncodedConfig.create = function create(properties) {
|
|
14430
|
-
return new OutputEncodedConfig(properties);
|
|
14431
|
-
};
|
|
14432
|
-
OutputEncodedConfig.encode = function encode(message, writer) {
|
|
14433
|
-
if (!writer)
|
|
14434
|
-
writer = $Writer.create();
|
|
14435
|
-
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
14436
|
-
writer.uint32(
|
|
14437
|
-
/* id 1, wireType 0 =*/
|
|
14438
|
-
8
|
|
14439
|
-
).uint32(message.width);
|
|
14440
|
-
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
14441
|
-
writer.uint32(
|
|
14442
|
-
/* id 2, wireType 0 =*/
|
|
14443
|
-
16
|
|
14444
|
-
).uint32(message.height);
|
|
14445
|
-
if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
|
|
14446
|
-
writer.uint32(
|
|
14447
|
-
/* id 3, wireType 5 =*/
|
|
14448
|
-
29
|
|
14449
|
-
).float(message.fps);
|
|
14450
|
-
if (message.encoderConfig != null && Object.hasOwnProperty.call(message, "encoderConfig"))
|
|
14451
|
-
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoderConfig, writer.uint32(
|
|
14452
|
-
/* id 4, wireType 2 =*/
|
|
14453
|
-
34
|
|
14454
|
-
).fork()).ldelim();
|
|
14455
|
-
return writer;
|
|
14456
|
-
};
|
|
14457
|
-
OutputEncodedConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14458
|
-
return this.encode(message, writer).ldelim();
|
|
14459
|
-
};
|
|
14460
|
-
OutputEncodedConfig.decode = function decode(reader, length, error) {
|
|
14461
|
-
if (!(reader instanceof $Reader))
|
|
14462
|
-
reader = $Reader.create(reader);
|
|
14463
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.OutputEncodedConfig();
|
|
14464
|
-
while (reader.pos < end) {
|
|
14465
|
-
let tag = reader.uint32();
|
|
14466
|
-
if (tag === error)
|
|
14467
|
-
break;
|
|
14468
|
-
switch (tag >>> 3) {
|
|
14469
|
-
case 1: {
|
|
14470
|
-
message.width = reader.uint32();
|
|
14471
|
-
break;
|
|
14472
|
-
}
|
|
14473
|
-
case 2: {
|
|
14474
|
-
message.height = reader.uint32();
|
|
14475
|
-
break;
|
|
14476
|
-
}
|
|
14477
|
-
case 3: {
|
|
14478
|
-
message.fps = reader.float();
|
|
14479
|
-
break;
|
|
14480
|
-
}
|
|
14481
|
-
case 4: {
|
|
14482
|
-
message.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
14483
|
-
break;
|
|
14484
|
-
}
|
|
14485
|
-
default:
|
|
14486
|
-
reader.skipType(tag & 7);
|
|
14487
|
-
break;
|
|
14488
|
-
}
|
|
14489
|
-
}
|
|
14490
|
-
return message;
|
|
14491
|
-
};
|
|
14492
|
-
OutputEncodedConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
14493
|
-
if (!(reader instanceof $Reader))
|
|
14494
|
-
reader = new $Reader(reader);
|
|
14495
|
-
return this.decode(reader, reader.uint32());
|
|
14496
|
-
};
|
|
14497
|
-
OutputEncodedConfig.verify = function verify(message) {
|
|
14498
|
-
if (typeof message !== "object" || message === null)
|
|
14499
|
-
return "object expected";
|
|
14500
|
-
if (message.width != null && message.hasOwnProperty("width")) {
|
|
14501
|
-
if (!$util.isInteger(message.width))
|
|
14502
|
-
return "width: integer expected";
|
|
14503
|
-
}
|
|
14504
|
-
if (message.height != null && message.hasOwnProperty("height")) {
|
|
14505
|
-
if (!$util.isInteger(message.height))
|
|
14506
|
-
return "height: integer expected";
|
|
14507
|
-
}
|
|
14508
|
-
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
14509
|
-
if (typeof message.fps !== "number")
|
|
14510
|
-
return "fps: number expected";
|
|
14511
|
-
}
|
|
14512
|
-
if (message.encoderConfig != null && message.hasOwnProperty("encoderConfig")) {
|
|
14513
|
-
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoderConfig);
|
|
14514
|
-
if (error)
|
|
14515
|
-
return "encoderConfig." + error;
|
|
14516
|
-
}
|
|
14517
|
-
return null;
|
|
14518
|
-
};
|
|
14519
|
-
OutputEncodedConfig.fromObject = function fromObject(object) {
|
|
14520
|
-
if (object instanceof $root.sesame.v1.outputs.OutputEncodedConfig)
|
|
14521
|
-
return object;
|
|
14522
|
-
let message = new $root.sesame.v1.outputs.OutputEncodedConfig();
|
|
14523
|
-
if (object.width != null)
|
|
14524
|
-
message.width = object.width >>> 0;
|
|
14525
|
-
if (object.height != null)
|
|
14526
|
-
message.height = object.height >>> 0;
|
|
14527
|
-
if (object.fps != null)
|
|
14528
|
-
message.fps = Number(object.fps);
|
|
14529
|
-
if (object.encoderConfig != null) {
|
|
14530
|
-
if (typeof object.encoderConfig !== "object")
|
|
14531
|
-
throw TypeError(".sesame.v1.outputs.OutputEncodedConfig.encoderConfig: object expected");
|
|
14532
|
-
message.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoderConfig);
|
|
14533
|
-
}
|
|
14534
|
-
return message;
|
|
14535
|
-
};
|
|
14536
|
-
OutputEncodedConfig.toObject = function toObject(message, options) {
|
|
14537
|
-
if (!options)
|
|
14538
|
-
options = {};
|
|
14539
|
-
let object = {};
|
|
14540
|
-
if (options.defaults) {
|
|
14541
|
-
object.width = 0;
|
|
14542
|
-
object.height = 0;
|
|
14543
|
-
object.fps = 0;
|
|
14544
|
-
object.encoderConfig = null;
|
|
14545
|
-
}
|
|
14546
14456
|
if (message.width != null && message.hasOwnProperty("width"))
|
|
14547
14457
|
object.width = message.width;
|
|
14548
14458
|
if (message.height != null && message.hasOwnProperty("height"))
|
|
14549
14459
|
object.height = message.height;
|
|
14550
14460
|
if (message.fps != null && message.hasOwnProperty("fps"))
|
|
14551
14461
|
object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
|
|
14552
|
-
if (message.encoderConfig != null && message.hasOwnProperty("encoderConfig"))
|
|
14553
|
-
object.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoderConfig, options);
|
|
14554
14462
|
return object;
|
|
14555
14463
|
};
|
|
14556
|
-
|
|
14464
|
+
EncoderConfig.prototype.toJSON = function toJSON() {
|
|
14557
14465
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14558
14466
|
};
|
|
14559
|
-
|
|
14467
|
+
EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14560
14468
|
if (typeUrlPrefix === void 0) {
|
|
14561
14469
|
typeUrlPrefix = "type.googleapis.com";
|
|
14562
14470
|
}
|
|
14563
|
-
return typeUrlPrefix + "/sesame.v1.outputs.
|
|
14471
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
|
|
14564
14472
|
};
|
|
14565
|
-
return
|
|
14473
|
+
return EncoderConfig;
|
|
14566
14474
|
}();
|
|
14567
14475
|
outputs.DecklinkOutputConfig = function() {
|
|
14568
14476
|
function DecklinkOutputConfig(properties) {
|
|
@@ -14733,7 +14641,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14733
14641
|
}
|
|
14734
14642
|
}
|
|
14735
14643
|
EncodedWebSocketOutputConfig.prototype.channel = "";
|
|
14736
|
-
EncodedWebSocketOutputConfig.prototype.
|
|
14644
|
+
EncodedWebSocketOutputConfig.prototype.encoder = null;
|
|
14737
14645
|
EncodedWebSocketOutputConfig.create = function create(properties) {
|
|
14738
14646
|
return new EncodedWebSocketOutputConfig(properties);
|
|
14739
14647
|
};
|
|
@@ -14745,8 +14653,8 @@ var sesame = $root.sesame = (() => {
|
|
|
14745
14653
|
/* id 1, wireType 2 =*/
|
|
14746
14654
|
10
|
|
14747
14655
|
).string(message.channel);
|
|
14748
|
-
if (message.
|
|
14749
|
-
$root.sesame.v1.outputs.
|
|
14656
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
14657
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
14750
14658
|
/* id 2, wireType 2 =*/
|
|
14751
14659
|
18
|
|
14752
14660
|
).fork()).ldelim();
|
|
@@ -14769,7 +14677,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14769
14677
|
break;
|
|
14770
14678
|
}
|
|
14771
14679
|
case 2: {
|
|
14772
|
-
message.
|
|
14680
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
14773
14681
|
break;
|
|
14774
14682
|
}
|
|
14775
14683
|
default:
|
|
@@ -14791,10 +14699,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14791
14699
|
if (!$util.isString(message.channel))
|
|
14792
14700
|
return "channel: string expected";
|
|
14793
14701
|
}
|
|
14794
|
-
if (message.
|
|
14795
|
-
let error = $root.sesame.v1.outputs.
|
|
14702
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
14703
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
14796
14704
|
if (error)
|
|
14797
|
-
return "
|
|
14705
|
+
return "encoder." + error;
|
|
14798
14706
|
}
|
|
14799
14707
|
return null;
|
|
14800
14708
|
};
|
|
@@ -14804,10 +14712,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14804
14712
|
let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
|
|
14805
14713
|
if (object.channel != null)
|
|
14806
14714
|
message.channel = String(object.channel);
|
|
14807
|
-
if (object.
|
|
14808
|
-
if (typeof object.
|
|
14809
|
-
throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.
|
|
14810
|
-
message.
|
|
14715
|
+
if (object.encoder != null) {
|
|
14716
|
+
if (typeof object.encoder !== "object")
|
|
14717
|
+
throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoder: object expected");
|
|
14718
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
14811
14719
|
}
|
|
14812
14720
|
return message;
|
|
14813
14721
|
};
|
|
@@ -14817,12 +14725,12 @@ var sesame = $root.sesame = (() => {
|
|
|
14817
14725
|
let object = {};
|
|
14818
14726
|
if (options.defaults) {
|
|
14819
14727
|
object.channel = "";
|
|
14820
|
-
object.
|
|
14728
|
+
object.encoder = null;
|
|
14821
14729
|
}
|
|
14822
14730
|
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
14823
14731
|
object.channel = message.channel;
|
|
14824
|
-
if (message.
|
|
14825
|
-
object.
|
|
14732
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
14733
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
14826
14734
|
return object;
|
|
14827
14735
|
};
|
|
14828
14736
|
EncodedWebSocketOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -14844,7 +14752,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14844
14752
|
this[keys[i]] = properties[keys[i]];
|
|
14845
14753
|
}
|
|
14846
14754
|
}
|
|
14847
|
-
EncodedRecorderOutputConfig.prototype.
|
|
14755
|
+
EncodedRecorderOutputConfig.prototype.encoder = null;
|
|
14848
14756
|
EncodedRecorderOutputConfig.prototype.filename = "";
|
|
14849
14757
|
EncodedRecorderOutputConfig.prototype.sizeGb = 0;
|
|
14850
14758
|
EncodedRecorderOutputConfig.prototype.groupId = "";
|
|
@@ -14855,8 +14763,8 @@ var sesame = $root.sesame = (() => {
|
|
|
14855
14763
|
EncodedRecorderOutputConfig.encode = function encode(message, writer) {
|
|
14856
14764
|
if (!writer)
|
|
14857
14765
|
writer = $Writer.create();
|
|
14858
|
-
if (message.
|
|
14859
|
-
$root.sesame.v1.outputs.
|
|
14766
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
14767
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
14860
14768
|
/* id 1, wireType 2 =*/
|
|
14861
14769
|
10
|
|
14862
14770
|
).fork()).ldelim();
|
|
@@ -14895,7 +14803,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14895
14803
|
break;
|
|
14896
14804
|
switch (tag >>> 3) {
|
|
14897
14805
|
case 1: {
|
|
14898
|
-
message.
|
|
14806
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
14899
14807
|
break;
|
|
14900
14808
|
}
|
|
14901
14809
|
case 2: {
|
|
@@ -14929,10 +14837,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14929
14837
|
EncodedRecorderOutputConfig.verify = function verify(message) {
|
|
14930
14838
|
if (typeof message !== "object" || message === null)
|
|
14931
14839
|
return "object expected";
|
|
14932
|
-
if (message.
|
|
14933
|
-
let error = $root.sesame.v1.outputs.
|
|
14840
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
14841
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
14934
14842
|
if (error)
|
|
14935
|
-
return "
|
|
14843
|
+
return "encoder." + error;
|
|
14936
14844
|
}
|
|
14937
14845
|
if (message.filename != null && message.hasOwnProperty("filename")) {
|
|
14938
14846
|
if (!$util.isString(message.filename))
|
|
@@ -14961,10 +14869,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14961
14869
|
if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
|
|
14962
14870
|
return object;
|
|
14963
14871
|
let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
|
|
14964
|
-
if (object.
|
|
14965
|
-
if (typeof object.
|
|
14966
|
-
throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.
|
|
14967
|
-
message.
|
|
14872
|
+
if (object.encoder != null) {
|
|
14873
|
+
if (typeof object.encoder !== "object")
|
|
14874
|
+
throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
|
|
14875
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
14968
14876
|
}
|
|
14969
14877
|
if (object.filename != null)
|
|
14970
14878
|
message.filename = String(object.filename);
|
|
@@ -14999,14 +14907,14 @@ var sesame = $root.sesame = (() => {
|
|
|
14999
14907
|
options = {};
|
|
15000
14908
|
let object = {};
|
|
15001
14909
|
if (options.defaults) {
|
|
15002
|
-
object.
|
|
14910
|
+
object.encoder = null;
|
|
15003
14911
|
object.filename = "";
|
|
15004
14912
|
object.sizeGb = 0;
|
|
15005
14913
|
object.groupId = "";
|
|
15006
14914
|
object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
|
|
15007
14915
|
}
|
|
15008
|
-
if (message.
|
|
15009
|
-
object.
|
|
14916
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
14917
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
15010
14918
|
if (message.filename != null && message.hasOwnProperty("filename"))
|
|
15011
14919
|
object.filename = message.filename;
|
|
15012
14920
|
if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
|
|
@@ -15038,7 +14946,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15038
14946
|
this[keys[i]] = properties[keys[i]];
|
|
15039
14947
|
}
|
|
15040
14948
|
}
|
|
15041
|
-
EncodedSuperSlowMoRecorderOutputConfig.prototype.
|
|
14949
|
+
EncodedSuperSlowMoRecorderOutputConfig.prototype.encoder = null;
|
|
15042
14950
|
EncodedSuperSlowMoRecorderOutputConfig.prototype.filename = "";
|
|
15043
14951
|
EncodedSuperSlowMoRecorderOutputConfig.prototype.sizeGb = 0;
|
|
15044
14952
|
EncodedSuperSlowMoRecorderOutputConfig.prototype.groupId = "";
|
|
@@ -15051,8 +14959,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15051
14959
|
EncodedSuperSlowMoRecorderOutputConfig.encode = function encode(message, writer) {
|
|
15052
14960
|
if (!writer)
|
|
15053
14961
|
writer = $Writer.create();
|
|
15054
|
-
if (message.
|
|
15055
|
-
$root.sesame.v1.outputs.
|
|
14962
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
14963
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
15056
14964
|
/* id 1, wireType 2 =*/
|
|
15057
14965
|
10
|
|
15058
14966
|
).fork()).ldelim();
|
|
@@ -15103,7 +15011,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15103
15011
|
break;
|
|
15104
15012
|
switch (tag >>> 3) {
|
|
15105
15013
|
case 1: {
|
|
15106
|
-
message.
|
|
15014
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
15107
15015
|
break;
|
|
15108
15016
|
}
|
|
15109
15017
|
case 2: {
|
|
@@ -15149,10 +15057,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15149
15057
|
EncodedSuperSlowMoRecorderOutputConfig.verify = function verify(message) {
|
|
15150
15058
|
if (typeof message !== "object" || message === null)
|
|
15151
15059
|
return "object expected";
|
|
15152
|
-
if (message.
|
|
15153
|
-
let error = $root.sesame.v1.outputs.
|
|
15060
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
15061
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
15154
15062
|
if (error)
|
|
15155
|
-
return "
|
|
15063
|
+
return "encoder." + error;
|
|
15156
15064
|
}
|
|
15157
15065
|
if (message.filename != null && message.hasOwnProperty("filename")) {
|
|
15158
15066
|
if (!$util.isString(message.filename))
|
|
@@ -15195,10 +15103,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15195
15103
|
if (object instanceof $root.sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig)
|
|
15196
15104
|
return object;
|
|
15197
15105
|
let message = new $root.sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig();
|
|
15198
|
-
if (object.
|
|
15199
|
-
if (typeof object.
|
|
15200
|
-
throw TypeError(".sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig.
|
|
15201
|
-
message.
|
|
15106
|
+
if (object.encoder != null) {
|
|
15107
|
+
if (typeof object.encoder !== "object")
|
|
15108
|
+
throw TypeError(".sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig.encoder: object expected");
|
|
15109
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
15202
15110
|
}
|
|
15203
15111
|
if (object.filename != null)
|
|
15204
15112
|
message.filename = String(object.filename);
|
|
@@ -15251,14 +15159,14 @@ var sesame = $root.sesame = (() => {
|
|
|
15251
15159
|
object.sourceIds = [];
|
|
15252
15160
|
}
|
|
15253
15161
|
if (options.defaults) {
|
|
15254
|
-
object.
|
|
15162
|
+
object.encoder = null;
|
|
15255
15163
|
object.filename = "";
|
|
15256
15164
|
object.sizeGb = 0;
|
|
15257
15165
|
object.groupId = "";
|
|
15258
15166
|
object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
|
|
15259
15167
|
}
|
|
15260
|
-
if (message.
|
|
15261
|
-
object.
|
|
15168
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
15169
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
15262
15170
|
if (message.filename != null && message.hasOwnProperty("filename"))
|
|
15263
15171
|
object.filename = message.filename;
|
|
15264
15172
|
if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
|
|
@@ -15299,7 +15207,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15299
15207
|
}
|
|
15300
15208
|
}
|
|
15301
15209
|
EncodedSrtOutputConfig.prototype.url = "";
|
|
15302
|
-
EncodedSrtOutputConfig.prototype.
|
|
15210
|
+
EncodedSrtOutputConfig.prototype.encoder = null;
|
|
15303
15211
|
EncodedSrtOutputConfig.create = function create(properties) {
|
|
15304
15212
|
return new EncodedSrtOutputConfig(properties);
|
|
15305
15213
|
};
|
|
@@ -15311,8 +15219,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15311
15219
|
/* id 1, wireType 2 =*/
|
|
15312
15220
|
10
|
|
15313
15221
|
).string(message.url);
|
|
15314
|
-
if (message.
|
|
15315
|
-
$root.sesame.v1.outputs.
|
|
15222
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
15223
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
15316
15224
|
/* id 2, wireType 2 =*/
|
|
15317
15225
|
18
|
|
15318
15226
|
).fork()).ldelim();
|
|
@@ -15335,7 +15243,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15335
15243
|
break;
|
|
15336
15244
|
}
|
|
15337
15245
|
case 2: {
|
|
15338
|
-
message.
|
|
15246
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
15339
15247
|
break;
|
|
15340
15248
|
}
|
|
15341
15249
|
default:
|
|
@@ -15357,10 +15265,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15357
15265
|
if (!$util.isString(message.url))
|
|
15358
15266
|
return "url: string expected";
|
|
15359
15267
|
}
|
|
15360
|
-
if (message.
|
|
15361
|
-
let error = $root.sesame.v1.outputs.
|
|
15268
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
15269
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
15362
15270
|
if (error)
|
|
15363
|
-
return "
|
|
15271
|
+
return "encoder." + error;
|
|
15364
15272
|
}
|
|
15365
15273
|
return null;
|
|
15366
15274
|
};
|
|
@@ -15370,10 +15278,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15370
15278
|
let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
|
|
15371
15279
|
if (object.url != null)
|
|
15372
15280
|
message.url = String(object.url);
|
|
15373
|
-
if (object.
|
|
15374
|
-
if (typeof object.
|
|
15375
|
-
throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.
|
|
15376
|
-
message.
|
|
15281
|
+
if (object.encoder != null) {
|
|
15282
|
+
if (typeof object.encoder !== "object")
|
|
15283
|
+
throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
|
|
15284
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
15377
15285
|
}
|
|
15378
15286
|
return message;
|
|
15379
15287
|
};
|
|
@@ -15383,12 +15291,12 @@ var sesame = $root.sesame = (() => {
|
|
|
15383
15291
|
let object = {};
|
|
15384
15292
|
if (options.defaults) {
|
|
15385
15293
|
object.url = "";
|
|
15386
|
-
object.
|
|
15294
|
+
object.encoder = null;
|
|
15387
15295
|
}
|
|
15388
15296
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
15389
15297
|
object.url = message.url;
|
|
15390
|
-
if (message.
|
|
15391
|
-
object.
|
|
15298
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
15299
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
15392
15300
|
return object;
|
|
15393
15301
|
};
|
|
15394
15302
|
EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -15410,7 +15318,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15410
15318
|
this[keys[i]] = properties[keys[i]];
|
|
15411
15319
|
}
|
|
15412
15320
|
}
|
|
15413
|
-
EncodedMoqOutputConfig.prototype.
|
|
15321
|
+
EncodedMoqOutputConfig.prototype.encoder = null;
|
|
15414
15322
|
EncodedMoqOutputConfig.prototype.url = "";
|
|
15415
15323
|
EncodedMoqOutputConfig.prototype.broadcast = "";
|
|
15416
15324
|
EncodedMoqOutputConfig.prototype.key = "";
|
|
@@ -15420,8 +15328,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15420
15328
|
EncodedMoqOutputConfig.encode = function encode(message, writer) {
|
|
15421
15329
|
if (!writer)
|
|
15422
15330
|
writer = $Writer.create();
|
|
15423
|
-
if (message.
|
|
15424
|
-
$root.sesame.v1.outputs.
|
|
15331
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
15332
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
15425
15333
|
/* id 1, wireType 2 =*/
|
|
15426
15334
|
10
|
|
15427
15335
|
).fork()).ldelim();
|
|
@@ -15455,7 +15363,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15455
15363
|
break;
|
|
15456
15364
|
switch (tag >>> 3) {
|
|
15457
15365
|
case 1: {
|
|
15458
|
-
message.
|
|
15366
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
15459
15367
|
break;
|
|
15460
15368
|
}
|
|
15461
15369
|
case 2: {
|
|
@@ -15485,10 +15393,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15485
15393
|
EncodedMoqOutputConfig.verify = function verify(message) {
|
|
15486
15394
|
if (typeof message !== "object" || message === null)
|
|
15487
15395
|
return "object expected";
|
|
15488
|
-
if (message.
|
|
15489
|
-
let error = $root.sesame.v1.outputs.
|
|
15396
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
15397
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
15490
15398
|
if (error)
|
|
15491
|
-
return "
|
|
15399
|
+
return "encoder." + error;
|
|
15492
15400
|
}
|
|
15493
15401
|
if (message.url != null && message.hasOwnProperty("url")) {
|
|
15494
15402
|
if (!$util.isString(message.url))
|
|
@@ -15508,10 +15416,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15508
15416
|
if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
|
|
15509
15417
|
return object;
|
|
15510
15418
|
let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
|
|
15511
|
-
if (object.
|
|
15512
|
-
if (typeof object.
|
|
15513
|
-
throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.
|
|
15514
|
-
message.
|
|
15419
|
+
if (object.encoder != null) {
|
|
15420
|
+
if (typeof object.encoder !== "object")
|
|
15421
|
+
throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
|
|
15422
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
15515
15423
|
}
|
|
15516
15424
|
if (object.url != null)
|
|
15517
15425
|
message.url = String(object.url);
|
|
@@ -15526,13 +15434,13 @@ var sesame = $root.sesame = (() => {
|
|
|
15526
15434
|
options = {};
|
|
15527
15435
|
let object = {};
|
|
15528
15436
|
if (options.defaults) {
|
|
15529
|
-
object.
|
|
15437
|
+
object.encoder = null;
|
|
15530
15438
|
object.url = "";
|
|
15531
15439
|
object.broadcast = "";
|
|
15532
15440
|
object.key = "";
|
|
15533
15441
|
}
|
|
15534
|
-
if (message.
|
|
15535
|
-
object.
|
|
15442
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
15443
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
15536
15444
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
15537
15445
|
object.url = message.url;
|
|
15538
15446
|
if (message.broadcast != null && message.hasOwnProperty("broadcast"))
|
|
@@ -21244,145 +21152,6 @@ var CommandList = class {
|
|
|
21244
21152
|
get_command_list_msg() {
|
|
21245
21153
|
return this.cl;
|
|
21246
21154
|
}
|
|
21247
|
-
buildSourceConfig(cfg) {
|
|
21248
|
-
var _a;
|
|
21249
|
-
const config = {
|
|
21250
|
-
common: {
|
|
21251
|
-
userId: cfg.userId,
|
|
21252
|
-
useAsClock: cfg.useAsClock,
|
|
21253
|
-
audioOnly: cfg.audioOnly,
|
|
21254
|
-
audioChannels: cfg.audioChannels,
|
|
21255
|
-
loop: cfg.loop,
|
|
21256
|
-
playState: cfg.playState,
|
|
21257
|
-
mipMap: cfg.mipMap,
|
|
21258
|
-
textureSize: cfg.textureSize,
|
|
21259
|
-
decoderType: cfg.decoderType,
|
|
21260
|
-
deinterlace: cfg.deinterlace,
|
|
21261
|
-
videoProcessors: cfg.videoProcessors || []
|
|
21262
|
-
}
|
|
21263
|
-
};
|
|
21264
|
-
switch (cfg.sourceType) {
|
|
21265
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_FILE:
|
|
21266
|
-
config.file = { url: ((_a = cfg.fileConfig) == null ? void 0 : _a.filename) || cfg.url || "" };
|
|
21267
|
-
break;
|
|
21268
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_RECORDER:
|
|
21269
|
-
if (cfg.recorderConfig == null) throw new Error("No recorder source config found");
|
|
21270
|
-
config.recorder = cfg.recorderConfig;
|
|
21271
|
-
break;
|
|
21272
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_BROWSER:
|
|
21273
|
-
if (!cfg.url) throw new Error("No browser URL found");
|
|
21274
|
-
config.browser = { url: cfg.url };
|
|
21275
|
-
break;
|
|
21276
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_RTT:
|
|
21277
|
-
if (cfg.rttConfig == null) throw new Error("No RTT config found");
|
|
21278
|
-
config.rtt = cfg.rttConfig;
|
|
21279
|
-
break;
|
|
21280
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_DECKLINK:
|
|
21281
|
-
if (cfg.decklinkConfig == null) throw new Error("No decklink source config found");
|
|
21282
|
-
config.decklink = cfg.decklinkConfig;
|
|
21283
|
-
break;
|
|
21284
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_SIGNAL_GENERATOR:
|
|
21285
|
-
config.signalGenerator = {};
|
|
21286
|
-
break;
|
|
21287
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_SYSTEM_AUDIO:
|
|
21288
|
-
config.systemAudio = { deviceName: cfg.url || "" };
|
|
21289
|
-
break;
|
|
21290
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_SRT_STREAM:
|
|
21291
|
-
config.srtStream = cfg.srtConfig || (cfg.url ? { url: cfg.url } : void 0);
|
|
21292
|
-
if (config.srtStream == null) throw new Error("No SRT source config found");
|
|
21293
|
-
if (cfg.decodeBufferFrames) config.srtStream.decodeBufferFrames = cfg.decodeBufferFrames;
|
|
21294
|
-
break;
|
|
21295
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_WEBSOCKET:
|
|
21296
|
-
if (!cfg.url) throw new Error("No websocket channel found");
|
|
21297
|
-
config.websocket = { channel: cfg.url };
|
|
21298
|
-
if (cfg.decodeBufferFrames) config.websocket.decodeBufferFrames = cfg.decodeBufferFrames;
|
|
21299
|
-
break;
|
|
21300
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_MOQ:
|
|
21301
|
-
if (cfg.moqConfig == null) throw new Error("No MoQ source config found");
|
|
21302
|
-
config.moq = cfg.moqConfig;
|
|
21303
|
-
if (cfg.decodeBufferFrames) config.moq.decodeBufferFrames = cfg.decodeBufferFrames;
|
|
21304
|
-
break;
|
|
21305
|
-
default:
|
|
21306
|
-
throw new Error(`Unsupported source type: ${cfg.sourceType}`);
|
|
21307
|
-
}
|
|
21308
|
-
return config;
|
|
21309
|
-
}
|
|
21310
|
-
buildOutputEncodedConfig(cfg) {
|
|
21311
|
-
return {
|
|
21312
|
-
width: cfg.width,
|
|
21313
|
-
height: cfg.height,
|
|
21314
|
-
fps: cfg.fps,
|
|
21315
|
-
encoderConfig: cfg.encoderConfig
|
|
21316
|
-
};
|
|
21317
|
-
}
|
|
21318
|
-
buildOutputConfig(id, cfg) {
|
|
21319
|
-
var _a, _b;
|
|
21320
|
-
const outputConfig = {
|
|
21321
|
-
id,
|
|
21322
|
-
audioMixIds: cfg.audioMixIds,
|
|
21323
|
-
compositionId: cfg.compositionId,
|
|
21324
|
-
useAsClock: !!cfg.useAsClock
|
|
21325
|
-
};
|
|
21326
|
-
switch (cfg.outputType) {
|
|
21327
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_DECKLINK:
|
|
21328
|
-
if (cfg.decklinkConfig == null) throw new Error("No decklink config found");
|
|
21329
|
-
outputConfig.decklink = cfg.decklinkConfig;
|
|
21330
|
-
break;
|
|
21331
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_RECORDER:
|
|
21332
|
-
if (cfg.recorderConfig == null) throw new Error("No recorder config found");
|
|
21333
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21334
|
-
outputConfig.recorder = {
|
|
21335
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig),
|
|
21336
|
-
filename: cfg.recorderConfig.filename,
|
|
21337
|
-
sizeGb: cfg.recorderConfig.sizeGb,
|
|
21338
|
-
groupId: cfg.recorderConfig.groupId,
|
|
21339
|
-
recorderType: cfg.recorderConfig.recorderType
|
|
21340
|
-
};
|
|
21341
|
-
break;
|
|
21342
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_SUPER_SLOWMO_RECORDER:
|
|
21343
|
-
if (cfg.superSlowmoRecorderConfig == null) throw new Error("No super slowmo recorder config found");
|
|
21344
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21345
|
-
outputConfig.superSlowmoRecorder = {
|
|
21346
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig),
|
|
21347
|
-
filename: cfg.superSlowmoRecorderConfig.filename,
|
|
21348
|
-
sizeGb: cfg.superSlowmoRecorderConfig.sizeGb,
|
|
21349
|
-
groupId: cfg.superSlowmoRecorderConfig.groupId,
|
|
21350
|
-
recorderType: cfg.superSlowmoRecorderConfig.recorderType,
|
|
21351
|
-
compositionIds: ((_a = cfg.superSlowmoRecorderConfig) == null ? void 0 : _a.compositionIds) || [],
|
|
21352
|
-
sourceIds: ((_b = cfg.superSlowmoRecorderConfig) == null ? void 0 : _b.sourceIds) || []
|
|
21353
|
-
};
|
|
21354
|
-
break;
|
|
21355
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_SYSTEM_AUDIO:
|
|
21356
|
-
if (cfg.systemAudioConfig == null) throw new Error("No system audio config found");
|
|
21357
|
-
outputConfig.systemAudio = cfg.systemAudioConfig;
|
|
21358
|
-
break;
|
|
21359
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_SRT:
|
|
21360
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21361
|
-
outputConfig.srt = {
|
|
21362
|
-
url: cfg.encodedConfig.url,
|
|
21363
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig)
|
|
21364
|
-
};
|
|
21365
|
-
break;
|
|
21366
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_WEBSOCKET:
|
|
21367
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21368
|
-
outputConfig.websocket = {
|
|
21369
|
-
channel: cfg.encodedConfig.url,
|
|
21370
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig)
|
|
21371
|
-
};
|
|
21372
|
-
break;
|
|
21373
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_MOQ:
|
|
21374
|
-
if (cfg.moqConfig == null) throw new Error("No MoQ config found");
|
|
21375
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21376
|
-
outputConfig.moq = {
|
|
21377
|
-
...cfg.moqConfig,
|
|
21378
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig)
|
|
21379
|
-
};
|
|
21380
|
-
break;
|
|
21381
|
-
default:
|
|
21382
|
-
throw new Error(`Unsupported output type: ${cfg.outputType}`);
|
|
21383
|
-
}
|
|
21384
|
-
return outputConfig;
|
|
21385
|
-
}
|
|
21386
21155
|
callback(event, data, timeOffsetMs) {
|
|
21387
21156
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21388
21157
|
item.callback = { event, data };
|
|
@@ -21405,7 +21174,7 @@ var CommandList = class {
|
|
|
21405
21174
|
}
|
|
21406
21175
|
add_source(id, cfg, timeOffsetMs) {
|
|
21407
21176
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21408
|
-
item.addSource = { id, config:
|
|
21177
|
+
item.addSource = { id, config: cfg };
|
|
21409
21178
|
return this.add(item, timeOffsetMs);
|
|
21410
21179
|
}
|
|
21411
21180
|
remove_source(id, timeOffsetMs) {
|
|
@@ -21444,11 +21213,11 @@ var CommandList = class {
|
|
|
21444
21213
|
items: playlist.clips.map((clip) => ({
|
|
21445
21214
|
id: clip.id,
|
|
21446
21215
|
recorderId: clip.recorderId,
|
|
21447
|
-
transitionTimeUs:
|
|
21216
|
+
transitionTimeUs: clip.transitionTimeUs,
|
|
21448
21217
|
speed: clip.speed || 1,
|
|
21449
21218
|
audioRouting: clip.audioRouting,
|
|
21450
|
-
startTimeUs: clip.
|
|
21451
|
-
endTimeUs: clip.
|
|
21219
|
+
startTimeUs: clip.startTimeUs,
|
|
21220
|
+
endTimeUs: clip.endTimeUs,
|
|
21452
21221
|
transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
|
|
21453
21222
|
transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 }
|
|
21454
21223
|
})),
|
|
@@ -21542,7 +21311,7 @@ var CommandList = class {
|
|
|
21542
21311
|
}
|
|
21543
21312
|
update_source(id, cfg, timeOffsetMs) {
|
|
21544
21313
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21545
|
-
item.updateSource = { id, config:
|
|
21314
|
+
item.updateSource = { id, config: cfg };
|
|
21546
21315
|
return this.add(item, timeOffsetMs);
|
|
21547
21316
|
}
|
|
21548
21317
|
update_source_metadata(id, metadata, timeOffsetMs) {
|
|
@@ -21561,12 +21330,12 @@ var CommandList = class {
|
|
|
21561
21330
|
}
|
|
21562
21331
|
add_output(id, cfg, timeOffsetMs) {
|
|
21563
21332
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21564
|
-
item.addOutput =
|
|
21333
|
+
item.addOutput = { id, ...cfg };
|
|
21565
21334
|
return this.add(item, timeOffsetMs);
|
|
21566
21335
|
}
|
|
21567
21336
|
update_output(id, cfg, timeOffsetMs) {
|
|
21568
21337
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21569
|
-
item.updateOutput =
|
|
21338
|
+
item.updateOutput = { id, ...cfg };
|
|
21570
21339
|
return this.add(item, timeOffsetMs);
|
|
21571
21340
|
}
|
|
21572
21341
|
remove_output(id, timeOffsetMs) {
|