@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/index.cjs
CHANGED
|
@@ -4500,7 +4500,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4500
4500
|
SourceCommonConfig.prototype.playState = 0;
|
|
4501
4501
|
SourceCommonConfig.prototype.mipMap = false;
|
|
4502
4502
|
SourceCommonConfig.prototype.textureSize = 0;
|
|
4503
|
-
SourceCommonConfig.prototype.decoderType = 0;
|
|
4504
4503
|
SourceCommonConfig.prototype.deinterlace = 0;
|
|
4505
4504
|
SourceCommonConfig.prototype.videoProcessors = $util.emptyArray;
|
|
4506
4505
|
SourceCommonConfig.create = function create(properties) {
|
|
@@ -4549,11 +4548,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4549
4548
|
/* id 8, wireType 0 =*/
|
|
4550
4549
|
64
|
|
4551
4550
|
).int32(message.textureSize);
|
|
4552
|
-
if (message.decoderType != null && Object.hasOwnProperty.call(message, "decoderType"))
|
|
4553
|
-
writer.uint32(
|
|
4554
|
-
/* id 9, wireType 0 =*/
|
|
4555
|
-
72
|
|
4556
|
-
).int32(message.decoderType);
|
|
4557
4551
|
if (message.deinterlace != null && Object.hasOwnProperty.call(message, "deinterlace"))
|
|
4558
4552
|
writer.uint32(
|
|
4559
4553
|
/* id 10, wireType 0 =*/
|
|
@@ -4611,10 +4605,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4611
4605
|
message.textureSize = reader.int32();
|
|
4612
4606
|
break;
|
|
4613
4607
|
}
|
|
4614
|
-
case 9: {
|
|
4615
|
-
message.decoderType = reader.int32();
|
|
4616
|
-
break;
|
|
4617
|
-
}
|
|
4618
4608
|
case 10: {
|
|
4619
4609
|
message.deinterlace = reader.int32();
|
|
4620
4610
|
break;
|
|
@@ -4684,16 +4674,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4684
4674
|
case 2:
|
|
4685
4675
|
break;
|
|
4686
4676
|
}
|
|
4687
|
-
if (message.decoderType != null && message.hasOwnProperty("decoderType"))
|
|
4688
|
-
switch (message.decoderType) {
|
|
4689
|
-
default:
|
|
4690
|
-
return "decoderType: enum value expected";
|
|
4691
|
-
case 0:
|
|
4692
|
-
case 1:
|
|
4693
|
-
case 2:
|
|
4694
|
-
case 3:
|
|
4695
|
-
break;
|
|
4696
|
-
}
|
|
4697
4677
|
if (message.deinterlace != null && message.hasOwnProperty("deinterlace"))
|
|
4698
4678
|
switch (message.deinterlace) {
|
|
4699
4679
|
default:
|
|
@@ -4779,30 +4759,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4779
4759
|
message.textureSize = 2;
|
|
4780
4760
|
break;
|
|
4781
4761
|
}
|
|
4782
|
-
switch (object.decoderType) {
|
|
4783
|
-
default:
|
|
4784
|
-
if (typeof object.decoderType === "number") {
|
|
4785
|
-
message.decoderType = object.decoderType;
|
|
4786
|
-
break;
|
|
4787
|
-
}
|
|
4788
|
-
break;
|
|
4789
|
-
case "DECODER_TYPE_UNSPECIFIED":
|
|
4790
|
-
case 0:
|
|
4791
|
-
message.decoderType = 0;
|
|
4792
|
-
break;
|
|
4793
|
-
case "DECODER_TYPE_H264":
|
|
4794
|
-
case 1:
|
|
4795
|
-
message.decoderType = 1;
|
|
4796
|
-
break;
|
|
4797
|
-
case "DECODER_TYPE_HEVC":
|
|
4798
|
-
case 2:
|
|
4799
|
-
message.decoderType = 2;
|
|
4800
|
-
break;
|
|
4801
|
-
case "DECODER_TYPE_AV1":
|
|
4802
|
-
case 3:
|
|
4803
|
-
message.decoderType = 3;
|
|
4804
|
-
break;
|
|
4805
|
-
}
|
|
4806
4762
|
switch (object.deinterlace) {
|
|
4807
4763
|
default:
|
|
4808
4764
|
if (typeof object.deinterlace === "number") {
|
|
@@ -4854,7 +4810,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4854
4810
|
object.playState = options.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0;
|
|
4855
4811
|
object.mipMap = false;
|
|
4856
4812
|
object.textureSize = options.enums === String ? "SOURCE_TEXTURE_SIZE_UNSPECIFIED" : 0;
|
|
4857
|
-
object.decoderType = options.enums === String ? "DECODER_TYPE_UNSPECIFIED" : 0;
|
|
4858
4813
|
object.deinterlace = options.enums === String ? "DEINTERLACE_TYPE_PROGRESSIVE" : 0;
|
|
4859
4814
|
}
|
|
4860
4815
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
@@ -4873,8 +4828,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4873
4828
|
object.mipMap = message.mipMap;
|
|
4874
4829
|
if (message.textureSize != null && message.hasOwnProperty("textureSize"))
|
|
4875
4830
|
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;
|
|
4876
|
-
if (message.decoderType != null && message.hasOwnProperty("decoderType"))
|
|
4877
|
-
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;
|
|
4878
4831
|
if (message.deinterlace != null && message.hasOwnProperty("deinterlace"))
|
|
4879
4832
|
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;
|
|
4880
4833
|
if (message.videoProcessors && message.videoProcessors.length) {
|
|
@@ -4992,6 +4945,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4992
4945
|
}
|
|
4993
4946
|
}
|
|
4994
4947
|
RecorderSourceConfig.prototype.recorderId = "";
|
|
4948
|
+
RecorderSourceConfig.prototype.decoderType = 0;
|
|
4995
4949
|
RecorderSourceConfig.create = function create(properties) {
|
|
4996
4950
|
return new RecorderSourceConfig(properties);
|
|
4997
4951
|
};
|
|
@@ -5003,6 +4957,11 @@ var sesame = $root.sesame = (() => {
|
|
|
5003
4957
|
/* id 1, wireType 2 =*/
|
|
5004
4958
|
10
|
|
5005
4959
|
).string(message.recorderId);
|
|
4960
|
+
if (message.decoderType != null && Object.hasOwnProperty.call(message, "decoderType"))
|
|
4961
|
+
writer.uint32(
|
|
4962
|
+
/* id 2, wireType 0 =*/
|
|
4963
|
+
16
|
|
4964
|
+
).int32(message.decoderType);
|
|
5006
4965
|
return writer;
|
|
5007
4966
|
};
|
|
5008
4967
|
RecorderSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -5021,6 +4980,10 @@ var sesame = $root.sesame = (() => {
|
|
|
5021
4980
|
message.recorderId = reader.string();
|
|
5022
4981
|
break;
|
|
5023
4982
|
}
|
|
4983
|
+
case 2: {
|
|
4984
|
+
message.decoderType = reader.int32();
|
|
4985
|
+
break;
|
|
4986
|
+
}
|
|
5024
4987
|
default:
|
|
5025
4988
|
reader.skipType(tag & 7);
|
|
5026
4989
|
break;
|
|
@@ -5040,6 +5003,16 @@ var sesame = $root.sesame = (() => {
|
|
|
5040
5003
|
if (!$util.isString(message.recorderId))
|
|
5041
5004
|
return "recorderId: string expected";
|
|
5042
5005
|
}
|
|
5006
|
+
if (message.decoderType != null && message.hasOwnProperty("decoderType"))
|
|
5007
|
+
switch (message.decoderType) {
|
|
5008
|
+
default:
|
|
5009
|
+
return "decoderType: enum value expected";
|
|
5010
|
+
case 0:
|
|
5011
|
+
case 1:
|
|
5012
|
+
case 2:
|
|
5013
|
+
case 3:
|
|
5014
|
+
break;
|
|
5015
|
+
}
|
|
5043
5016
|
return null;
|
|
5044
5017
|
};
|
|
5045
5018
|
RecorderSourceConfig.fromObject = function fromObject(object) {
|
|
@@ -5048,16 +5021,44 @@ var sesame = $root.sesame = (() => {
|
|
|
5048
5021
|
let message = new $root.sesame.v1.sources.RecorderSourceConfig();
|
|
5049
5022
|
if (object.recorderId != null)
|
|
5050
5023
|
message.recorderId = String(object.recorderId);
|
|
5024
|
+
switch (object.decoderType) {
|
|
5025
|
+
default:
|
|
5026
|
+
if (typeof object.decoderType === "number") {
|
|
5027
|
+
message.decoderType = object.decoderType;
|
|
5028
|
+
break;
|
|
5029
|
+
}
|
|
5030
|
+
break;
|
|
5031
|
+
case "DECODER_TYPE_UNSPECIFIED":
|
|
5032
|
+
case 0:
|
|
5033
|
+
message.decoderType = 0;
|
|
5034
|
+
break;
|
|
5035
|
+
case "DECODER_TYPE_H264":
|
|
5036
|
+
case 1:
|
|
5037
|
+
message.decoderType = 1;
|
|
5038
|
+
break;
|
|
5039
|
+
case "DECODER_TYPE_HEVC":
|
|
5040
|
+
case 2:
|
|
5041
|
+
message.decoderType = 2;
|
|
5042
|
+
break;
|
|
5043
|
+
case "DECODER_TYPE_AV1":
|
|
5044
|
+
case 3:
|
|
5045
|
+
message.decoderType = 3;
|
|
5046
|
+
break;
|
|
5047
|
+
}
|
|
5051
5048
|
return message;
|
|
5052
5049
|
};
|
|
5053
5050
|
RecorderSourceConfig.toObject = function toObject(message, options) {
|
|
5054
5051
|
if (!options)
|
|
5055
5052
|
options = {};
|
|
5056
5053
|
let object = {};
|
|
5057
|
-
if (options.defaults)
|
|
5054
|
+
if (options.defaults) {
|
|
5058
5055
|
object.recorderId = "";
|
|
5056
|
+
object.decoderType = options.enums === String ? "DECODER_TYPE_UNSPECIFIED" : 0;
|
|
5057
|
+
}
|
|
5059
5058
|
if (message.recorderId != null && message.hasOwnProperty("recorderId"))
|
|
5060
5059
|
object.recorderId = message.recorderId;
|
|
5060
|
+
if (message.decoderType != null && message.hasOwnProperty("decoderType"))
|
|
5061
|
+
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;
|
|
5061
5062
|
return object;
|
|
5062
5063
|
};
|
|
5063
5064
|
RecorderSourceConfig.prototype.toJSON = function toJSON() {
|
|
@@ -14217,6 +14218,9 @@ var sesame = $root.sesame = (() => {
|
|
|
14217
14218
|
EncoderConfig.prototype.preset = 0;
|
|
14218
14219
|
EncoderConfig.prototype.bitrateKbps = 0;
|
|
14219
14220
|
EncoderConfig.prototype.keyframeInterval = 0;
|
|
14221
|
+
EncoderConfig.prototype.width = 0;
|
|
14222
|
+
EncoderConfig.prototype.height = 0;
|
|
14223
|
+
EncoderConfig.prototype.fps = 0;
|
|
14220
14224
|
EncoderConfig.create = function create(properties) {
|
|
14221
14225
|
return new EncoderConfig(properties);
|
|
14222
14226
|
};
|
|
@@ -14243,6 +14247,21 @@ var sesame = $root.sesame = (() => {
|
|
|
14243
14247
|
/* id 4, wireType 0 =*/
|
|
14244
14248
|
32
|
|
14245
14249
|
).uint32(message.keyframeInterval);
|
|
14250
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
14251
|
+
writer.uint32(
|
|
14252
|
+
/* id 5, wireType 0 =*/
|
|
14253
|
+
40
|
|
14254
|
+
).uint32(message.width);
|
|
14255
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
14256
|
+
writer.uint32(
|
|
14257
|
+
/* id 6, wireType 0 =*/
|
|
14258
|
+
48
|
|
14259
|
+
).uint32(message.height);
|
|
14260
|
+
if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
|
|
14261
|
+
writer.uint32(
|
|
14262
|
+
/* id 7, wireType 5 =*/
|
|
14263
|
+
61
|
|
14264
|
+
).float(message.fps);
|
|
14246
14265
|
return writer;
|
|
14247
14266
|
};
|
|
14248
14267
|
EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -14273,6 +14292,18 @@ var sesame = $root.sesame = (() => {
|
|
|
14273
14292
|
message.keyframeInterval = reader.uint32();
|
|
14274
14293
|
break;
|
|
14275
14294
|
}
|
|
14295
|
+
case 5: {
|
|
14296
|
+
message.width = reader.uint32();
|
|
14297
|
+
break;
|
|
14298
|
+
}
|
|
14299
|
+
case 6: {
|
|
14300
|
+
message.height = reader.uint32();
|
|
14301
|
+
break;
|
|
14302
|
+
}
|
|
14303
|
+
case 7: {
|
|
14304
|
+
message.fps = reader.float();
|
|
14305
|
+
break;
|
|
14306
|
+
}
|
|
14276
14307
|
default:
|
|
14277
14308
|
reader.skipType(tag & 7);
|
|
14278
14309
|
break;
|
|
@@ -14319,6 +14350,18 @@ var sesame = $root.sesame = (() => {
|
|
|
14319
14350
|
if (!$util.isInteger(message.keyframeInterval))
|
|
14320
14351
|
return "keyframeInterval: integer expected";
|
|
14321
14352
|
}
|
|
14353
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
14354
|
+
if (!$util.isInteger(message.width))
|
|
14355
|
+
return "width: integer expected";
|
|
14356
|
+
}
|
|
14357
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
14358
|
+
if (!$util.isInteger(message.height))
|
|
14359
|
+
return "height: integer expected";
|
|
14360
|
+
}
|
|
14361
|
+
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
14362
|
+
if (typeof message.fps !== "number")
|
|
14363
|
+
return "fps: number expected";
|
|
14364
|
+
}
|
|
14322
14365
|
return null;
|
|
14323
14366
|
};
|
|
14324
14367
|
EncoderConfig.fromObject = function fromObject(object) {
|
|
@@ -14389,6 +14432,12 @@ var sesame = $root.sesame = (() => {
|
|
|
14389
14432
|
message.bitrateKbps = object.bitrateKbps >>> 0;
|
|
14390
14433
|
if (object.keyframeInterval != null)
|
|
14391
14434
|
message.keyframeInterval = object.keyframeInterval >>> 0;
|
|
14435
|
+
if (object.width != null)
|
|
14436
|
+
message.width = object.width >>> 0;
|
|
14437
|
+
if (object.height != null)
|
|
14438
|
+
message.height = object.height >>> 0;
|
|
14439
|
+
if (object.fps != null)
|
|
14440
|
+
message.fps = Number(object.fps);
|
|
14392
14441
|
return message;
|
|
14393
14442
|
};
|
|
14394
14443
|
EncoderConfig.toObject = function toObject(message, options) {
|
|
@@ -14400,6 +14449,9 @@ var sesame = $root.sesame = (() => {
|
|
|
14400
14449
|
object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
|
|
14401
14450
|
object.bitrateKbps = 0;
|
|
14402
14451
|
object.keyframeInterval = 0;
|
|
14452
|
+
object.width = 0;
|
|
14453
|
+
object.height = 0;
|
|
14454
|
+
object.fps = 0;
|
|
14403
14455
|
}
|
|
14404
14456
|
if (message.codecId != null && message.hasOwnProperty("codecId"))
|
|
14405
14457
|
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;
|
|
@@ -14409,168 +14461,24 @@ var sesame = $root.sesame = (() => {
|
|
|
14409
14461
|
object.bitrateKbps = message.bitrateKbps;
|
|
14410
14462
|
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
|
|
14411
14463
|
object.keyframeInterval = message.keyframeInterval;
|
|
14412
|
-
return object;
|
|
14413
|
-
};
|
|
14414
|
-
EncoderConfig.prototype.toJSON = function toJSON() {
|
|
14415
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14416
|
-
};
|
|
14417
|
-
EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14418
|
-
if (typeUrlPrefix === void 0) {
|
|
14419
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
14420
|
-
}
|
|
14421
|
-
return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
|
|
14422
|
-
};
|
|
14423
|
-
return EncoderConfig;
|
|
14424
|
-
}();
|
|
14425
|
-
outputs.OutputEncodedConfig = function() {
|
|
14426
|
-
function OutputEncodedConfig(properties) {
|
|
14427
|
-
if (properties) {
|
|
14428
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14429
|
-
if (properties[keys[i]] != null)
|
|
14430
|
-
this[keys[i]] = properties[keys[i]];
|
|
14431
|
-
}
|
|
14432
|
-
}
|
|
14433
|
-
OutputEncodedConfig.prototype.width = 0;
|
|
14434
|
-
OutputEncodedConfig.prototype.height = 0;
|
|
14435
|
-
OutputEncodedConfig.prototype.fps = 0;
|
|
14436
|
-
OutputEncodedConfig.prototype.encoderConfig = null;
|
|
14437
|
-
OutputEncodedConfig.create = function create(properties) {
|
|
14438
|
-
return new OutputEncodedConfig(properties);
|
|
14439
|
-
};
|
|
14440
|
-
OutputEncodedConfig.encode = function encode(message, writer) {
|
|
14441
|
-
if (!writer)
|
|
14442
|
-
writer = $Writer.create();
|
|
14443
|
-
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
14444
|
-
writer.uint32(
|
|
14445
|
-
/* id 1, wireType 0 =*/
|
|
14446
|
-
8
|
|
14447
|
-
).uint32(message.width);
|
|
14448
|
-
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
14449
|
-
writer.uint32(
|
|
14450
|
-
/* id 2, wireType 0 =*/
|
|
14451
|
-
16
|
|
14452
|
-
).uint32(message.height);
|
|
14453
|
-
if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
|
|
14454
|
-
writer.uint32(
|
|
14455
|
-
/* id 3, wireType 5 =*/
|
|
14456
|
-
29
|
|
14457
|
-
).float(message.fps);
|
|
14458
|
-
if (message.encoderConfig != null && Object.hasOwnProperty.call(message, "encoderConfig"))
|
|
14459
|
-
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoderConfig, writer.uint32(
|
|
14460
|
-
/* id 4, wireType 2 =*/
|
|
14461
|
-
34
|
|
14462
|
-
).fork()).ldelim();
|
|
14463
|
-
return writer;
|
|
14464
|
-
};
|
|
14465
|
-
OutputEncodedConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14466
|
-
return this.encode(message, writer).ldelim();
|
|
14467
|
-
};
|
|
14468
|
-
OutputEncodedConfig.decode = function decode(reader, length, error) {
|
|
14469
|
-
if (!(reader instanceof $Reader))
|
|
14470
|
-
reader = $Reader.create(reader);
|
|
14471
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.OutputEncodedConfig();
|
|
14472
|
-
while (reader.pos < end) {
|
|
14473
|
-
let tag = reader.uint32();
|
|
14474
|
-
if (tag === error)
|
|
14475
|
-
break;
|
|
14476
|
-
switch (tag >>> 3) {
|
|
14477
|
-
case 1: {
|
|
14478
|
-
message.width = reader.uint32();
|
|
14479
|
-
break;
|
|
14480
|
-
}
|
|
14481
|
-
case 2: {
|
|
14482
|
-
message.height = reader.uint32();
|
|
14483
|
-
break;
|
|
14484
|
-
}
|
|
14485
|
-
case 3: {
|
|
14486
|
-
message.fps = reader.float();
|
|
14487
|
-
break;
|
|
14488
|
-
}
|
|
14489
|
-
case 4: {
|
|
14490
|
-
message.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
14491
|
-
break;
|
|
14492
|
-
}
|
|
14493
|
-
default:
|
|
14494
|
-
reader.skipType(tag & 7);
|
|
14495
|
-
break;
|
|
14496
|
-
}
|
|
14497
|
-
}
|
|
14498
|
-
return message;
|
|
14499
|
-
};
|
|
14500
|
-
OutputEncodedConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
14501
|
-
if (!(reader instanceof $Reader))
|
|
14502
|
-
reader = new $Reader(reader);
|
|
14503
|
-
return this.decode(reader, reader.uint32());
|
|
14504
|
-
};
|
|
14505
|
-
OutputEncodedConfig.verify = function verify(message) {
|
|
14506
|
-
if (typeof message !== "object" || message === null)
|
|
14507
|
-
return "object expected";
|
|
14508
|
-
if (message.width != null && message.hasOwnProperty("width")) {
|
|
14509
|
-
if (!$util.isInteger(message.width))
|
|
14510
|
-
return "width: integer expected";
|
|
14511
|
-
}
|
|
14512
|
-
if (message.height != null && message.hasOwnProperty("height")) {
|
|
14513
|
-
if (!$util.isInteger(message.height))
|
|
14514
|
-
return "height: integer expected";
|
|
14515
|
-
}
|
|
14516
|
-
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
14517
|
-
if (typeof message.fps !== "number")
|
|
14518
|
-
return "fps: number expected";
|
|
14519
|
-
}
|
|
14520
|
-
if (message.encoderConfig != null && message.hasOwnProperty("encoderConfig")) {
|
|
14521
|
-
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoderConfig);
|
|
14522
|
-
if (error)
|
|
14523
|
-
return "encoderConfig." + error;
|
|
14524
|
-
}
|
|
14525
|
-
return null;
|
|
14526
|
-
};
|
|
14527
|
-
OutputEncodedConfig.fromObject = function fromObject(object) {
|
|
14528
|
-
if (object instanceof $root.sesame.v1.outputs.OutputEncodedConfig)
|
|
14529
|
-
return object;
|
|
14530
|
-
let message = new $root.sesame.v1.outputs.OutputEncodedConfig();
|
|
14531
|
-
if (object.width != null)
|
|
14532
|
-
message.width = object.width >>> 0;
|
|
14533
|
-
if (object.height != null)
|
|
14534
|
-
message.height = object.height >>> 0;
|
|
14535
|
-
if (object.fps != null)
|
|
14536
|
-
message.fps = Number(object.fps);
|
|
14537
|
-
if (object.encoderConfig != null) {
|
|
14538
|
-
if (typeof object.encoderConfig !== "object")
|
|
14539
|
-
throw TypeError(".sesame.v1.outputs.OutputEncodedConfig.encoderConfig: object expected");
|
|
14540
|
-
message.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoderConfig);
|
|
14541
|
-
}
|
|
14542
|
-
return message;
|
|
14543
|
-
};
|
|
14544
|
-
OutputEncodedConfig.toObject = function toObject(message, options) {
|
|
14545
|
-
if (!options)
|
|
14546
|
-
options = {};
|
|
14547
|
-
let object = {};
|
|
14548
|
-
if (options.defaults) {
|
|
14549
|
-
object.width = 0;
|
|
14550
|
-
object.height = 0;
|
|
14551
|
-
object.fps = 0;
|
|
14552
|
-
object.encoderConfig = null;
|
|
14553
|
-
}
|
|
14554
14464
|
if (message.width != null && message.hasOwnProperty("width"))
|
|
14555
14465
|
object.width = message.width;
|
|
14556
14466
|
if (message.height != null && message.hasOwnProperty("height"))
|
|
14557
14467
|
object.height = message.height;
|
|
14558
14468
|
if (message.fps != null && message.hasOwnProperty("fps"))
|
|
14559
14469
|
object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
|
|
14560
|
-
if (message.encoderConfig != null && message.hasOwnProperty("encoderConfig"))
|
|
14561
|
-
object.encoderConfig = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoderConfig, options);
|
|
14562
14470
|
return object;
|
|
14563
14471
|
};
|
|
14564
|
-
|
|
14472
|
+
EncoderConfig.prototype.toJSON = function toJSON() {
|
|
14565
14473
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14566
14474
|
};
|
|
14567
|
-
|
|
14475
|
+
EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14568
14476
|
if (typeUrlPrefix === void 0) {
|
|
14569
14477
|
typeUrlPrefix = "type.googleapis.com";
|
|
14570
14478
|
}
|
|
14571
|
-
return typeUrlPrefix + "/sesame.v1.outputs.
|
|
14479
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
|
|
14572
14480
|
};
|
|
14573
|
-
return
|
|
14481
|
+
return EncoderConfig;
|
|
14574
14482
|
}();
|
|
14575
14483
|
outputs.DecklinkOutputConfig = function() {
|
|
14576
14484
|
function DecklinkOutputConfig(properties) {
|
|
@@ -14741,7 +14649,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14741
14649
|
}
|
|
14742
14650
|
}
|
|
14743
14651
|
EncodedWebSocketOutputConfig.prototype.channel = "";
|
|
14744
|
-
EncodedWebSocketOutputConfig.prototype.
|
|
14652
|
+
EncodedWebSocketOutputConfig.prototype.encoder = null;
|
|
14745
14653
|
EncodedWebSocketOutputConfig.create = function create(properties) {
|
|
14746
14654
|
return new EncodedWebSocketOutputConfig(properties);
|
|
14747
14655
|
};
|
|
@@ -14753,8 +14661,8 @@ var sesame = $root.sesame = (() => {
|
|
|
14753
14661
|
/* id 1, wireType 2 =*/
|
|
14754
14662
|
10
|
|
14755
14663
|
).string(message.channel);
|
|
14756
|
-
if (message.
|
|
14757
|
-
$root.sesame.v1.outputs.
|
|
14664
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
14665
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
14758
14666
|
/* id 2, wireType 2 =*/
|
|
14759
14667
|
18
|
|
14760
14668
|
).fork()).ldelim();
|
|
@@ -14777,7 +14685,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14777
14685
|
break;
|
|
14778
14686
|
}
|
|
14779
14687
|
case 2: {
|
|
14780
|
-
message.
|
|
14688
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
14781
14689
|
break;
|
|
14782
14690
|
}
|
|
14783
14691
|
default:
|
|
@@ -14799,10 +14707,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14799
14707
|
if (!$util.isString(message.channel))
|
|
14800
14708
|
return "channel: string expected";
|
|
14801
14709
|
}
|
|
14802
|
-
if (message.
|
|
14803
|
-
let error = $root.sesame.v1.outputs.
|
|
14710
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
14711
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
14804
14712
|
if (error)
|
|
14805
|
-
return "
|
|
14713
|
+
return "encoder." + error;
|
|
14806
14714
|
}
|
|
14807
14715
|
return null;
|
|
14808
14716
|
};
|
|
@@ -14812,10 +14720,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14812
14720
|
let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
|
|
14813
14721
|
if (object.channel != null)
|
|
14814
14722
|
message.channel = String(object.channel);
|
|
14815
|
-
if (object.
|
|
14816
|
-
if (typeof object.
|
|
14817
|
-
throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.
|
|
14818
|
-
message.
|
|
14723
|
+
if (object.encoder != null) {
|
|
14724
|
+
if (typeof object.encoder !== "object")
|
|
14725
|
+
throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoder: object expected");
|
|
14726
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
14819
14727
|
}
|
|
14820
14728
|
return message;
|
|
14821
14729
|
};
|
|
@@ -14825,12 +14733,12 @@ var sesame = $root.sesame = (() => {
|
|
|
14825
14733
|
let object = {};
|
|
14826
14734
|
if (options.defaults) {
|
|
14827
14735
|
object.channel = "";
|
|
14828
|
-
object.
|
|
14736
|
+
object.encoder = null;
|
|
14829
14737
|
}
|
|
14830
14738
|
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
14831
14739
|
object.channel = message.channel;
|
|
14832
|
-
if (message.
|
|
14833
|
-
object.
|
|
14740
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
14741
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
14834
14742
|
return object;
|
|
14835
14743
|
};
|
|
14836
14744
|
EncodedWebSocketOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -14852,7 +14760,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14852
14760
|
this[keys[i]] = properties[keys[i]];
|
|
14853
14761
|
}
|
|
14854
14762
|
}
|
|
14855
|
-
EncodedRecorderOutputConfig.prototype.
|
|
14763
|
+
EncodedRecorderOutputConfig.prototype.encoder = null;
|
|
14856
14764
|
EncodedRecorderOutputConfig.prototype.filename = "";
|
|
14857
14765
|
EncodedRecorderOutputConfig.prototype.sizeGb = 0;
|
|
14858
14766
|
EncodedRecorderOutputConfig.prototype.groupId = "";
|
|
@@ -14863,8 +14771,8 @@ var sesame = $root.sesame = (() => {
|
|
|
14863
14771
|
EncodedRecorderOutputConfig.encode = function encode(message, writer) {
|
|
14864
14772
|
if (!writer)
|
|
14865
14773
|
writer = $Writer.create();
|
|
14866
|
-
if (message.
|
|
14867
|
-
$root.sesame.v1.outputs.
|
|
14774
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
14775
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
14868
14776
|
/* id 1, wireType 2 =*/
|
|
14869
14777
|
10
|
|
14870
14778
|
).fork()).ldelim();
|
|
@@ -14903,7 +14811,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14903
14811
|
break;
|
|
14904
14812
|
switch (tag >>> 3) {
|
|
14905
14813
|
case 1: {
|
|
14906
|
-
message.
|
|
14814
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
14907
14815
|
break;
|
|
14908
14816
|
}
|
|
14909
14817
|
case 2: {
|
|
@@ -14937,10 +14845,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14937
14845
|
EncodedRecorderOutputConfig.verify = function verify(message) {
|
|
14938
14846
|
if (typeof message !== "object" || message === null)
|
|
14939
14847
|
return "object expected";
|
|
14940
|
-
if (message.
|
|
14941
|
-
let error = $root.sesame.v1.outputs.
|
|
14848
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
14849
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
14942
14850
|
if (error)
|
|
14943
|
-
return "
|
|
14851
|
+
return "encoder." + error;
|
|
14944
14852
|
}
|
|
14945
14853
|
if (message.filename != null && message.hasOwnProperty("filename")) {
|
|
14946
14854
|
if (!$util.isString(message.filename))
|
|
@@ -14969,10 +14877,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14969
14877
|
if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
|
|
14970
14878
|
return object;
|
|
14971
14879
|
let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
|
|
14972
|
-
if (object.
|
|
14973
|
-
if (typeof object.
|
|
14974
|
-
throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.
|
|
14975
|
-
message.
|
|
14880
|
+
if (object.encoder != null) {
|
|
14881
|
+
if (typeof object.encoder !== "object")
|
|
14882
|
+
throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
|
|
14883
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
14976
14884
|
}
|
|
14977
14885
|
if (object.filename != null)
|
|
14978
14886
|
message.filename = String(object.filename);
|
|
@@ -15007,14 +14915,14 @@ var sesame = $root.sesame = (() => {
|
|
|
15007
14915
|
options = {};
|
|
15008
14916
|
let object = {};
|
|
15009
14917
|
if (options.defaults) {
|
|
15010
|
-
object.
|
|
14918
|
+
object.encoder = null;
|
|
15011
14919
|
object.filename = "";
|
|
15012
14920
|
object.sizeGb = 0;
|
|
15013
14921
|
object.groupId = "";
|
|
15014
14922
|
object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
|
|
15015
14923
|
}
|
|
15016
|
-
if (message.
|
|
15017
|
-
object.
|
|
14924
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
14925
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
15018
14926
|
if (message.filename != null && message.hasOwnProperty("filename"))
|
|
15019
14927
|
object.filename = message.filename;
|
|
15020
14928
|
if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
|
|
@@ -15046,7 +14954,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15046
14954
|
this[keys[i]] = properties[keys[i]];
|
|
15047
14955
|
}
|
|
15048
14956
|
}
|
|
15049
|
-
EncodedSuperSlowMoRecorderOutputConfig.prototype.
|
|
14957
|
+
EncodedSuperSlowMoRecorderOutputConfig.prototype.encoder = null;
|
|
15050
14958
|
EncodedSuperSlowMoRecorderOutputConfig.prototype.filename = "";
|
|
15051
14959
|
EncodedSuperSlowMoRecorderOutputConfig.prototype.sizeGb = 0;
|
|
15052
14960
|
EncodedSuperSlowMoRecorderOutputConfig.prototype.groupId = "";
|
|
@@ -15059,8 +14967,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15059
14967
|
EncodedSuperSlowMoRecorderOutputConfig.encode = function encode(message, writer) {
|
|
15060
14968
|
if (!writer)
|
|
15061
14969
|
writer = $Writer.create();
|
|
15062
|
-
if (message.
|
|
15063
|
-
$root.sesame.v1.outputs.
|
|
14970
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
14971
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
15064
14972
|
/* id 1, wireType 2 =*/
|
|
15065
14973
|
10
|
|
15066
14974
|
).fork()).ldelim();
|
|
@@ -15111,7 +15019,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15111
15019
|
break;
|
|
15112
15020
|
switch (tag >>> 3) {
|
|
15113
15021
|
case 1: {
|
|
15114
|
-
message.
|
|
15022
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
15115
15023
|
break;
|
|
15116
15024
|
}
|
|
15117
15025
|
case 2: {
|
|
@@ -15157,10 +15065,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15157
15065
|
EncodedSuperSlowMoRecorderOutputConfig.verify = function verify(message) {
|
|
15158
15066
|
if (typeof message !== "object" || message === null)
|
|
15159
15067
|
return "object expected";
|
|
15160
|
-
if (message.
|
|
15161
|
-
let error = $root.sesame.v1.outputs.
|
|
15068
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
15069
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
15162
15070
|
if (error)
|
|
15163
|
-
return "
|
|
15071
|
+
return "encoder." + error;
|
|
15164
15072
|
}
|
|
15165
15073
|
if (message.filename != null && message.hasOwnProperty("filename")) {
|
|
15166
15074
|
if (!$util.isString(message.filename))
|
|
@@ -15203,10 +15111,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15203
15111
|
if (object instanceof $root.sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig)
|
|
15204
15112
|
return object;
|
|
15205
15113
|
let message = new $root.sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig();
|
|
15206
|
-
if (object.
|
|
15207
|
-
if (typeof object.
|
|
15208
|
-
throw TypeError(".sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig.
|
|
15209
|
-
message.
|
|
15114
|
+
if (object.encoder != null) {
|
|
15115
|
+
if (typeof object.encoder !== "object")
|
|
15116
|
+
throw TypeError(".sesame.v1.outputs.EncodedSuperSlowMoRecorderOutputConfig.encoder: object expected");
|
|
15117
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
15210
15118
|
}
|
|
15211
15119
|
if (object.filename != null)
|
|
15212
15120
|
message.filename = String(object.filename);
|
|
@@ -15259,14 +15167,14 @@ var sesame = $root.sesame = (() => {
|
|
|
15259
15167
|
object.sourceIds = [];
|
|
15260
15168
|
}
|
|
15261
15169
|
if (options.defaults) {
|
|
15262
|
-
object.
|
|
15170
|
+
object.encoder = null;
|
|
15263
15171
|
object.filename = "";
|
|
15264
15172
|
object.sizeGb = 0;
|
|
15265
15173
|
object.groupId = "";
|
|
15266
15174
|
object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
|
|
15267
15175
|
}
|
|
15268
|
-
if (message.
|
|
15269
|
-
object.
|
|
15176
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
15177
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
15270
15178
|
if (message.filename != null && message.hasOwnProperty("filename"))
|
|
15271
15179
|
object.filename = message.filename;
|
|
15272
15180
|
if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
|
|
@@ -15307,7 +15215,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15307
15215
|
}
|
|
15308
15216
|
}
|
|
15309
15217
|
EncodedSrtOutputConfig.prototype.url = "";
|
|
15310
|
-
EncodedSrtOutputConfig.prototype.
|
|
15218
|
+
EncodedSrtOutputConfig.prototype.encoder = null;
|
|
15311
15219
|
EncodedSrtOutputConfig.create = function create(properties) {
|
|
15312
15220
|
return new EncodedSrtOutputConfig(properties);
|
|
15313
15221
|
};
|
|
@@ -15319,8 +15227,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15319
15227
|
/* id 1, wireType 2 =*/
|
|
15320
15228
|
10
|
|
15321
15229
|
).string(message.url);
|
|
15322
|
-
if (message.
|
|
15323
|
-
$root.sesame.v1.outputs.
|
|
15230
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
15231
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
15324
15232
|
/* id 2, wireType 2 =*/
|
|
15325
15233
|
18
|
|
15326
15234
|
).fork()).ldelim();
|
|
@@ -15343,7 +15251,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15343
15251
|
break;
|
|
15344
15252
|
}
|
|
15345
15253
|
case 2: {
|
|
15346
|
-
message.
|
|
15254
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
15347
15255
|
break;
|
|
15348
15256
|
}
|
|
15349
15257
|
default:
|
|
@@ -15365,10 +15273,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15365
15273
|
if (!$util.isString(message.url))
|
|
15366
15274
|
return "url: string expected";
|
|
15367
15275
|
}
|
|
15368
|
-
if (message.
|
|
15369
|
-
let error = $root.sesame.v1.outputs.
|
|
15276
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
15277
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
15370
15278
|
if (error)
|
|
15371
|
-
return "
|
|
15279
|
+
return "encoder." + error;
|
|
15372
15280
|
}
|
|
15373
15281
|
return null;
|
|
15374
15282
|
};
|
|
@@ -15378,10 +15286,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15378
15286
|
let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
|
|
15379
15287
|
if (object.url != null)
|
|
15380
15288
|
message.url = String(object.url);
|
|
15381
|
-
if (object.
|
|
15382
|
-
if (typeof object.
|
|
15383
|
-
throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.
|
|
15384
|
-
message.
|
|
15289
|
+
if (object.encoder != null) {
|
|
15290
|
+
if (typeof object.encoder !== "object")
|
|
15291
|
+
throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
|
|
15292
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
15385
15293
|
}
|
|
15386
15294
|
return message;
|
|
15387
15295
|
};
|
|
@@ -15391,12 +15299,12 @@ var sesame = $root.sesame = (() => {
|
|
|
15391
15299
|
let object = {};
|
|
15392
15300
|
if (options.defaults) {
|
|
15393
15301
|
object.url = "";
|
|
15394
|
-
object.
|
|
15302
|
+
object.encoder = null;
|
|
15395
15303
|
}
|
|
15396
15304
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
15397
15305
|
object.url = message.url;
|
|
15398
|
-
if (message.
|
|
15399
|
-
object.
|
|
15306
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
15307
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
15400
15308
|
return object;
|
|
15401
15309
|
};
|
|
15402
15310
|
EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -15418,7 +15326,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15418
15326
|
this[keys[i]] = properties[keys[i]];
|
|
15419
15327
|
}
|
|
15420
15328
|
}
|
|
15421
|
-
EncodedMoqOutputConfig.prototype.
|
|
15329
|
+
EncodedMoqOutputConfig.prototype.encoder = null;
|
|
15422
15330
|
EncodedMoqOutputConfig.prototype.url = "";
|
|
15423
15331
|
EncodedMoqOutputConfig.prototype.broadcast = "";
|
|
15424
15332
|
EncodedMoqOutputConfig.prototype.key = "";
|
|
@@ -15428,8 +15336,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15428
15336
|
EncodedMoqOutputConfig.encode = function encode(message, writer) {
|
|
15429
15337
|
if (!writer)
|
|
15430
15338
|
writer = $Writer.create();
|
|
15431
|
-
if (message.
|
|
15432
|
-
$root.sesame.v1.outputs.
|
|
15339
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
15340
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
15433
15341
|
/* id 1, wireType 2 =*/
|
|
15434
15342
|
10
|
|
15435
15343
|
).fork()).ldelim();
|
|
@@ -15463,7 +15371,7 @@ var sesame = $root.sesame = (() => {
|
|
|
15463
15371
|
break;
|
|
15464
15372
|
switch (tag >>> 3) {
|
|
15465
15373
|
case 1: {
|
|
15466
|
-
message.
|
|
15374
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
15467
15375
|
break;
|
|
15468
15376
|
}
|
|
15469
15377
|
case 2: {
|
|
@@ -15493,10 +15401,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15493
15401
|
EncodedMoqOutputConfig.verify = function verify(message) {
|
|
15494
15402
|
if (typeof message !== "object" || message === null)
|
|
15495
15403
|
return "object expected";
|
|
15496
|
-
if (message.
|
|
15497
|
-
let error = $root.sesame.v1.outputs.
|
|
15404
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
15405
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
15498
15406
|
if (error)
|
|
15499
|
-
return "
|
|
15407
|
+
return "encoder." + error;
|
|
15500
15408
|
}
|
|
15501
15409
|
if (message.url != null && message.hasOwnProperty("url")) {
|
|
15502
15410
|
if (!$util.isString(message.url))
|
|
@@ -15516,10 +15424,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15516
15424
|
if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
|
|
15517
15425
|
return object;
|
|
15518
15426
|
let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
|
|
15519
|
-
if (object.
|
|
15520
|
-
if (typeof object.
|
|
15521
|
-
throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.
|
|
15522
|
-
message.
|
|
15427
|
+
if (object.encoder != null) {
|
|
15428
|
+
if (typeof object.encoder !== "object")
|
|
15429
|
+
throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
|
|
15430
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
15523
15431
|
}
|
|
15524
15432
|
if (object.url != null)
|
|
15525
15433
|
message.url = String(object.url);
|
|
@@ -15534,13 +15442,13 @@ var sesame = $root.sesame = (() => {
|
|
|
15534
15442
|
options = {};
|
|
15535
15443
|
let object = {};
|
|
15536
15444
|
if (options.defaults) {
|
|
15537
|
-
object.
|
|
15445
|
+
object.encoder = null;
|
|
15538
15446
|
object.url = "";
|
|
15539
15447
|
object.broadcast = "";
|
|
15540
15448
|
object.key = "";
|
|
15541
15449
|
}
|
|
15542
|
-
if (message.
|
|
15543
|
-
object.
|
|
15450
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
15451
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
15544
15452
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
15545
15453
|
object.url = message.url;
|
|
15546
15454
|
if (message.broadcast != null && message.hasOwnProperty("broadcast"))
|
|
@@ -21252,145 +21160,6 @@ var CommandList = class {
|
|
|
21252
21160
|
get_command_list_msg() {
|
|
21253
21161
|
return this.cl;
|
|
21254
21162
|
}
|
|
21255
|
-
buildSourceConfig(cfg) {
|
|
21256
|
-
var _a;
|
|
21257
|
-
const config = {
|
|
21258
|
-
common: {
|
|
21259
|
-
userId: cfg.userId,
|
|
21260
|
-
useAsClock: cfg.useAsClock,
|
|
21261
|
-
audioOnly: cfg.audioOnly,
|
|
21262
|
-
audioChannels: cfg.audioChannels,
|
|
21263
|
-
loop: cfg.loop,
|
|
21264
|
-
playState: cfg.playState,
|
|
21265
|
-
mipMap: cfg.mipMap,
|
|
21266
|
-
textureSize: cfg.textureSize,
|
|
21267
|
-
decoderType: cfg.decoderType,
|
|
21268
|
-
deinterlace: cfg.deinterlace,
|
|
21269
|
-
videoProcessors: cfg.videoProcessors || []
|
|
21270
|
-
}
|
|
21271
|
-
};
|
|
21272
|
-
switch (cfg.sourceType) {
|
|
21273
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_FILE:
|
|
21274
|
-
config.file = { url: ((_a = cfg.fileConfig) == null ? void 0 : _a.filename) || cfg.url || "" };
|
|
21275
|
-
break;
|
|
21276
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_RECORDER:
|
|
21277
|
-
if (cfg.recorderConfig == null) throw new Error("No recorder source config found");
|
|
21278
|
-
config.recorder = cfg.recorderConfig;
|
|
21279
|
-
break;
|
|
21280
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_BROWSER:
|
|
21281
|
-
if (!cfg.url) throw new Error("No browser URL found");
|
|
21282
|
-
config.browser = { url: cfg.url };
|
|
21283
|
-
break;
|
|
21284
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_RTT:
|
|
21285
|
-
if (cfg.rttConfig == null) throw new Error("No RTT config found");
|
|
21286
|
-
config.rtt = cfg.rttConfig;
|
|
21287
|
-
break;
|
|
21288
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_DECKLINK:
|
|
21289
|
-
if (cfg.decklinkConfig == null) throw new Error("No decklink source config found");
|
|
21290
|
-
config.decklink = cfg.decklinkConfig;
|
|
21291
|
-
break;
|
|
21292
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_SIGNAL_GENERATOR:
|
|
21293
|
-
config.signalGenerator = {};
|
|
21294
|
-
break;
|
|
21295
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_SYSTEM_AUDIO:
|
|
21296
|
-
config.systemAudio = { deviceName: cfg.url || "" };
|
|
21297
|
-
break;
|
|
21298
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_SRT_STREAM:
|
|
21299
|
-
config.srtStream = cfg.srtConfig || (cfg.url ? { url: cfg.url } : void 0);
|
|
21300
|
-
if (config.srtStream == null) throw new Error("No SRT source config found");
|
|
21301
|
-
if (cfg.decodeBufferFrames) config.srtStream.decodeBufferFrames = cfg.decodeBufferFrames;
|
|
21302
|
-
break;
|
|
21303
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_WEBSOCKET:
|
|
21304
|
-
if (!cfg.url) throw new Error("No websocket channel found");
|
|
21305
|
-
config.websocket = { channel: cfg.url };
|
|
21306
|
-
if (cfg.decodeBufferFrames) config.websocket.decodeBufferFrames = cfg.decodeBufferFrames;
|
|
21307
|
-
break;
|
|
21308
|
-
case sesame.v1.sources.SourceType.SOURCE_TYPE_MOQ:
|
|
21309
|
-
if (cfg.moqConfig == null) throw new Error("No MoQ source config found");
|
|
21310
|
-
config.moq = cfg.moqConfig;
|
|
21311
|
-
if (cfg.decodeBufferFrames) config.moq.decodeBufferFrames = cfg.decodeBufferFrames;
|
|
21312
|
-
break;
|
|
21313
|
-
default:
|
|
21314
|
-
throw new Error(`Unsupported source type: ${cfg.sourceType}`);
|
|
21315
|
-
}
|
|
21316
|
-
return config;
|
|
21317
|
-
}
|
|
21318
|
-
buildOutputEncodedConfig(cfg) {
|
|
21319
|
-
return {
|
|
21320
|
-
width: cfg.width,
|
|
21321
|
-
height: cfg.height,
|
|
21322
|
-
fps: cfg.fps,
|
|
21323
|
-
encoderConfig: cfg.encoderConfig
|
|
21324
|
-
};
|
|
21325
|
-
}
|
|
21326
|
-
buildOutputConfig(id, cfg) {
|
|
21327
|
-
var _a, _b;
|
|
21328
|
-
const outputConfig = {
|
|
21329
|
-
id,
|
|
21330
|
-
audioMixIds: cfg.audioMixIds,
|
|
21331
|
-
compositionId: cfg.compositionId,
|
|
21332
|
-
useAsClock: !!cfg.useAsClock
|
|
21333
|
-
};
|
|
21334
|
-
switch (cfg.outputType) {
|
|
21335
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_DECKLINK:
|
|
21336
|
-
if (cfg.decklinkConfig == null) throw new Error("No decklink config found");
|
|
21337
|
-
outputConfig.decklink = cfg.decklinkConfig;
|
|
21338
|
-
break;
|
|
21339
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_RECORDER:
|
|
21340
|
-
if (cfg.recorderConfig == null) throw new Error("No recorder config found");
|
|
21341
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21342
|
-
outputConfig.recorder = {
|
|
21343
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig),
|
|
21344
|
-
filename: cfg.recorderConfig.filename,
|
|
21345
|
-
sizeGb: cfg.recorderConfig.sizeGb,
|
|
21346
|
-
groupId: cfg.recorderConfig.groupId,
|
|
21347
|
-
recorderType: cfg.recorderConfig.recorderType
|
|
21348
|
-
};
|
|
21349
|
-
break;
|
|
21350
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_SUPER_SLOWMO_RECORDER:
|
|
21351
|
-
if (cfg.superSlowmoRecorderConfig == null) throw new Error("No super slowmo recorder config found");
|
|
21352
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21353
|
-
outputConfig.superSlowmoRecorder = {
|
|
21354
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig),
|
|
21355
|
-
filename: cfg.superSlowmoRecorderConfig.filename,
|
|
21356
|
-
sizeGb: cfg.superSlowmoRecorderConfig.sizeGb,
|
|
21357
|
-
groupId: cfg.superSlowmoRecorderConfig.groupId,
|
|
21358
|
-
recorderType: cfg.superSlowmoRecorderConfig.recorderType,
|
|
21359
|
-
compositionIds: ((_a = cfg.superSlowmoRecorderConfig) == null ? void 0 : _a.compositionIds) || [],
|
|
21360
|
-
sourceIds: ((_b = cfg.superSlowmoRecorderConfig) == null ? void 0 : _b.sourceIds) || []
|
|
21361
|
-
};
|
|
21362
|
-
break;
|
|
21363
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_SYSTEM_AUDIO:
|
|
21364
|
-
if (cfg.systemAudioConfig == null) throw new Error("No system audio config found");
|
|
21365
|
-
outputConfig.systemAudio = cfg.systemAudioConfig;
|
|
21366
|
-
break;
|
|
21367
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_SRT:
|
|
21368
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21369
|
-
outputConfig.srt = {
|
|
21370
|
-
url: cfg.encodedConfig.url,
|
|
21371
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig)
|
|
21372
|
-
};
|
|
21373
|
-
break;
|
|
21374
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_WEBSOCKET:
|
|
21375
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21376
|
-
outputConfig.websocket = {
|
|
21377
|
-
channel: cfg.encodedConfig.url,
|
|
21378
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig)
|
|
21379
|
-
};
|
|
21380
|
-
break;
|
|
21381
|
-
case sesame.v1.outputs.OutputType.OUTPUT_TYPE_ENCODED_MOQ:
|
|
21382
|
-
if (cfg.moqConfig == null) throw new Error("No MoQ config found");
|
|
21383
|
-
if (cfg.encodedConfig == null) throw new Error("No output config found");
|
|
21384
|
-
outputConfig.moq = {
|
|
21385
|
-
...cfg.moqConfig,
|
|
21386
|
-
encoded: this.buildOutputEncodedConfig(cfg.encodedConfig)
|
|
21387
|
-
};
|
|
21388
|
-
break;
|
|
21389
|
-
default:
|
|
21390
|
-
throw new Error(`Unsupported output type: ${cfg.outputType}`);
|
|
21391
|
-
}
|
|
21392
|
-
return outputConfig;
|
|
21393
|
-
}
|
|
21394
21163
|
callback(event, data, timeOffsetMs) {
|
|
21395
21164
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21396
21165
|
item.callback = { event, data };
|
|
@@ -21413,7 +21182,7 @@ var CommandList = class {
|
|
|
21413
21182
|
}
|
|
21414
21183
|
add_source(id, cfg, timeOffsetMs) {
|
|
21415
21184
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21416
|
-
item.addSource = { id, config:
|
|
21185
|
+
item.addSource = { id, config: cfg };
|
|
21417
21186
|
return this.add(item, timeOffsetMs);
|
|
21418
21187
|
}
|
|
21419
21188
|
remove_source(id, timeOffsetMs) {
|
|
@@ -21452,11 +21221,11 @@ var CommandList = class {
|
|
|
21452
21221
|
items: playlist.clips.map((clip) => ({
|
|
21453
21222
|
id: clip.id,
|
|
21454
21223
|
recorderId: clip.recorderId,
|
|
21455
|
-
transitionTimeUs:
|
|
21224
|
+
transitionTimeUs: clip.transitionTimeUs,
|
|
21456
21225
|
speed: clip.speed || 1,
|
|
21457
21226
|
audioRouting: clip.audioRouting,
|
|
21458
|
-
startTimeUs: clip.
|
|
21459
|
-
endTimeUs: clip.
|
|
21227
|
+
startTimeUs: clip.startTimeUs,
|
|
21228
|
+
endTimeUs: clip.endTimeUs,
|
|
21460
21229
|
transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
|
|
21461
21230
|
transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 }
|
|
21462
21231
|
})),
|
|
@@ -21550,7 +21319,7 @@ var CommandList = class {
|
|
|
21550
21319
|
}
|
|
21551
21320
|
update_source(id, cfg, timeOffsetMs) {
|
|
21552
21321
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21553
|
-
item.updateSource = { id, config:
|
|
21322
|
+
item.updateSource = { id, config: cfg };
|
|
21554
21323
|
return this.add(item, timeOffsetMs);
|
|
21555
21324
|
}
|
|
21556
21325
|
update_source_metadata(id, metadata, timeOffsetMs) {
|
|
@@ -21569,12 +21338,12 @@ var CommandList = class {
|
|
|
21569
21338
|
}
|
|
21570
21339
|
add_output(id, cfg, timeOffsetMs) {
|
|
21571
21340
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21572
|
-
item.addOutput =
|
|
21341
|
+
item.addOutput = { id, ...cfg };
|
|
21573
21342
|
return this.add(item, timeOffsetMs);
|
|
21574
21343
|
}
|
|
21575
21344
|
update_output(id, cfg, timeOffsetMs) {
|
|
21576
21345
|
let item = new sesame.v1.commands.CommandListItem();
|
|
21577
|
-
item.updateOutput =
|
|
21346
|
+
item.updateOutput = { id, ...cfg };
|
|
21578
21347
|
return this.add(item, timeOffsetMs);
|
|
21579
21348
|
}
|
|
21580
21349
|
remove_output(id, timeOffsetMs) {
|