@stinkycomputing/sesame-api-client 1.5.7 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command-list.d.ts +11 -6
- package/dist/command-list.d.ts.map +1 -1
- package/dist/generated/property-types.d.ts +16 -1
- package/dist/generated/property-types.d.ts.map +1 -1
- package/dist/index.browser.mjs +2035 -310
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +2035 -310
- 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 +2035 -310
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +857 -17
- package/dist/proto/api.js +5026 -2392
- package/dist/sesame-api-client.d.ts +4 -1
- package/dist/sesame-api-client.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -866,6 +866,14 @@ var sesame = $root.sesame = (() => {
|
|
|
866
866
|
AudioMixerChannel.prototype.level = 0;
|
|
867
867
|
AudioMixerChannel.prototype.pan = 0;
|
|
868
868
|
AudioMixerChannel.prototype.plugins = $util.emptyArray;
|
|
869
|
+
AudioMixerChannel.prototype.mute = false;
|
|
870
|
+
AudioMixerChannel.prototype.automationLevel = null;
|
|
871
|
+
AudioMixerChannel.prototype.automationMute = false;
|
|
872
|
+
let $oneOfFields;
|
|
873
|
+
Object.defineProperty(AudioMixerChannel.prototype, "_automationLevel", {
|
|
874
|
+
get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
|
|
875
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
876
|
+
});
|
|
869
877
|
AudioMixerChannel.create = function create(properties) {
|
|
870
878
|
return new AudioMixerChannel(properties);
|
|
871
879
|
};
|
|
@@ -912,6 +920,21 @@ var sesame = $root.sesame = (() => {
|
|
|
912
920
|
/* id 7, wireType 2 =*/
|
|
913
921
|
58
|
|
914
922
|
).fork()).ldelim();
|
|
923
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
924
|
+
writer.uint32(
|
|
925
|
+
/* id 8, wireType 0 =*/
|
|
926
|
+
64
|
|
927
|
+
).bool(message.mute);
|
|
928
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
929
|
+
writer.uint32(
|
|
930
|
+
/* id 9, wireType 5 =*/
|
|
931
|
+
77
|
|
932
|
+
).float(message.automationLevel);
|
|
933
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
934
|
+
writer.uint32(
|
|
935
|
+
/* id 10, wireType 0 =*/
|
|
936
|
+
80
|
|
937
|
+
).bool(message.automationMute);
|
|
915
938
|
return writer;
|
|
916
939
|
};
|
|
917
940
|
AudioMixerChannel.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -963,6 +986,18 @@ var sesame = $root.sesame = (() => {
|
|
|
963
986
|
message.plugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
|
|
964
987
|
break;
|
|
965
988
|
}
|
|
989
|
+
case 8: {
|
|
990
|
+
message.mute = reader.bool();
|
|
991
|
+
break;
|
|
992
|
+
}
|
|
993
|
+
case 9: {
|
|
994
|
+
message.automationLevel = reader.float();
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
997
|
+
case 10: {
|
|
998
|
+
message.automationMute = reader.bool();
|
|
999
|
+
break;
|
|
1000
|
+
}
|
|
966
1001
|
default:
|
|
967
1002
|
reader.skipType(tag & 7);
|
|
968
1003
|
break;
|
|
@@ -978,6 +1013,7 @@ var sesame = $root.sesame = (() => {
|
|
|
978
1013
|
AudioMixerChannel.verify = function verify(message) {
|
|
979
1014
|
if (typeof message !== "object" || message === null)
|
|
980
1015
|
return "object expected";
|
|
1016
|
+
let properties = {};
|
|
981
1017
|
if (message.id != null && message.hasOwnProperty("id")) {
|
|
982
1018
|
if (!$util.isString(message.id))
|
|
983
1019
|
return "id: string expected";
|
|
@@ -1019,6 +1055,19 @@ var sesame = $root.sesame = (() => {
|
|
|
1019
1055
|
return "plugins." + error;
|
|
1020
1056
|
}
|
|
1021
1057
|
}
|
|
1058
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
1059
|
+
if (typeof message.mute !== "boolean")
|
|
1060
|
+
return "mute: boolean expected";
|
|
1061
|
+
}
|
|
1062
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
1063
|
+
properties._automationLevel = 1;
|
|
1064
|
+
if (typeof message.automationLevel !== "number")
|
|
1065
|
+
return "automationLevel: number expected";
|
|
1066
|
+
}
|
|
1067
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
1068
|
+
if (typeof message.automationMute !== "boolean")
|
|
1069
|
+
return "automationMute: boolean expected";
|
|
1070
|
+
}
|
|
1022
1071
|
return null;
|
|
1023
1072
|
};
|
|
1024
1073
|
AudioMixerChannel.fromObject = function fromObject(object) {
|
|
@@ -1070,6 +1119,12 @@ var sesame = $root.sesame = (() => {
|
|
|
1070
1119
|
message.plugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.plugins[i]);
|
|
1071
1120
|
}
|
|
1072
1121
|
}
|
|
1122
|
+
if (object.mute != null)
|
|
1123
|
+
message.mute = Boolean(object.mute);
|
|
1124
|
+
if (object.automationLevel != null)
|
|
1125
|
+
message.automationLevel = Number(object.automationLevel);
|
|
1126
|
+
if (object.automationMute != null)
|
|
1127
|
+
message.automationMute = Boolean(object.automationMute);
|
|
1073
1128
|
return message;
|
|
1074
1129
|
};
|
|
1075
1130
|
AudioMixerChannel.toObject = function toObject(message, options) {
|
|
@@ -1086,6 +1141,8 @@ var sesame = $root.sesame = (() => {
|
|
|
1086
1141
|
object.channelType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
1087
1142
|
object.level = 0;
|
|
1088
1143
|
object.pan = 0;
|
|
1144
|
+
object.mute = false;
|
|
1145
|
+
object.automationMute = false;
|
|
1089
1146
|
}
|
|
1090
1147
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
1091
1148
|
object.id = message.id;
|
|
@@ -1107,6 +1164,15 @@ var sesame = $root.sesame = (() => {
|
|
|
1107
1164
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
1108
1165
|
object.plugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.plugins[j], options);
|
|
1109
1166
|
}
|
|
1167
|
+
if (message.mute != null && message.hasOwnProperty("mute"))
|
|
1168
|
+
object.mute = message.mute;
|
|
1169
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
1170
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
1171
|
+
if (options.oneofs)
|
|
1172
|
+
object._automationLevel = "automationLevel";
|
|
1173
|
+
}
|
|
1174
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute"))
|
|
1175
|
+
object.automationMute = message.automationMute;
|
|
1110
1176
|
return object;
|
|
1111
1177
|
};
|
|
1112
1178
|
AudioMixerChannel.prototype.toJSON = function toJSON() {
|
|
@@ -1120,9 +1186,162 @@ var sesame = $root.sesame = (() => {
|
|
|
1120
1186
|
};
|
|
1121
1187
|
return AudioMixerChannel;
|
|
1122
1188
|
}();
|
|
1189
|
+
audio.AudioMixerOutput = function() {
|
|
1190
|
+
function AudioMixerOutput(properties) {
|
|
1191
|
+
this.excludedChannelIds = [];
|
|
1192
|
+
if (properties) {
|
|
1193
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1194
|
+
if (properties[keys[i]] != null)
|
|
1195
|
+
this[keys[i]] = properties[keys[i]];
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
AudioMixerOutput.prototype.id = "";
|
|
1199
|
+
AudioMixerOutput.prototype.excludedChannelIds = $util.emptyArray;
|
|
1200
|
+
AudioMixerOutput.prototype.includeMasterPlugins = null;
|
|
1201
|
+
let $oneOfFields;
|
|
1202
|
+
Object.defineProperty(AudioMixerOutput.prototype, "_includeMasterPlugins", {
|
|
1203
|
+
get: $util.oneOfGetter($oneOfFields = ["includeMasterPlugins"]),
|
|
1204
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1205
|
+
});
|
|
1206
|
+
AudioMixerOutput.create = function create(properties) {
|
|
1207
|
+
return new AudioMixerOutput(properties);
|
|
1208
|
+
};
|
|
1209
|
+
AudioMixerOutput.encode = function encode(message, writer) {
|
|
1210
|
+
if (!writer)
|
|
1211
|
+
writer = $Writer.create();
|
|
1212
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
1213
|
+
writer.uint32(
|
|
1214
|
+
/* id 1, wireType 2 =*/
|
|
1215
|
+
10
|
|
1216
|
+
).string(message.id);
|
|
1217
|
+
if (message.excludedChannelIds != null && message.excludedChannelIds.length)
|
|
1218
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
1219
|
+
writer.uint32(
|
|
1220
|
+
/* id 2, wireType 2 =*/
|
|
1221
|
+
18
|
|
1222
|
+
).string(message.excludedChannelIds[i]);
|
|
1223
|
+
if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
|
|
1224
|
+
writer.uint32(
|
|
1225
|
+
/* id 3, wireType 0 =*/
|
|
1226
|
+
24
|
|
1227
|
+
).bool(message.includeMasterPlugins);
|
|
1228
|
+
return writer;
|
|
1229
|
+
};
|
|
1230
|
+
AudioMixerOutput.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1231
|
+
return this.encode(message, writer).ldelim();
|
|
1232
|
+
};
|
|
1233
|
+
AudioMixerOutput.decode = function decode(reader, length, error) {
|
|
1234
|
+
if (!(reader instanceof $Reader))
|
|
1235
|
+
reader = $Reader.create(reader);
|
|
1236
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutput();
|
|
1237
|
+
while (reader.pos < end) {
|
|
1238
|
+
let tag = reader.uint32();
|
|
1239
|
+
if (tag === error)
|
|
1240
|
+
break;
|
|
1241
|
+
switch (tag >>> 3) {
|
|
1242
|
+
case 1: {
|
|
1243
|
+
message.id = reader.string();
|
|
1244
|
+
break;
|
|
1245
|
+
}
|
|
1246
|
+
case 2: {
|
|
1247
|
+
if (!(message.excludedChannelIds && message.excludedChannelIds.length))
|
|
1248
|
+
message.excludedChannelIds = [];
|
|
1249
|
+
message.excludedChannelIds.push(reader.string());
|
|
1250
|
+
break;
|
|
1251
|
+
}
|
|
1252
|
+
case 3: {
|
|
1253
|
+
message.includeMasterPlugins = reader.bool();
|
|
1254
|
+
break;
|
|
1255
|
+
}
|
|
1256
|
+
default:
|
|
1257
|
+
reader.skipType(tag & 7);
|
|
1258
|
+
break;
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
return message;
|
|
1262
|
+
};
|
|
1263
|
+
AudioMixerOutput.decodeDelimited = function decodeDelimited(reader) {
|
|
1264
|
+
if (!(reader instanceof $Reader))
|
|
1265
|
+
reader = new $Reader(reader);
|
|
1266
|
+
return this.decode(reader, reader.uint32());
|
|
1267
|
+
};
|
|
1268
|
+
AudioMixerOutput.verify = function verify(message) {
|
|
1269
|
+
if (typeof message !== "object" || message === null)
|
|
1270
|
+
return "object expected";
|
|
1271
|
+
let properties = {};
|
|
1272
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
1273
|
+
if (!$util.isString(message.id))
|
|
1274
|
+
return "id: string expected";
|
|
1275
|
+
}
|
|
1276
|
+
if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
|
|
1277
|
+
if (!Array.isArray(message.excludedChannelIds))
|
|
1278
|
+
return "excludedChannelIds: array expected";
|
|
1279
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
1280
|
+
if (!$util.isString(message.excludedChannelIds[i]))
|
|
1281
|
+
return "excludedChannelIds: string[] expected";
|
|
1282
|
+
}
|
|
1283
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
1284
|
+
properties._includeMasterPlugins = 1;
|
|
1285
|
+
if (typeof message.includeMasterPlugins !== "boolean")
|
|
1286
|
+
return "includeMasterPlugins: boolean expected";
|
|
1287
|
+
}
|
|
1288
|
+
return null;
|
|
1289
|
+
};
|
|
1290
|
+
AudioMixerOutput.fromObject = function fromObject(object) {
|
|
1291
|
+
if (object instanceof $root.sesame.v1.audio.AudioMixerOutput)
|
|
1292
|
+
return object;
|
|
1293
|
+
let message = new $root.sesame.v1.audio.AudioMixerOutput();
|
|
1294
|
+
if (object.id != null)
|
|
1295
|
+
message.id = String(object.id);
|
|
1296
|
+
if (object.excludedChannelIds) {
|
|
1297
|
+
if (!Array.isArray(object.excludedChannelIds))
|
|
1298
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutput.excludedChannelIds: array expected");
|
|
1299
|
+
message.excludedChannelIds = [];
|
|
1300
|
+
for (let i = 0; i < object.excludedChannelIds.length; ++i)
|
|
1301
|
+
message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
|
|
1302
|
+
}
|
|
1303
|
+
if (object.includeMasterPlugins != null)
|
|
1304
|
+
message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
|
|
1305
|
+
return message;
|
|
1306
|
+
};
|
|
1307
|
+
AudioMixerOutput.toObject = function toObject(message, options) {
|
|
1308
|
+
if (!options)
|
|
1309
|
+
options = {};
|
|
1310
|
+
let object = {};
|
|
1311
|
+
if (options.arrays || options.defaults)
|
|
1312
|
+
object.excludedChannelIds = [];
|
|
1313
|
+
if (options.defaults)
|
|
1314
|
+
object.id = "";
|
|
1315
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1316
|
+
object.id = message.id;
|
|
1317
|
+
if (message.excludedChannelIds && message.excludedChannelIds.length) {
|
|
1318
|
+
object.excludedChannelIds = [];
|
|
1319
|
+
for (let j = 0; j < message.excludedChannelIds.length; ++j)
|
|
1320
|
+
object.excludedChannelIds[j] = message.excludedChannelIds[j];
|
|
1321
|
+
}
|
|
1322
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
1323
|
+
object.includeMasterPlugins = message.includeMasterPlugins;
|
|
1324
|
+
if (options.oneofs)
|
|
1325
|
+
object._includeMasterPlugins = "includeMasterPlugins";
|
|
1326
|
+
}
|
|
1327
|
+
return object;
|
|
1328
|
+
};
|
|
1329
|
+
AudioMixerOutput.prototype.toJSON = function toJSON() {
|
|
1330
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1331
|
+
};
|
|
1332
|
+
AudioMixerOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1333
|
+
if (typeUrlPrefix === void 0) {
|
|
1334
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1335
|
+
}
|
|
1336
|
+
return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutput";
|
|
1337
|
+
};
|
|
1338
|
+
return AudioMixerOutput;
|
|
1339
|
+
}();
|
|
1123
1340
|
audio.AudioMixerConfig = function() {
|
|
1124
1341
|
function AudioMixerConfig(properties) {
|
|
1125
1342
|
this.channels = [];
|
|
1343
|
+
this.outputs = [];
|
|
1344
|
+
this.masterPlugins = [];
|
|
1126
1345
|
if (properties) {
|
|
1127
1346
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1128
1347
|
if (properties[keys[i]] != null)
|
|
@@ -1132,6 +1351,19 @@ var sesame = $root.sesame = (() => {
|
|
|
1132
1351
|
AudioMixerConfig.prototype.channels = $util.emptyArray;
|
|
1133
1352
|
AudioMixerConfig.prototype.outputType = 0;
|
|
1134
1353
|
AudioMixerConfig.prototype.order = 0;
|
|
1354
|
+
AudioMixerConfig.prototype.outputs = $util.emptyArray;
|
|
1355
|
+
AudioMixerConfig.prototype.masterLevel = null;
|
|
1356
|
+
AudioMixerConfig.prototype.masterAutomationLevel = null;
|
|
1357
|
+
AudioMixerConfig.prototype.masterPlugins = $util.emptyArray;
|
|
1358
|
+
let $oneOfFields;
|
|
1359
|
+
Object.defineProperty(AudioMixerConfig.prototype, "_masterLevel", {
|
|
1360
|
+
get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
|
|
1361
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1362
|
+
});
|
|
1363
|
+
Object.defineProperty(AudioMixerConfig.prototype, "_masterAutomationLevel", {
|
|
1364
|
+
get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
|
|
1365
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1366
|
+
});
|
|
1135
1367
|
AudioMixerConfig.create = function create(properties) {
|
|
1136
1368
|
return new AudioMixerConfig(properties);
|
|
1137
1369
|
};
|
|
@@ -1154,6 +1386,28 @@ var sesame = $root.sesame = (() => {
|
|
|
1154
1386
|
/* id 3, wireType 0 =*/
|
|
1155
1387
|
24
|
|
1156
1388
|
).uint32(message.order);
|
|
1389
|
+
if (message.outputs != null && message.outputs.length)
|
|
1390
|
+
for (let i = 0; i < message.outputs.length; ++i)
|
|
1391
|
+
$root.sesame.v1.audio.AudioMixerOutput.encode(message.outputs[i], writer.uint32(
|
|
1392
|
+
/* id 4, wireType 2 =*/
|
|
1393
|
+
34
|
|
1394
|
+
).fork()).ldelim();
|
|
1395
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
1396
|
+
writer.uint32(
|
|
1397
|
+
/* id 5, wireType 5 =*/
|
|
1398
|
+
45
|
|
1399
|
+
).float(message.masterLevel);
|
|
1400
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
1401
|
+
writer.uint32(
|
|
1402
|
+
/* id 6, wireType 5 =*/
|
|
1403
|
+
53
|
|
1404
|
+
).float(message.masterAutomationLevel);
|
|
1405
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
1406
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
1407
|
+
$root.sesame.v1.audio.AudioPlugin.encode(message.masterPlugins[i], writer.uint32(
|
|
1408
|
+
/* id 7, wireType 2 =*/
|
|
1409
|
+
58
|
|
1410
|
+
).fork()).ldelim();
|
|
1157
1411
|
return writer;
|
|
1158
1412
|
};
|
|
1159
1413
|
AudioMixerConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -1182,6 +1436,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1182
1436
|
message.order = reader.uint32();
|
|
1183
1437
|
break;
|
|
1184
1438
|
}
|
|
1439
|
+
case 4: {
|
|
1440
|
+
if (!(message.outputs && message.outputs.length))
|
|
1441
|
+
message.outputs = [];
|
|
1442
|
+
message.outputs.push($root.sesame.v1.audio.AudioMixerOutput.decode(reader, reader.uint32()));
|
|
1443
|
+
break;
|
|
1444
|
+
}
|
|
1445
|
+
case 5: {
|
|
1446
|
+
message.masterLevel = reader.float();
|
|
1447
|
+
break;
|
|
1448
|
+
}
|
|
1449
|
+
case 6: {
|
|
1450
|
+
message.masterAutomationLevel = reader.float();
|
|
1451
|
+
break;
|
|
1452
|
+
}
|
|
1453
|
+
case 7: {
|
|
1454
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
1455
|
+
message.masterPlugins = [];
|
|
1456
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
|
|
1457
|
+
break;
|
|
1458
|
+
}
|
|
1185
1459
|
default:
|
|
1186
1460
|
reader.skipType(tag & 7);
|
|
1187
1461
|
break;
|
|
@@ -1197,6 +1471,7 @@ var sesame = $root.sesame = (() => {
|
|
|
1197
1471
|
AudioMixerConfig.verify = function verify(message) {
|
|
1198
1472
|
if (typeof message !== "object" || message === null)
|
|
1199
1473
|
return "object expected";
|
|
1474
|
+
let properties = {};
|
|
1200
1475
|
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
1201
1476
|
if (!Array.isArray(message.channels))
|
|
1202
1477
|
return "channels: array expected";
|
|
@@ -1219,6 +1494,34 @@ var sesame = $root.sesame = (() => {
|
|
|
1219
1494
|
if (!$util.isInteger(message.order))
|
|
1220
1495
|
return "order: integer expected";
|
|
1221
1496
|
}
|
|
1497
|
+
if (message.outputs != null && message.hasOwnProperty("outputs")) {
|
|
1498
|
+
if (!Array.isArray(message.outputs))
|
|
1499
|
+
return "outputs: array expected";
|
|
1500
|
+
for (let i = 0; i < message.outputs.length; ++i) {
|
|
1501
|
+
let error = $root.sesame.v1.audio.AudioMixerOutput.verify(message.outputs[i]);
|
|
1502
|
+
if (error)
|
|
1503
|
+
return "outputs." + error;
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
1507
|
+
properties._masterLevel = 1;
|
|
1508
|
+
if (typeof message.masterLevel !== "number")
|
|
1509
|
+
return "masterLevel: number expected";
|
|
1510
|
+
}
|
|
1511
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
1512
|
+
properties._masterAutomationLevel = 1;
|
|
1513
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
1514
|
+
return "masterAutomationLevel: number expected";
|
|
1515
|
+
}
|
|
1516
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
1517
|
+
if (!Array.isArray(message.masterPlugins))
|
|
1518
|
+
return "masterPlugins: array expected";
|
|
1519
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
1520
|
+
let error = $root.sesame.v1.audio.AudioPlugin.verify(message.masterPlugins[i]);
|
|
1521
|
+
if (error)
|
|
1522
|
+
return "masterPlugins." + error;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1222
1525
|
return null;
|
|
1223
1526
|
};
|
|
1224
1527
|
AudioMixerConfig.fromObject = function fromObject(object) {
|
|
@@ -1257,14 +1560,41 @@ var sesame = $root.sesame = (() => {
|
|
|
1257
1560
|
}
|
|
1258
1561
|
if (object.order != null)
|
|
1259
1562
|
message.order = object.order >>> 0;
|
|
1563
|
+
if (object.outputs) {
|
|
1564
|
+
if (!Array.isArray(object.outputs))
|
|
1565
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: array expected");
|
|
1566
|
+
message.outputs = [];
|
|
1567
|
+
for (let i = 0; i < object.outputs.length; ++i) {
|
|
1568
|
+
if (typeof object.outputs[i] !== "object")
|
|
1569
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: object expected");
|
|
1570
|
+
message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutput.fromObject(object.outputs[i]);
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
if (object.masterLevel != null)
|
|
1574
|
+
message.masterLevel = Number(object.masterLevel);
|
|
1575
|
+
if (object.masterAutomationLevel != null)
|
|
1576
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
1577
|
+
if (object.masterPlugins) {
|
|
1578
|
+
if (!Array.isArray(object.masterPlugins))
|
|
1579
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: array expected");
|
|
1580
|
+
message.masterPlugins = [];
|
|
1581
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
1582
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
1583
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: object expected");
|
|
1584
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.masterPlugins[i]);
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1260
1587
|
return message;
|
|
1261
1588
|
};
|
|
1262
1589
|
AudioMixerConfig.toObject = function toObject(message, options) {
|
|
1263
1590
|
if (!options)
|
|
1264
1591
|
options = {};
|
|
1265
1592
|
let object = {};
|
|
1266
|
-
if (options.arrays || options.defaults)
|
|
1593
|
+
if (options.arrays || options.defaults) {
|
|
1267
1594
|
object.channels = [];
|
|
1595
|
+
object.outputs = [];
|
|
1596
|
+
object.masterPlugins = [];
|
|
1597
|
+
}
|
|
1268
1598
|
if (options.defaults) {
|
|
1269
1599
|
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
1270
1600
|
object.order = 0;
|
|
@@ -1278,6 +1608,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1278
1608
|
object.outputType = options.enums === String ? $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] === void 0 ? message.outputType : $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] : message.outputType;
|
|
1279
1609
|
if (message.order != null && message.hasOwnProperty("order"))
|
|
1280
1610
|
object.order = message.order;
|
|
1611
|
+
if (message.outputs && message.outputs.length) {
|
|
1612
|
+
object.outputs = [];
|
|
1613
|
+
for (let j = 0; j < message.outputs.length; ++j)
|
|
1614
|
+
object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutput.toObject(message.outputs[j], options);
|
|
1615
|
+
}
|
|
1616
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
1617
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
1618
|
+
if (options.oneofs)
|
|
1619
|
+
object._masterLevel = "masterLevel";
|
|
1620
|
+
}
|
|
1621
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
1622
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
1623
|
+
if (options.oneofs)
|
|
1624
|
+
object._masterAutomationLevel = "masterAutomationLevel";
|
|
1625
|
+
}
|
|
1626
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
1627
|
+
object.masterPlugins = [];
|
|
1628
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
1629
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.masterPlugins[j], options);
|
|
1630
|
+
}
|
|
1281
1631
|
return object;
|
|
1282
1632
|
};
|
|
1283
1633
|
AudioMixerConfig.prototype.toJSON = function toJSON() {
|
|
@@ -1989,6 +2339,11 @@ var sesame = $root.sesame = (() => {
|
|
|
1989
2339
|
AudioChannelStatus.prototype.hasData = false;
|
|
1990
2340
|
AudioChannelStatus.prototype.readErrors = 0;
|
|
1991
2341
|
AudioChannelStatus.prototype.plugins = $util.emptyArray;
|
|
2342
|
+
AudioChannelStatus.prototype.mute = false;
|
|
2343
|
+
AudioChannelStatus.prototype.automationLevel = 0;
|
|
2344
|
+
AudioChannelStatus.prototype.automationMute = false;
|
|
2345
|
+
AudioChannelStatus.prototype.effectiveLevel = 0;
|
|
2346
|
+
AudioChannelStatus.prototype.effectiveMute = false;
|
|
1992
2347
|
AudioChannelStatus.create = function create(properties) {
|
|
1993
2348
|
return new AudioChannelStatus(properties);
|
|
1994
2349
|
};
|
|
@@ -2040,6 +2395,31 @@ var sesame = $root.sesame = (() => {
|
|
|
2040
2395
|
/* id 8, wireType 2 =*/
|
|
2041
2396
|
66
|
|
2042
2397
|
).fork()).ldelim();
|
|
2398
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
2399
|
+
writer.uint32(
|
|
2400
|
+
/* id 9, wireType 0 =*/
|
|
2401
|
+
72
|
|
2402
|
+
).bool(message.mute);
|
|
2403
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
2404
|
+
writer.uint32(
|
|
2405
|
+
/* id 10, wireType 5 =*/
|
|
2406
|
+
85
|
|
2407
|
+
).float(message.automationLevel);
|
|
2408
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
2409
|
+
writer.uint32(
|
|
2410
|
+
/* id 11, wireType 0 =*/
|
|
2411
|
+
88
|
|
2412
|
+
).bool(message.automationMute);
|
|
2413
|
+
if (message.effectiveLevel != null && Object.hasOwnProperty.call(message, "effectiveLevel"))
|
|
2414
|
+
writer.uint32(
|
|
2415
|
+
/* id 12, wireType 5 =*/
|
|
2416
|
+
101
|
|
2417
|
+
).float(message.effectiveLevel);
|
|
2418
|
+
if (message.effectiveMute != null && Object.hasOwnProperty.call(message, "effectiveMute"))
|
|
2419
|
+
writer.uint32(
|
|
2420
|
+
/* id 13, wireType 0 =*/
|
|
2421
|
+
104
|
|
2422
|
+
).bool(message.effectiveMute);
|
|
2043
2423
|
return writer;
|
|
2044
2424
|
};
|
|
2045
2425
|
AudioChannelStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2095,6 +2475,26 @@ var sesame = $root.sesame = (() => {
|
|
|
2095
2475
|
message.plugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
|
|
2096
2476
|
break;
|
|
2097
2477
|
}
|
|
2478
|
+
case 9: {
|
|
2479
|
+
message.mute = reader.bool();
|
|
2480
|
+
break;
|
|
2481
|
+
}
|
|
2482
|
+
case 10: {
|
|
2483
|
+
message.automationLevel = reader.float();
|
|
2484
|
+
break;
|
|
2485
|
+
}
|
|
2486
|
+
case 11: {
|
|
2487
|
+
message.automationMute = reader.bool();
|
|
2488
|
+
break;
|
|
2489
|
+
}
|
|
2490
|
+
case 12: {
|
|
2491
|
+
message.effectiveLevel = reader.float();
|
|
2492
|
+
break;
|
|
2493
|
+
}
|
|
2494
|
+
case 13: {
|
|
2495
|
+
message.effectiveMute = reader.bool();
|
|
2496
|
+
break;
|
|
2497
|
+
}
|
|
2098
2498
|
default:
|
|
2099
2499
|
reader.skipType(tag & 7);
|
|
2100
2500
|
break;
|
|
@@ -2155,6 +2555,26 @@ var sesame = $root.sesame = (() => {
|
|
|
2155
2555
|
return "plugins." + error;
|
|
2156
2556
|
}
|
|
2157
2557
|
}
|
|
2558
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
2559
|
+
if (typeof message.mute !== "boolean")
|
|
2560
|
+
return "mute: boolean expected";
|
|
2561
|
+
}
|
|
2562
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
2563
|
+
if (typeof message.automationLevel !== "number")
|
|
2564
|
+
return "automationLevel: number expected";
|
|
2565
|
+
}
|
|
2566
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
2567
|
+
if (typeof message.automationMute !== "boolean")
|
|
2568
|
+
return "automationMute: boolean expected";
|
|
2569
|
+
}
|
|
2570
|
+
if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel")) {
|
|
2571
|
+
if (typeof message.effectiveLevel !== "number")
|
|
2572
|
+
return "effectiveLevel: number expected";
|
|
2573
|
+
}
|
|
2574
|
+
if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute")) {
|
|
2575
|
+
if (typeof message.effectiveMute !== "boolean")
|
|
2576
|
+
return "effectiveMute: boolean expected";
|
|
2577
|
+
}
|
|
2158
2578
|
return null;
|
|
2159
2579
|
};
|
|
2160
2580
|
AudioChannelStatus.fromObject = function fromObject(object) {
|
|
@@ -2208,6 +2628,16 @@ var sesame = $root.sesame = (() => {
|
|
|
2208
2628
|
message.plugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.plugins[i]);
|
|
2209
2629
|
}
|
|
2210
2630
|
}
|
|
2631
|
+
if (object.mute != null)
|
|
2632
|
+
message.mute = Boolean(object.mute);
|
|
2633
|
+
if (object.automationLevel != null)
|
|
2634
|
+
message.automationLevel = Number(object.automationLevel);
|
|
2635
|
+
if (object.automationMute != null)
|
|
2636
|
+
message.automationMute = Boolean(object.automationMute);
|
|
2637
|
+
if (object.effectiveLevel != null)
|
|
2638
|
+
message.effectiveLevel = Number(object.effectiveLevel);
|
|
2639
|
+
if (object.effectiveMute != null)
|
|
2640
|
+
message.effectiveMute = Boolean(object.effectiveMute);
|
|
2211
2641
|
return message;
|
|
2212
2642
|
};
|
|
2213
2643
|
AudioChannelStatus.toObject = function toObject(message, options) {
|
|
@@ -2225,6 +2655,11 @@ var sesame = $root.sesame = (() => {
|
|
|
2225
2655
|
object.pan = 0;
|
|
2226
2656
|
object.hasData = false;
|
|
2227
2657
|
object.readErrors = 0;
|
|
2658
|
+
object.mute = false;
|
|
2659
|
+
object.automationLevel = 0;
|
|
2660
|
+
object.automationMute = false;
|
|
2661
|
+
object.effectiveLevel = 0;
|
|
2662
|
+
object.effectiveMute = false;
|
|
2228
2663
|
}
|
|
2229
2664
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
2230
2665
|
object.id = message.id;
|
|
@@ -2248,6 +2683,16 @@ var sesame = $root.sesame = (() => {
|
|
|
2248
2683
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
2249
2684
|
object.plugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.plugins[j], options);
|
|
2250
2685
|
}
|
|
2686
|
+
if (message.mute != null && message.hasOwnProperty("mute"))
|
|
2687
|
+
object.mute = message.mute;
|
|
2688
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel"))
|
|
2689
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
2690
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute"))
|
|
2691
|
+
object.automationMute = message.automationMute;
|
|
2692
|
+
if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel"))
|
|
2693
|
+
object.effectiveLevel = options.json && !isFinite(message.effectiveLevel) ? String(message.effectiveLevel) : message.effectiveLevel;
|
|
2694
|
+
if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute"))
|
|
2695
|
+
object.effectiveMute = message.effectiveMute;
|
|
2251
2696
|
return object;
|
|
2252
2697
|
};
|
|
2253
2698
|
AudioChannelStatus.prototype.toJSON = function toJSON() {
|
|
@@ -2261,24 +2706,25 @@ var sesame = $root.sesame = (() => {
|
|
|
2261
2706
|
};
|
|
2262
2707
|
return AudioChannelStatus;
|
|
2263
2708
|
}();
|
|
2264
|
-
audio.
|
|
2265
|
-
function
|
|
2709
|
+
audio.AudioMixerOutputStatus = function() {
|
|
2710
|
+
function AudioMixerOutputStatus(properties) {
|
|
2266
2711
|
this.vu = [];
|
|
2267
|
-
this.
|
|
2712
|
+
this.excludedChannelIds = [];
|
|
2268
2713
|
if (properties) {
|
|
2269
2714
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2270
2715
|
if (properties[keys[i]] != null)
|
|
2271
2716
|
this[keys[i]] = properties[keys[i]];
|
|
2272
2717
|
}
|
|
2273
2718
|
}
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2719
|
+
AudioMixerOutputStatus.prototype.id = "";
|
|
2720
|
+
AudioMixerOutputStatus.prototype.outputType = 0;
|
|
2721
|
+
AudioMixerOutputStatus.prototype.vu = $util.emptyArray;
|
|
2722
|
+
AudioMixerOutputStatus.prototype.excludedChannelIds = $util.emptyArray;
|
|
2723
|
+
AudioMixerOutputStatus.prototype.includeMasterPlugins = false;
|
|
2724
|
+
AudioMixerOutputStatus.create = function create(properties) {
|
|
2725
|
+
return new AudioMixerOutputStatus(properties);
|
|
2726
|
+
};
|
|
2727
|
+
AudioMixerOutputStatus.encode = function encode(message, writer) {
|
|
2282
2728
|
if (!writer)
|
|
2283
2729
|
writer = $Writer.create();
|
|
2284
2730
|
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
@@ -2300,21 +2746,26 @@ var sesame = $root.sesame = (() => {
|
|
|
2300
2746
|
writer.float(message.vu[i]);
|
|
2301
2747
|
writer.ldelim();
|
|
2302
2748
|
}
|
|
2303
|
-
if (message.
|
|
2304
|
-
for (let i = 0; i < message.
|
|
2305
|
-
|
|
2749
|
+
if (message.excludedChannelIds != null && message.excludedChannelIds.length)
|
|
2750
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
2751
|
+
writer.uint32(
|
|
2306
2752
|
/* id 4, wireType 2 =*/
|
|
2307
2753
|
34
|
|
2308
|
-
).
|
|
2754
|
+
).string(message.excludedChannelIds[i]);
|
|
2755
|
+
if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
|
|
2756
|
+
writer.uint32(
|
|
2757
|
+
/* id 5, wireType 0 =*/
|
|
2758
|
+
40
|
|
2759
|
+
).bool(message.includeMasterPlugins);
|
|
2309
2760
|
return writer;
|
|
2310
2761
|
};
|
|
2311
|
-
|
|
2762
|
+
AudioMixerOutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2312
2763
|
return this.encode(message, writer).ldelim();
|
|
2313
2764
|
};
|
|
2314
|
-
|
|
2765
|
+
AudioMixerOutputStatus.decode = function decode(reader, length, error) {
|
|
2315
2766
|
if (!(reader instanceof $Reader))
|
|
2316
2767
|
reader = $Reader.create(reader);
|
|
2317
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.
|
|
2768
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
|
|
2318
2769
|
while (reader.pos < end) {
|
|
2319
2770
|
let tag = reader.uint32();
|
|
2320
2771
|
if (tag === error)
|
|
@@ -2340,9 +2791,13 @@ var sesame = $root.sesame = (() => {
|
|
|
2340
2791
|
break;
|
|
2341
2792
|
}
|
|
2342
2793
|
case 4: {
|
|
2343
|
-
if (!(message.
|
|
2344
|
-
message.
|
|
2345
|
-
message.
|
|
2794
|
+
if (!(message.excludedChannelIds && message.excludedChannelIds.length))
|
|
2795
|
+
message.excludedChannelIds = [];
|
|
2796
|
+
message.excludedChannelIds.push(reader.string());
|
|
2797
|
+
break;
|
|
2798
|
+
}
|
|
2799
|
+
case 5: {
|
|
2800
|
+
message.includeMasterPlugins = reader.bool();
|
|
2346
2801
|
break;
|
|
2347
2802
|
}
|
|
2348
2803
|
default:
|
|
@@ -2352,12 +2807,12 @@ var sesame = $root.sesame = (() => {
|
|
|
2352
2807
|
}
|
|
2353
2808
|
return message;
|
|
2354
2809
|
};
|
|
2355
|
-
|
|
2810
|
+
AudioMixerOutputStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
2356
2811
|
if (!(reader instanceof $Reader))
|
|
2357
2812
|
reader = new $Reader(reader);
|
|
2358
2813
|
return this.decode(reader, reader.uint32());
|
|
2359
2814
|
};
|
|
2360
|
-
|
|
2815
|
+
AudioMixerOutputStatus.verify = function verify(message) {
|
|
2361
2816
|
if (typeof message !== "object" || message === null)
|
|
2362
2817
|
return "object expected";
|
|
2363
2818
|
if (message.id != null && message.hasOwnProperty("id")) {
|
|
@@ -2380,15 +2835,321 @@ var sesame = $root.sesame = (() => {
|
|
|
2380
2835
|
if (typeof message.vu[i] !== "number")
|
|
2381
2836
|
return "vu: number[] expected";
|
|
2382
2837
|
}
|
|
2383
|
-
if (message.
|
|
2384
|
-
if (!Array.isArray(message.
|
|
2385
|
-
return "
|
|
2386
|
-
for (let i = 0; i < message.
|
|
2387
|
-
|
|
2838
|
+
if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
|
|
2839
|
+
if (!Array.isArray(message.excludedChannelIds))
|
|
2840
|
+
return "excludedChannelIds: array expected";
|
|
2841
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
2842
|
+
if (!$util.isString(message.excludedChannelIds[i]))
|
|
2843
|
+
return "excludedChannelIds: string[] expected";
|
|
2844
|
+
}
|
|
2845
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
2846
|
+
if (typeof message.includeMasterPlugins !== "boolean")
|
|
2847
|
+
return "includeMasterPlugins: boolean expected";
|
|
2848
|
+
}
|
|
2849
|
+
return null;
|
|
2850
|
+
};
|
|
2851
|
+
AudioMixerOutputStatus.fromObject = function fromObject(object) {
|
|
2852
|
+
if (object instanceof $root.sesame.v1.audio.AudioMixerOutputStatus)
|
|
2853
|
+
return object;
|
|
2854
|
+
let message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
|
|
2855
|
+
if (object.id != null)
|
|
2856
|
+
message.id = String(object.id);
|
|
2857
|
+
switch (object.outputType) {
|
|
2858
|
+
default:
|
|
2859
|
+
if (typeof object.outputType === "number") {
|
|
2860
|
+
message.outputType = object.outputType;
|
|
2861
|
+
break;
|
|
2862
|
+
}
|
|
2863
|
+
break;
|
|
2864
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED":
|
|
2865
|
+
case 0:
|
|
2866
|
+
message.outputType = 0;
|
|
2867
|
+
break;
|
|
2868
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_MONO":
|
|
2869
|
+
case 1:
|
|
2870
|
+
message.outputType = 1;
|
|
2871
|
+
break;
|
|
2872
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_STEREO":
|
|
2873
|
+
case 2:
|
|
2874
|
+
message.outputType = 2;
|
|
2875
|
+
break;
|
|
2876
|
+
}
|
|
2877
|
+
if (object.vu) {
|
|
2878
|
+
if (!Array.isArray(object.vu))
|
|
2879
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.vu: array expected");
|
|
2880
|
+
message.vu = [];
|
|
2881
|
+
for (let i = 0; i < object.vu.length; ++i)
|
|
2882
|
+
message.vu[i] = Number(object.vu[i]);
|
|
2883
|
+
}
|
|
2884
|
+
if (object.excludedChannelIds) {
|
|
2885
|
+
if (!Array.isArray(object.excludedChannelIds))
|
|
2886
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.excludedChannelIds: array expected");
|
|
2887
|
+
message.excludedChannelIds = [];
|
|
2888
|
+
for (let i = 0; i < object.excludedChannelIds.length; ++i)
|
|
2889
|
+
message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
|
|
2890
|
+
}
|
|
2891
|
+
if (object.includeMasterPlugins != null)
|
|
2892
|
+
message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
|
|
2893
|
+
return message;
|
|
2894
|
+
};
|
|
2895
|
+
AudioMixerOutputStatus.toObject = function toObject(message, options) {
|
|
2896
|
+
if (!options)
|
|
2897
|
+
options = {};
|
|
2898
|
+
let object = {};
|
|
2899
|
+
if (options.arrays || options.defaults) {
|
|
2900
|
+
object.vu = [];
|
|
2901
|
+
object.excludedChannelIds = [];
|
|
2902
|
+
}
|
|
2903
|
+
if (options.defaults) {
|
|
2904
|
+
object.id = "";
|
|
2905
|
+
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
2906
|
+
object.includeMasterPlugins = false;
|
|
2907
|
+
}
|
|
2908
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2909
|
+
object.id = message.id;
|
|
2910
|
+
if (message.outputType != null && message.hasOwnProperty("outputType"))
|
|
2911
|
+
object.outputType = options.enums === String ? $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] === void 0 ? message.outputType : $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] : message.outputType;
|
|
2912
|
+
if (message.vu && message.vu.length) {
|
|
2913
|
+
object.vu = [];
|
|
2914
|
+
for (let j = 0; j < message.vu.length; ++j)
|
|
2915
|
+
object.vu[j] = options.json && !isFinite(message.vu[j]) ? String(message.vu[j]) : message.vu[j];
|
|
2916
|
+
}
|
|
2917
|
+
if (message.excludedChannelIds && message.excludedChannelIds.length) {
|
|
2918
|
+
object.excludedChannelIds = [];
|
|
2919
|
+
for (let j = 0; j < message.excludedChannelIds.length; ++j)
|
|
2920
|
+
object.excludedChannelIds[j] = message.excludedChannelIds[j];
|
|
2921
|
+
}
|
|
2922
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins"))
|
|
2923
|
+
object.includeMasterPlugins = message.includeMasterPlugins;
|
|
2924
|
+
return object;
|
|
2925
|
+
};
|
|
2926
|
+
AudioMixerOutputStatus.prototype.toJSON = function toJSON() {
|
|
2927
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2928
|
+
};
|
|
2929
|
+
AudioMixerOutputStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2930
|
+
if (typeUrlPrefix === void 0) {
|
|
2931
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2932
|
+
}
|
|
2933
|
+
return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutputStatus";
|
|
2934
|
+
};
|
|
2935
|
+
return AudioMixerOutputStatus;
|
|
2936
|
+
}();
|
|
2937
|
+
audio.AudioMixerStatus = function() {
|
|
2938
|
+
function AudioMixerStatus(properties) {
|
|
2939
|
+
this.vu = [];
|
|
2940
|
+
this.channels = [];
|
|
2941
|
+
this.masterPlugins = [];
|
|
2942
|
+
this.outputs = [];
|
|
2943
|
+
if (properties) {
|
|
2944
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2945
|
+
if (properties[keys[i]] != null)
|
|
2946
|
+
this[keys[i]] = properties[keys[i]];
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
AudioMixerStatus.prototype.id = "";
|
|
2950
|
+
AudioMixerStatus.prototype.outputType = 0;
|
|
2951
|
+
AudioMixerStatus.prototype.vu = $util.emptyArray;
|
|
2952
|
+
AudioMixerStatus.prototype.channels = $util.emptyArray;
|
|
2953
|
+
AudioMixerStatus.prototype.masterLevel = 0;
|
|
2954
|
+
AudioMixerStatus.prototype.masterAutomationLevel = 0;
|
|
2955
|
+
AudioMixerStatus.prototype.masterEffectiveLevel = 0;
|
|
2956
|
+
AudioMixerStatus.prototype.masterPlugins = $util.emptyArray;
|
|
2957
|
+
AudioMixerStatus.prototype.outputs = $util.emptyArray;
|
|
2958
|
+
AudioMixerStatus.create = function create(properties) {
|
|
2959
|
+
return new AudioMixerStatus(properties);
|
|
2960
|
+
};
|
|
2961
|
+
AudioMixerStatus.encode = function encode(message, writer) {
|
|
2962
|
+
if (!writer)
|
|
2963
|
+
writer = $Writer.create();
|
|
2964
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
2965
|
+
writer.uint32(
|
|
2966
|
+
/* id 1, wireType 2 =*/
|
|
2967
|
+
10
|
|
2968
|
+
).string(message.id);
|
|
2969
|
+
if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType"))
|
|
2970
|
+
writer.uint32(
|
|
2971
|
+
/* id 2, wireType 0 =*/
|
|
2972
|
+
16
|
|
2973
|
+
).int32(message.outputType);
|
|
2974
|
+
if (message.vu != null && message.vu.length) {
|
|
2975
|
+
writer.uint32(
|
|
2976
|
+
/* id 3, wireType 2 =*/
|
|
2977
|
+
26
|
|
2978
|
+
).fork();
|
|
2979
|
+
for (let i = 0; i < message.vu.length; ++i)
|
|
2980
|
+
writer.float(message.vu[i]);
|
|
2981
|
+
writer.ldelim();
|
|
2982
|
+
}
|
|
2983
|
+
if (message.channels != null && message.channels.length)
|
|
2984
|
+
for (let i = 0; i < message.channels.length; ++i)
|
|
2985
|
+
$root.sesame.v1.audio.AudioChannelStatus.encode(message.channels[i], writer.uint32(
|
|
2986
|
+
/* id 4, wireType 2 =*/
|
|
2987
|
+
34
|
|
2988
|
+
).fork()).ldelim();
|
|
2989
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
2990
|
+
writer.uint32(
|
|
2991
|
+
/* id 5, wireType 5 =*/
|
|
2992
|
+
45
|
|
2993
|
+
).float(message.masterLevel);
|
|
2994
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
2995
|
+
writer.uint32(
|
|
2996
|
+
/* id 6, wireType 5 =*/
|
|
2997
|
+
53
|
|
2998
|
+
).float(message.masterAutomationLevel);
|
|
2999
|
+
if (message.masterEffectiveLevel != null && Object.hasOwnProperty.call(message, "masterEffectiveLevel"))
|
|
3000
|
+
writer.uint32(
|
|
3001
|
+
/* id 7, wireType 5 =*/
|
|
3002
|
+
61
|
|
3003
|
+
).float(message.masterEffectiveLevel);
|
|
3004
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
3005
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
3006
|
+
$root.sesame.v1.audio.AudioChannelPluginStatus.encode(message.masterPlugins[i], writer.uint32(
|
|
3007
|
+
/* id 8, wireType 2 =*/
|
|
3008
|
+
66
|
|
3009
|
+
).fork()).ldelim();
|
|
3010
|
+
if (message.outputs != null && message.outputs.length)
|
|
3011
|
+
for (let i = 0; i < message.outputs.length; ++i)
|
|
3012
|
+
$root.sesame.v1.audio.AudioMixerOutputStatus.encode(message.outputs[i], writer.uint32(
|
|
3013
|
+
/* id 9, wireType 2 =*/
|
|
3014
|
+
74
|
|
3015
|
+
).fork()).ldelim();
|
|
3016
|
+
return writer;
|
|
3017
|
+
};
|
|
3018
|
+
AudioMixerStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3019
|
+
return this.encode(message, writer).ldelim();
|
|
3020
|
+
};
|
|
3021
|
+
AudioMixerStatus.decode = function decode(reader, length, error) {
|
|
3022
|
+
if (!(reader instanceof $Reader))
|
|
3023
|
+
reader = $Reader.create(reader);
|
|
3024
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerStatus();
|
|
3025
|
+
while (reader.pos < end) {
|
|
3026
|
+
let tag = reader.uint32();
|
|
3027
|
+
if (tag === error)
|
|
3028
|
+
break;
|
|
3029
|
+
switch (tag >>> 3) {
|
|
3030
|
+
case 1: {
|
|
3031
|
+
message.id = reader.string();
|
|
3032
|
+
break;
|
|
3033
|
+
}
|
|
3034
|
+
case 2: {
|
|
3035
|
+
message.outputType = reader.int32();
|
|
3036
|
+
break;
|
|
3037
|
+
}
|
|
3038
|
+
case 3: {
|
|
3039
|
+
if (!(message.vu && message.vu.length))
|
|
3040
|
+
message.vu = [];
|
|
3041
|
+
if ((tag & 7) === 2) {
|
|
3042
|
+
let end2 = reader.uint32() + reader.pos;
|
|
3043
|
+
while (reader.pos < end2)
|
|
3044
|
+
message.vu.push(reader.float());
|
|
3045
|
+
} else
|
|
3046
|
+
message.vu.push(reader.float());
|
|
3047
|
+
break;
|
|
3048
|
+
}
|
|
3049
|
+
case 4: {
|
|
3050
|
+
if (!(message.channels && message.channels.length))
|
|
3051
|
+
message.channels = [];
|
|
3052
|
+
message.channels.push($root.sesame.v1.audio.AudioChannelStatus.decode(reader, reader.uint32()));
|
|
3053
|
+
break;
|
|
3054
|
+
}
|
|
3055
|
+
case 5: {
|
|
3056
|
+
message.masterLevel = reader.float();
|
|
3057
|
+
break;
|
|
3058
|
+
}
|
|
3059
|
+
case 6: {
|
|
3060
|
+
message.masterAutomationLevel = reader.float();
|
|
3061
|
+
break;
|
|
3062
|
+
}
|
|
3063
|
+
case 7: {
|
|
3064
|
+
message.masterEffectiveLevel = reader.float();
|
|
3065
|
+
break;
|
|
3066
|
+
}
|
|
3067
|
+
case 8: {
|
|
3068
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
3069
|
+
message.masterPlugins = [];
|
|
3070
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
|
|
3071
|
+
break;
|
|
3072
|
+
}
|
|
3073
|
+
case 9: {
|
|
3074
|
+
if (!(message.outputs && message.outputs.length))
|
|
3075
|
+
message.outputs = [];
|
|
3076
|
+
message.outputs.push($root.sesame.v1.audio.AudioMixerOutputStatus.decode(reader, reader.uint32()));
|
|
3077
|
+
break;
|
|
3078
|
+
}
|
|
3079
|
+
default:
|
|
3080
|
+
reader.skipType(tag & 7);
|
|
3081
|
+
break;
|
|
3082
|
+
}
|
|
3083
|
+
}
|
|
3084
|
+
return message;
|
|
3085
|
+
};
|
|
3086
|
+
AudioMixerStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
3087
|
+
if (!(reader instanceof $Reader))
|
|
3088
|
+
reader = new $Reader(reader);
|
|
3089
|
+
return this.decode(reader, reader.uint32());
|
|
3090
|
+
};
|
|
3091
|
+
AudioMixerStatus.verify = function verify(message) {
|
|
3092
|
+
if (typeof message !== "object" || message === null)
|
|
3093
|
+
return "object expected";
|
|
3094
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
3095
|
+
if (!$util.isString(message.id))
|
|
3096
|
+
return "id: string expected";
|
|
3097
|
+
}
|
|
3098
|
+
if (message.outputType != null && message.hasOwnProperty("outputType"))
|
|
3099
|
+
switch (message.outputType) {
|
|
3100
|
+
default:
|
|
3101
|
+
return "outputType: enum value expected";
|
|
3102
|
+
case 0:
|
|
3103
|
+
case 1:
|
|
3104
|
+
case 2:
|
|
3105
|
+
break;
|
|
3106
|
+
}
|
|
3107
|
+
if (message.vu != null && message.hasOwnProperty("vu")) {
|
|
3108
|
+
if (!Array.isArray(message.vu))
|
|
3109
|
+
return "vu: array expected";
|
|
3110
|
+
for (let i = 0; i < message.vu.length; ++i)
|
|
3111
|
+
if (typeof message.vu[i] !== "number")
|
|
3112
|
+
return "vu: number[] expected";
|
|
3113
|
+
}
|
|
3114
|
+
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
3115
|
+
if (!Array.isArray(message.channels))
|
|
3116
|
+
return "channels: array expected";
|
|
3117
|
+
for (let i = 0; i < message.channels.length; ++i) {
|
|
3118
|
+
let error = $root.sesame.v1.audio.AudioChannelStatus.verify(message.channels[i]);
|
|
2388
3119
|
if (error)
|
|
2389
3120
|
return "channels." + error;
|
|
2390
3121
|
}
|
|
2391
3122
|
}
|
|
3123
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
3124
|
+
if (typeof message.masterLevel !== "number")
|
|
3125
|
+
return "masterLevel: number expected";
|
|
3126
|
+
}
|
|
3127
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
3128
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
3129
|
+
return "masterAutomationLevel: number expected";
|
|
3130
|
+
}
|
|
3131
|
+
if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel")) {
|
|
3132
|
+
if (typeof message.masterEffectiveLevel !== "number")
|
|
3133
|
+
return "masterEffectiveLevel: number expected";
|
|
3134
|
+
}
|
|
3135
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
3136
|
+
if (!Array.isArray(message.masterPlugins))
|
|
3137
|
+
return "masterPlugins: array expected";
|
|
3138
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
3139
|
+
let error = $root.sesame.v1.audio.AudioChannelPluginStatus.verify(message.masterPlugins[i]);
|
|
3140
|
+
if (error)
|
|
3141
|
+
return "masterPlugins." + error;
|
|
3142
|
+
}
|
|
3143
|
+
}
|
|
3144
|
+
if (message.outputs != null && message.hasOwnProperty("outputs")) {
|
|
3145
|
+
if (!Array.isArray(message.outputs))
|
|
3146
|
+
return "outputs: array expected";
|
|
3147
|
+
for (let i = 0; i < message.outputs.length; ++i) {
|
|
3148
|
+
let error = $root.sesame.v1.audio.AudioMixerOutputStatus.verify(message.outputs[i]);
|
|
3149
|
+
if (error)
|
|
3150
|
+
return "outputs." + error;
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
2392
3153
|
return null;
|
|
2393
3154
|
};
|
|
2394
3155
|
AudioMixerStatus.fromObject = function fromObject(object) {
|
|
@@ -2434,6 +3195,32 @@ var sesame = $root.sesame = (() => {
|
|
|
2434
3195
|
message.channels[i] = $root.sesame.v1.audio.AudioChannelStatus.fromObject(object.channels[i]);
|
|
2435
3196
|
}
|
|
2436
3197
|
}
|
|
3198
|
+
if (object.masterLevel != null)
|
|
3199
|
+
message.masterLevel = Number(object.masterLevel);
|
|
3200
|
+
if (object.masterAutomationLevel != null)
|
|
3201
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
3202
|
+
if (object.masterEffectiveLevel != null)
|
|
3203
|
+
message.masterEffectiveLevel = Number(object.masterEffectiveLevel);
|
|
3204
|
+
if (object.masterPlugins) {
|
|
3205
|
+
if (!Array.isArray(object.masterPlugins))
|
|
3206
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: array expected");
|
|
3207
|
+
message.masterPlugins = [];
|
|
3208
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
3209
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
3210
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: object expected");
|
|
3211
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.masterPlugins[i]);
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
if (object.outputs) {
|
|
3215
|
+
if (!Array.isArray(object.outputs))
|
|
3216
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: array expected");
|
|
3217
|
+
message.outputs = [];
|
|
3218
|
+
for (let i = 0; i < object.outputs.length; ++i) {
|
|
3219
|
+
if (typeof object.outputs[i] !== "object")
|
|
3220
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: object expected");
|
|
3221
|
+
message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutputStatus.fromObject(object.outputs[i]);
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
2437
3224
|
return message;
|
|
2438
3225
|
};
|
|
2439
3226
|
AudioMixerStatus.toObject = function toObject(message, options) {
|
|
@@ -2443,10 +3230,15 @@ var sesame = $root.sesame = (() => {
|
|
|
2443
3230
|
if (options.arrays || options.defaults) {
|
|
2444
3231
|
object.vu = [];
|
|
2445
3232
|
object.channels = [];
|
|
3233
|
+
object.masterPlugins = [];
|
|
3234
|
+
object.outputs = [];
|
|
2446
3235
|
}
|
|
2447
3236
|
if (options.defaults) {
|
|
2448
3237
|
object.id = "";
|
|
2449
3238
|
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
3239
|
+
object.masterLevel = 0;
|
|
3240
|
+
object.masterAutomationLevel = 0;
|
|
3241
|
+
object.masterEffectiveLevel = 0;
|
|
2450
3242
|
}
|
|
2451
3243
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
2452
3244
|
object.id = message.id;
|
|
@@ -2462,6 +3254,22 @@ var sesame = $root.sesame = (() => {
|
|
|
2462
3254
|
for (let j = 0; j < message.channels.length; ++j)
|
|
2463
3255
|
object.channels[j] = $root.sesame.v1.audio.AudioChannelStatus.toObject(message.channels[j], options);
|
|
2464
3256
|
}
|
|
3257
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel"))
|
|
3258
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
3259
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel"))
|
|
3260
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
3261
|
+
if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel"))
|
|
3262
|
+
object.masterEffectiveLevel = options.json && !isFinite(message.masterEffectiveLevel) ? String(message.masterEffectiveLevel) : message.masterEffectiveLevel;
|
|
3263
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
3264
|
+
object.masterPlugins = [];
|
|
3265
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
3266
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.masterPlugins[j], options);
|
|
3267
|
+
}
|
|
3268
|
+
if (message.outputs && message.outputs.length) {
|
|
3269
|
+
object.outputs = [];
|
|
3270
|
+
for (let j = 0; j < message.outputs.length; ++j)
|
|
3271
|
+
object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutputStatus.toObject(message.outputs[j], options);
|
|
3272
|
+
}
|
|
2465
3273
|
return object;
|
|
2466
3274
|
};
|
|
2467
3275
|
AudioMixerStatus.prototype.toJSON = function toJSON() {
|
|
@@ -2616,6 +3424,9 @@ var sesame = $root.sesame = (() => {
|
|
|
2616
3424
|
AudioChannelControlRequest.prototype.level = null;
|
|
2617
3425
|
AudioChannelControlRequest.prototype.pan = null;
|
|
2618
3426
|
AudioChannelControlRequest.prototype.plugins = $util.emptyArray;
|
|
3427
|
+
AudioChannelControlRequest.prototype.mute = null;
|
|
3428
|
+
AudioChannelControlRequest.prototype.automationLevel = null;
|
|
3429
|
+
AudioChannelControlRequest.prototype.automationMute = null;
|
|
2619
3430
|
let $oneOfFields;
|
|
2620
3431
|
Object.defineProperty(AudioChannelControlRequest.prototype, "_level", {
|
|
2621
3432
|
get: $util.oneOfGetter($oneOfFields = ["level"]),
|
|
@@ -2625,11 +3436,23 @@ var sesame = $root.sesame = (() => {
|
|
|
2625
3436
|
get: $util.oneOfGetter($oneOfFields = ["pan"]),
|
|
2626
3437
|
set: $util.oneOfSetter($oneOfFields)
|
|
2627
3438
|
});
|
|
2628
|
-
AudioChannelControlRequest.
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
3439
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_mute", {
|
|
3440
|
+
get: $util.oneOfGetter($oneOfFields = ["mute"]),
|
|
3441
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3442
|
+
});
|
|
3443
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_automationLevel", {
|
|
3444
|
+
get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
|
|
3445
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3446
|
+
});
|
|
3447
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_automationMute", {
|
|
3448
|
+
get: $util.oneOfGetter($oneOfFields = ["automationMute"]),
|
|
3449
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3450
|
+
});
|
|
3451
|
+
AudioChannelControlRequest.create = function create(properties) {
|
|
3452
|
+
return new AudioChannelControlRequest(properties);
|
|
3453
|
+
};
|
|
3454
|
+
AudioChannelControlRequest.encode = function encode(message, writer) {
|
|
3455
|
+
if (!writer)
|
|
2633
3456
|
writer = $Writer.create();
|
|
2634
3457
|
if (message.channelId != null && Object.hasOwnProperty.call(message, "channelId"))
|
|
2635
3458
|
writer.uint32(
|
|
@@ -2652,6 +3475,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2652
3475
|
/* id 4, wireType 2 =*/
|
|
2653
3476
|
34
|
|
2654
3477
|
).fork()).ldelim();
|
|
3478
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
3479
|
+
writer.uint32(
|
|
3480
|
+
/* id 5, wireType 0 =*/
|
|
3481
|
+
40
|
|
3482
|
+
).bool(message.mute);
|
|
3483
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
3484
|
+
writer.uint32(
|
|
3485
|
+
/* id 6, wireType 5 =*/
|
|
3486
|
+
53
|
|
3487
|
+
).float(message.automationLevel);
|
|
3488
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
3489
|
+
writer.uint32(
|
|
3490
|
+
/* id 7, wireType 0 =*/
|
|
3491
|
+
56
|
|
3492
|
+
).bool(message.automationMute);
|
|
2655
3493
|
return writer;
|
|
2656
3494
|
};
|
|
2657
3495
|
AudioChannelControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2684,6 +3522,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2684
3522
|
message.plugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
|
|
2685
3523
|
break;
|
|
2686
3524
|
}
|
|
3525
|
+
case 5: {
|
|
3526
|
+
message.mute = reader.bool();
|
|
3527
|
+
break;
|
|
3528
|
+
}
|
|
3529
|
+
case 6: {
|
|
3530
|
+
message.automationLevel = reader.float();
|
|
3531
|
+
break;
|
|
3532
|
+
}
|
|
3533
|
+
case 7: {
|
|
3534
|
+
message.automationMute = reader.bool();
|
|
3535
|
+
break;
|
|
3536
|
+
}
|
|
2687
3537
|
default:
|
|
2688
3538
|
reader.skipType(tag & 7);
|
|
2689
3539
|
break;
|
|
@@ -2723,6 +3573,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2723
3573
|
return "plugins." + error;
|
|
2724
3574
|
}
|
|
2725
3575
|
}
|
|
3576
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
3577
|
+
properties._mute = 1;
|
|
3578
|
+
if (typeof message.mute !== "boolean")
|
|
3579
|
+
return "mute: boolean expected";
|
|
3580
|
+
}
|
|
3581
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
3582
|
+
properties._automationLevel = 1;
|
|
3583
|
+
if (typeof message.automationLevel !== "number")
|
|
3584
|
+
return "automationLevel: number expected";
|
|
3585
|
+
}
|
|
3586
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
3587
|
+
properties._automationMute = 1;
|
|
3588
|
+
if (typeof message.automationMute !== "boolean")
|
|
3589
|
+
return "automationMute: boolean expected";
|
|
3590
|
+
}
|
|
2726
3591
|
return null;
|
|
2727
3592
|
};
|
|
2728
3593
|
AudioChannelControlRequest.fromObject = function fromObject(object) {
|
|
@@ -2745,6 +3610,12 @@ var sesame = $root.sesame = (() => {
|
|
|
2745
3610
|
message.plugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.plugins[i]);
|
|
2746
3611
|
}
|
|
2747
3612
|
}
|
|
3613
|
+
if (object.mute != null)
|
|
3614
|
+
message.mute = Boolean(object.mute);
|
|
3615
|
+
if (object.automationLevel != null)
|
|
3616
|
+
message.automationLevel = Number(object.automationLevel);
|
|
3617
|
+
if (object.automationMute != null)
|
|
3618
|
+
message.automationMute = Boolean(object.automationMute);
|
|
2748
3619
|
return message;
|
|
2749
3620
|
};
|
|
2750
3621
|
AudioChannelControlRequest.toObject = function toObject(message, options) {
|
|
@@ -2772,6 +3643,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2772
3643
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
2773
3644
|
object.plugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.plugins[j], options);
|
|
2774
3645
|
}
|
|
3646
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
3647
|
+
object.mute = message.mute;
|
|
3648
|
+
if (options.oneofs)
|
|
3649
|
+
object._mute = "mute";
|
|
3650
|
+
}
|
|
3651
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
3652
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
3653
|
+
if (options.oneofs)
|
|
3654
|
+
object._automationLevel = "automationLevel";
|
|
3655
|
+
}
|
|
3656
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
3657
|
+
object.automationMute = message.automationMute;
|
|
3658
|
+
if (options.oneofs)
|
|
3659
|
+
object._automationMute = "automationMute";
|
|
3660
|
+
}
|
|
2775
3661
|
return object;
|
|
2776
3662
|
};
|
|
2777
3663
|
AudioChannelControlRequest.prototype.toJSON = function toJSON() {
|
|
@@ -2788,6 +3674,7 @@ var sesame = $root.sesame = (() => {
|
|
|
2788
3674
|
audio.AudioControlRequest = function() {
|
|
2789
3675
|
function AudioControlRequest(properties) {
|
|
2790
3676
|
this.channels = [];
|
|
3677
|
+
this.masterPlugins = [];
|
|
2791
3678
|
if (properties) {
|
|
2792
3679
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2793
3680
|
if (properties[keys[i]] != null)
|
|
@@ -2795,6 +3682,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2795
3682
|
}
|
|
2796
3683
|
}
|
|
2797
3684
|
AudioControlRequest.prototype.channels = $util.emptyArray;
|
|
3685
|
+
AudioControlRequest.prototype.masterLevel = null;
|
|
3686
|
+
AudioControlRequest.prototype.masterAutomationLevel = null;
|
|
3687
|
+
AudioControlRequest.prototype.masterPlugins = $util.emptyArray;
|
|
3688
|
+
let $oneOfFields;
|
|
3689
|
+
Object.defineProperty(AudioControlRequest.prototype, "_masterLevel", {
|
|
3690
|
+
get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
|
|
3691
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3692
|
+
});
|
|
3693
|
+
Object.defineProperty(AudioControlRequest.prototype, "_masterAutomationLevel", {
|
|
3694
|
+
get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
|
|
3695
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3696
|
+
});
|
|
2798
3697
|
AudioControlRequest.create = function create(properties) {
|
|
2799
3698
|
return new AudioControlRequest(properties);
|
|
2800
3699
|
};
|
|
@@ -2807,6 +3706,22 @@ var sesame = $root.sesame = (() => {
|
|
|
2807
3706
|
/* id 1, wireType 2 =*/
|
|
2808
3707
|
10
|
|
2809
3708
|
).fork()).ldelim();
|
|
3709
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
3710
|
+
writer.uint32(
|
|
3711
|
+
/* id 2, wireType 5 =*/
|
|
3712
|
+
21
|
|
3713
|
+
).float(message.masterLevel);
|
|
3714
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
3715
|
+
writer.uint32(
|
|
3716
|
+
/* id 3, wireType 5 =*/
|
|
3717
|
+
29
|
|
3718
|
+
).float(message.masterAutomationLevel);
|
|
3719
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
3720
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
3721
|
+
$root.sesame.v1.audio.AudioPluginControlRequest.encode(message.masterPlugins[i], writer.uint32(
|
|
3722
|
+
/* id 4, wireType 2 =*/
|
|
3723
|
+
34
|
|
3724
|
+
).fork()).ldelim();
|
|
2810
3725
|
return writer;
|
|
2811
3726
|
};
|
|
2812
3727
|
AudioControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2827,6 +3742,20 @@ var sesame = $root.sesame = (() => {
|
|
|
2827
3742
|
message.channels.push($root.sesame.v1.audio.AudioChannelControlRequest.decode(reader, reader.uint32()));
|
|
2828
3743
|
break;
|
|
2829
3744
|
}
|
|
3745
|
+
case 2: {
|
|
3746
|
+
message.masterLevel = reader.float();
|
|
3747
|
+
break;
|
|
3748
|
+
}
|
|
3749
|
+
case 3: {
|
|
3750
|
+
message.masterAutomationLevel = reader.float();
|
|
3751
|
+
break;
|
|
3752
|
+
}
|
|
3753
|
+
case 4: {
|
|
3754
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
3755
|
+
message.masterPlugins = [];
|
|
3756
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
|
|
3757
|
+
break;
|
|
3758
|
+
}
|
|
2830
3759
|
default:
|
|
2831
3760
|
reader.skipType(tag & 7);
|
|
2832
3761
|
break;
|
|
@@ -2842,6 +3771,7 @@ var sesame = $root.sesame = (() => {
|
|
|
2842
3771
|
AudioControlRequest.verify = function verify(message) {
|
|
2843
3772
|
if (typeof message !== "object" || message === null)
|
|
2844
3773
|
return "object expected";
|
|
3774
|
+
let properties = {};
|
|
2845
3775
|
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
2846
3776
|
if (!Array.isArray(message.channels))
|
|
2847
3777
|
return "channels: array expected";
|
|
@@ -2851,6 +3781,25 @@ var sesame = $root.sesame = (() => {
|
|
|
2851
3781
|
return "channels." + error;
|
|
2852
3782
|
}
|
|
2853
3783
|
}
|
|
3784
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
3785
|
+
properties._masterLevel = 1;
|
|
3786
|
+
if (typeof message.masterLevel !== "number")
|
|
3787
|
+
return "masterLevel: number expected";
|
|
3788
|
+
}
|
|
3789
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
3790
|
+
properties._masterAutomationLevel = 1;
|
|
3791
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
3792
|
+
return "masterAutomationLevel: number expected";
|
|
3793
|
+
}
|
|
3794
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
3795
|
+
if (!Array.isArray(message.masterPlugins))
|
|
3796
|
+
return "masterPlugins: array expected";
|
|
3797
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
3798
|
+
let error = $root.sesame.v1.audio.AudioPluginControlRequest.verify(message.masterPlugins[i]);
|
|
3799
|
+
if (error)
|
|
3800
|
+
return "masterPlugins." + error;
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
2854
3803
|
return null;
|
|
2855
3804
|
};
|
|
2856
3805
|
AudioControlRequest.fromObject = function fromObject(object) {
|
|
@@ -2867,19 +3816,50 @@ var sesame = $root.sesame = (() => {
|
|
|
2867
3816
|
message.channels[i] = $root.sesame.v1.audio.AudioChannelControlRequest.fromObject(object.channels[i]);
|
|
2868
3817
|
}
|
|
2869
3818
|
}
|
|
3819
|
+
if (object.masterLevel != null)
|
|
3820
|
+
message.masterLevel = Number(object.masterLevel);
|
|
3821
|
+
if (object.masterAutomationLevel != null)
|
|
3822
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
3823
|
+
if (object.masterPlugins) {
|
|
3824
|
+
if (!Array.isArray(object.masterPlugins))
|
|
3825
|
+
throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: array expected");
|
|
3826
|
+
message.masterPlugins = [];
|
|
3827
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
3828
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
3829
|
+
throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: object expected");
|
|
3830
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.masterPlugins[i]);
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
2870
3833
|
return message;
|
|
2871
3834
|
};
|
|
2872
3835
|
AudioControlRequest.toObject = function toObject(message, options) {
|
|
2873
3836
|
if (!options)
|
|
2874
3837
|
options = {};
|
|
2875
3838
|
let object = {};
|
|
2876
|
-
if (options.arrays || options.defaults)
|
|
3839
|
+
if (options.arrays || options.defaults) {
|
|
2877
3840
|
object.channels = [];
|
|
3841
|
+
object.masterPlugins = [];
|
|
3842
|
+
}
|
|
2878
3843
|
if (message.channels && message.channels.length) {
|
|
2879
3844
|
object.channels = [];
|
|
2880
3845
|
for (let j = 0; j < message.channels.length; ++j)
|
|
2881
3846
|
object.channels[j] = $root.sesame.v1.audio.AudioChannelControlRequest.toObject(message.channels[j], options);
|
|
2882
3847
|
}
|
|
3848
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
3849
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
3850
|
+
if (options.oneofs)
|
|
3851
|
+
object._masterLevel = "masterLevel";
|
|
3852
|
+
}
|
|
3853
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
3854
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
3855
|
+
if (options.oneofs)
|
|
3856
|
+
object._masterAutomationLevel = "masterAutomationLevel";
|
|
3857
|
+
}
|
|
3858
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
3859
|
+
object.masterPlugins = [];
|
|
3860
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
3861
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.masterPlugins[j], options);
|
|
3862
|
+
}
|
|
2883
3863
|
return object;
|
|
2884
3864
|
};
|
|
2885
3865
|
AudioControlRequest.prototype.toJSON = function toJSON() {
|
|
@@ -2931,11 +3911,14 @@ var sesame = $root.sesame = (() => {
|
|
|
2931
3911
|
CommandListItem.prototype.callback = null;
|
|
2932
3912
|
CommandListItem.prototype.setSourceMetadata = null;
|
|
2933
3913
|
CommandListItem.prototype.setMetadataBindings = null;
|
|
3914
|
+
CommandListItem.prototype.addEncoder = null;
|
|
3915
|
+
CommandListItem.prototype.updateEncoder = null;
|
|
3916
|
+
CommandListItem.prototype.removeEncoder = null;
|
|
2934
3917
|
CommandListItem.prototype.transactionId = null;
|
|
2935
3918
|
CommandListItem.prototype.transactionDeps = $util.emptyArray;
|
|
2936
3919
|
let $oneOfFields;
|
|
2937
3920
|
Object.defineProperty(CommandListItem.prototype, "item", {
|
|
2938
|
-
get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings"]),
|
|
3921
|
+
get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder"]),
|
|
2939
3922
|
set: $util.oneOfSetter($oneOfFields)
|
|
2940
3923
|
});
|
|
2941
3924
|
Object.defineProperty(CommandListItem.prototype, "_transactionId", {
|
|
@@ -3087,6 +4070,21 @@ var sesame = $root.sesame = (() => {
|
|
|
3087
4070
|
/* id 27, wireType 2 =*/
|
|
3088
4071
|
218
|
|
3089
4072
|
).fork()).ldelim();
|
|
4073
|
+
if (message.addEncoder != null && Object.hasOwnProperty.call(message, "addEncoder"))
|
|
4074
|
+
$root.sesame.v1.outputs.EncoderAddRequest.encode(message.addEncoder, writer.uint32(
|
|
4075
|
+
/* id 28, wireType 2 =*/
|
|
4076
|
+
226
|
|
4077
|
+
).fork()).ldelim();
|
|
4078
|
+
if (message.updateEncoder != null && Object.hasOwnProperty.call(message, "updateEncoder"))
|
|
4079
|
+
$root.sesame.v1.outputs.EncoderUpdateRequest.encode(message.updateEncoder, writer.uint32(
|
|
4080
|
+
/* id 29, wireType 2 =*/
|
|
4081
|
+
234
|
|
4082
|
+
).fork()).ldelim();
|
|
4083
|
+
if (message.removeEncoder != null && Object.hasOwnProperty.call(message, "removeEncoder"))
|
|
4084
|
+
$root.sesame.v1.outputs.EncoderRemoveRequest.encode(message.removeEncoder, writer.uint32(
|
|
4085
|
+
/* id 30, wireType 2 =*/
|
|
4086
|
+
242
|
|
4087
|
+
).fork()).ldelim();
|
|
3090
4088
|
return writer;
|
|
3091
4089
|
};
|
|
3092
4090
|
CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -3201,6 +4199,18 @@ var sesame = $root.sesame = (() => {
|
|
|
3201
4199
|
message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.decode(reader, reader.uint32());
|
|
3202
4200
|
break;
|
|
3203
4201
|
}
|
|
4202
|
+
case 28: {
|
|
4203
|
+
message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.decode(reader, reader.uint32());
|
|
4204
|
+
break;
|
|
4205
|
+
}
|
|
4206
|
+
case 29: {
|
|
4207
|
+
message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.decode(reader, reader.uint32());
|
|
4208
|
+
break;
|
|
4209
|
+
}
|
|
4210
|
+
case 30: {
|
|
4211
|
+
message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.decode(reader, reader.uint32());
|
|
4212
|
+
break;
|
|
4213
|
+
}
|
|
3204
4214
|
case 25: {
|
|
3205
4215
|
message.transactionId = reader.uint32();
|
|
3206
4216
|
break;
|
|
@@ -3474,6 +4484,36 @@ var sesame = $root.sesame = (() => {
|
|
|
3474
4484
|
return "setMetadataBindings." + error;
|
|
3475
4485
|
}
|
|
3476
4486
|
}
|
|
4487
|
+
if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
|
|
4488
|
+
if (properties.item === 1)
|
|
4489
|
+
return "item: multiple values";
|
|
4490
|
+
properties.item = 1;
|
|
4491
|
+
{
|
|
4492
|
+
let error = $root.sesame.v1.outputs.EncoderAddRequest.verify(message.addEncoder);
|
|
4493
|
+
if (error)
|
|
4494
|
+
return "addEncoder." + error;
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
|
|
4498
|
+
if (properties.item === 1)
|
|
4499
|
+
return "item: multiple values";
|
|
4500
|
+
properties.item = 1;
|
|
4501
|
+
{
|
|
4502
|
+
let error = $root.sesame.v1.outputs.EncoderUpdateRequest.verify(message.updateEncoder);
|
|
4503
|
+
if (error)
|
|
4504
|
+
return "updateEncoder." + error;
|
|
4505
|
+
}
|
|
4506
|
+
}
|
|
4507
|
+
if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
|
|
4508
|
+
if (properties.item === 1)
|
|
4509
|
+
return "item: multiple values";
|
|
4510
|
+
properties.item = 1;
|
|
4511
|
+
{
|
|
4512
|
+
let error = $root.sesame.v1.outputs.EncoderRemoveRequest.verify(message.removeEncoder);
|
|
4513
|
+
if (error)
|
|
4514
|
+
return "removeEncoder." + error;
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
3477
4517
|
if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
|
|
3478
4518
|
properties._transactionId = 1;
|
|
3479
4519
|
if (!$util.isInteger(message.transactionId))
|
|
@@ -3622,6 +4662,21 @@ var sesame = $root.sesame = (() => {
|
|
|
3622
4662
|
throw TypeError(".sesame.v1.commands.CommandListItem.setMetadataBindings: object expected");
|
|
3623
4663
|
message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.fromObject(object.setMetadataBindings);
|
|
3624
4664
|
}
|
|
4665
|
+
if (object.addEncoder != null) {
|
|
4666
|
+
if (typeof object.addEncoder !== "object")
|
|
4667
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.addEncoder: object expected");
|
|
4668
|
+
message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.fromObject(object.addEncoder);
|
|
4669
|
+
}
|
|
4670
|
+
if (object.updateEncoder != null) {
|
|
4671
|
+
if (typeof object.updateEncoder !== "object")
|
|
4672
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.updateEncoder: object expected");
|
|
4673
|
+
message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.fromObject(object.updateEncoder);
|
|
4674
|
+
}
|
|
4675
|
+
if (object.removeEncoder != null) {
|
|
4676
|
+
if (typeof object.removeEncoder !== "object")
|
|
4677
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.removeEncoder: object expected");
|
|
4678
|
+
message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.fromObject(object.removeEncoder);
|
|
4679
|
+
}
|
|
3625
4680
|
if (object.transactionId != null)
|
|
3626
4681
|
message.transactionId = object.transactionId >>> 0;
|
|
3627
4682
|
if (object.transactionDeps) {
|
|
@@ -3780,6 +4835,21 @@ var sesame = $root.sesame = (() => {
|
|
|
3780
4835
|
if (options.oneofs)
|
|
3781
4836
|
object.item = "setMetadataBindings";
|
|
3782
4837
|
}
|
|
4838
|
+
if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
|
|
4839
|
+
object.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.toObject(message.addEncoder, options);
|
|
4840
|
+
if (options.oneofs)
|
|
4841
|
+
object.item = "addEncoder";
|
|
4842
|
+
}
|
|
4843
|
+
if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
|
|
4844
|
+
object.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.toObject(message.updateEncoder, options);
|
|
4845
|
+
if (options.oneofs)
|
|
4846
|
+
object.item = "updateEncoder";
|
|
4847
|
+
}
|
|
4848
|
+
if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
|
|
4849
|
+
object.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.toObject(message.removeEncoder, options);
|
|
4850
|
+
if (options.oneofs)
|
|
4851
|
+
object.item = "removeEncoder";
|
|
4852
|
+
}
|
|
3783
4853
|
return object;
|
|
3784
4854
|
};
|
|
3785
4855
|
CommandListItem.prototype.toJSON = function toJSON() {
|
|
@@ -14326,6 +15396,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14326
15396
|
this.audioMixes = [];
|
|
14327
15397
|
this.outputs = [];
|
|
14328
15398
|
this.recorders = [];
|
|
15399
|
+
this.encoders = [];
|
|
14329
15400
|
if (properties) {
|
|
14330
15401
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14331
15402
|
if (properties[keys[i]] != null)
|
|
@@ -14340,6 +15411,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14340
15411
|
Status.prototype.audioMixes = $util.emptyArray;
|
|
14341
15412
|
Status.prototype.outputs = $util.emptyArray;
|
|
14342
15413
|
Status.prototype.recorders = $util.emptyArray;
|
|
15414
|
+
Status.prototype.encoders = $util.emptyArray;
|
|
14343
15415
|
Status.create = function create(properties) {
|
|
14344
15416
|
return new Status(properties);
|
|
14345
15417
|
};
|
|
@@ -14391,6 +15463,12 @@ var sesame = $root.sesame = (() => {
|
|
|
14391
15463
|
/* id 8, wireType 2 =*/
|
|
14392
15464
|
66
|
|
14393
15465
|
).fork()).ldelim();
|
|
15466
|
+
if (message.encoders != null && message.encoders.length)
|
|
15467
|
+
for (let i = 0; i < message.encoders.length; ++i)
|
|
15468
|
+
$root.sesame.v1.outputs.EncoderStatus.encode(message.encoders[i], writer.uint32(
|
|
15469
|
+
/* id 9, wireType 2 =*/
|
|
15470
|
+
74
|
|
15471
|
+
).fork()).ldelim();
|
|
14394
15472
|
return writer;
|
|
14395
15473
|
};
|
|
14396
15474
|
Status.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -14447,6 +15525,12 @@ var sesame = $root.sesame = (() => {
|
|
|
14447
15525
|
message.recorders.push($root.sesame.v1.recorder.RecorderStatus.decode(reader, reader.uint32()));
|
|
14448
15526
|
break;
|
|
14449
15527
|
}
|
|
15528
|
+
case 9: {
|
|
15529
|
+
if (!(message.encoders && message.encoders.length))
|
|
15530
|
+
message.encoders = [];
|
|
15531
|
+
message.encoders.push($root.sesame.v1.outputs.EncoderStatus.decode(reader, reader.uint32()));
|
|
15532
|
+
break;
|
|
15533
|
+
}
|
|
14450
15534
|
default:
|
|
14451
15535
|
reader.skipType(tag & 7);
|
|
14452
15536
|
break;
|
|
@@ -14522,6 +15606,15 @@ var sesame = $root.sesame = (() => {
|
|
|
14522
15606
|
return "recorders." + error;
|
|
14523
15607
|
}
|
|
14524
15608
|
}
|
|
15609
|
+
if (message.encoders != null && message.hasOwnProperty("encoders")) {
|
|
15610
|
+
if (!Array.isArray(message.encoders))
|
|
15611
|
+
return "encoders: array expected";
|
|
15612
|
+
for (let i = 0; i < message.encoders.length; ++i) {
|
|
15613
|
+
let error = $root.sesame.v1.outputs.EncoderStatus.verify(message.encoders[i]);
|
|
15614
|
+
if (error)
|
|
15615
|
+
return "encoders." + error;
|
|
15616
|
+
}
|
|
15617
|
+
}
|
|
14525
15618
|
return null;
|
|
14526
15619
|
};
|
|
14527
15620
|
Status.fromObject = function fromObject(object) {
|
|
@@ -14593,6 +15686,16 @@ var sesame = $root.sesame = (() => {
|
|
|
14593
15686
|
message.recorders[i] = $root.sesame.v1.recorder.RecorderStatus.fromObject(object.recorders[i]);
|
|
14594
15687
|
}
|
|
14595
15688
|
}
|
|
15689
|
+
if (object.encoders) {
|
|
15690
|
+
if (!Array.isArray(object.encoders))
|
|
15691
|
+
throw TypeError(".sesame.v1.status.Status.encoders: array expected");
|
|
15692
|
+
message.encoders = [];
|
|
15693
|
+
for (let i = 0; i < object.encoders.length; ++i) {
|
|
15694
|
+
if (typeof object.encoders[i] !== "object")
|
|
15695
|
+
throw TypeError(".sesame.v1.status.Status.encoders: object expected");
|
|
15696
|
+
message.encoders[i] = $root.sesame.v1.outputs.EncoderStatus.fromObject(object.encoders[i]);
|
|
15697
|
+
}
|
|
15698
|
+
}
|
|
14596
15699
|
return message;
|
|
14597
15700
|
};
|
|
14598
15701
|
Status.toObject = function toObject(message, options) {
|
|
@@ -14605,6 +15708,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14605
15708
|
object.audioMixes = [];
|
|
14606
15709
|
object.outputs = [];
|
|
14607
15710
|
object.recorders = [];
|
|
15711
|
+
object.encoders = [];
|
|
14608
15712
|
}
|
|
14609
15713
|
if (options.defaults) {
|
|
14610
15714
|
object.systemStatus = null;
|
|
@@ -14642,6 +15746,11 @@ var sesame = $root.sesame = (() => {
|
|
|
14642
15746
|
for (let j = 0; j < message.recorders.length; ++j)
|
|
14643
15747
|
object.recorders[j] = $root.sesame.v1.recorder.RecorderStatus.toObject(message.recorders[j], options);
|
|
14644
15748
|
}
|
|
15749
|
+
if (message.encoders && message.encoders.length) {
|
|
15750
|
+
object.encoders = [];
|
|
15751
|
+
for (let j = 0; j < message.encoders.length; ++j)
|
|
15752
|
+
object.encoders[j] = $root.sesame.v1.outputs.EncoderStatus.toObject(message.encoders[j], options);
|
|
15753
|
+
}
|
|
14645
15754
|
return object;
|
|
14646
15755
|
};
|
|
14647
15756
|
Status.prototype.toJSON = function toJSON() {
|
|
@@ -15949,6 +17058,12 @@ var sesame = $root.sesame = (() => {
|
|
|
15949
17058
|
values[valuesById[7] = "OUTPUT_TYPE_ENCODED_SUPER_SLOWMO_RECORDER"] = 7;
|
|
15950
17059
|
return values;
|
|
15951
17060
|
}();
|
|
17061
|
+
outputs.EncoderType = function() {
|
|
17062
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17063
|
+
values[valuesById[0] = "ENCODER_TYPE_UNSPECIFIED"] = 0;
|
|
17064
|
+
values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
|
|
17065
|
+
return values;
|
|
17066
|
+
}();
|
|
15952
17067
|
outputs.EncoderPreset = function() {
|
|
15953
17068
|
const valuesById = {}, values = Object.create(valuesById);
|
|
15954
17069
|
values[valuesById[0] = "ENCODER_PRESET_UNSPECIFIED"] = 0;
|
|
@@ -16017,49 +17132,550 @@ var sesame = $root.sesame = (() => {
|
|
|
16017
17132
|
).uint32(message.height);
|
|
16018
17133
|
if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
|
|
16019
17134
|
writer.uint32(
|
|
16020
|
-
/* id 7, wireType 5 =*/
|
|
16021
|
-
61
|
|
16022
|
-
).float(message.fps);
|
|
17135
|
+
/* id 7, wireType 5 =*/
|
|
17136
|
+
61
|
|
17137
|
+
).float(message.fps);
|
|
17138
|
+
return writer;
|
|
17139
|
+
};
|
|
17140
|
+
EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17141
|
+
return this.encode(message, writer).ldelim();
|
|
17142
|
+
};
|
|
17143
|
+
EncoderConfig.decode = function decode(reader, length, error) {
|
|
17144
|
+
if (!(reader instanceof $Reader))
|
|
17145
|
+
reader = $Reader.create(reader);
|
|
17146
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
17147
|
+
while (reader.pos < end) {
|
|
17148
|
+
let tag = reader.uint32();
|
|
17149
|
+
if (tag === error)
|
|
17150
|
+
break;
|
|
17151
|
+
switch (tag >>> 3) {
|
|
17152
|
+
case 1: {
|
|
17153
|
+
message.codec = reader.int32();
|
|
17154
|
+
break;
|
|
17155
|
+
}
|
|
17156
|
+
case 2: {
|
|
17157
|
+
message.preset = reader.int32();
|
|
17158
|
+
break;
|
|
17159
|
+
}
|
|
17160
|
+
case 3: {
|
|
17161
|
+
message.bitrateKbps = reader.uint32();
|
|
17162
|
+
break;
|
|
17163
|
+
}
|
|
17164
|
+
case 4: {
|
|
17165
|
+
message.keyframeInterval = reader.uint32();
|
|
17166
|
+
break;
|
|
17167
|
+
}
|
|
17168
|
+
case 5: {
|
|
17169
|
+
message.width = reader.uint32();
|
|
17170
|
+
break;
|
|
17171
|
+
}
|
|
17172
|
+
case 6: {
|
|
17173
|
+
message.height = reader.uint32();
|
|
17174
|
+
break;
|
|
17175
|
+
}
|
|
17176
|
+
case 7: {
|
|
17177
|
+
message.fps = reader.float();
|
|
17178
|
+
break;
|
|
17179
|
+
}
|
|
17180
|
+
default:
|
|
17181
|
+
reader.skipType(tag & 7);
|
|
17182
|
+
break;
|
|
17183
|
+
}
|
|
17184
|
+
}
|
|
17185
|
+
return message;
|
|
17186
|
+
};
|
|
17187
|
+
EncoderConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
17188
|
+
if (!(reader instanceof $Reader))
|
|
17189
|
+
reader = new $Reader(reader);
|
|
17190
|
+
return this.decode(reader, reader.uint32());
|
|
17191
|
+
};
|
|
17192
|
+
EncoderConfig.verify = function verify(message) {
|
|
17193
|
+
if (typeof message !== "object" || message === null)
|
|
17194
|
+
return "object expected";
|
|
17195
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
17196
|
+
switch (message.codec) {
|
|
17197
|
+
default:
|
|
17198
|
+
return "codec: enum value expected";
|
|
17199
|
+
case 0:
|
|
17200
|
+
case 1:
|
|
17201
|
+
case 2:
|
|
17202
|
+
case 3:
|
|
17203
|
+
case 4:
|
|
17204
|
+
case 5:
|
|
17205
|
+
case 6:
|
|
17206
|
+
case 7:
|
|
17207
|
+
case 64:
|
|
17208
|
+
case 65:
|
|
17209
|
+
case 66:
|
|
17210
|
+
case 67:
|
|
17211
|
+
break;
|
|
17212
|
+
}
|
|
17213
|
+
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
17214
|
+
switch (message.preset) {
|
|
17215
|
+
default:
|
|
17216
|
+
return "preset: enum value expected";
|
|
17217
|
+
case 0:
|
|
17218
|
+
case 1:
|
|
17219
|
+
case 2:
|
|
17220
|
+
case 3:
|
|
17221
|
+
break;
|
|
17222
|
+
}
|
|
17223
|
+
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
|
|
17224
|
+
if (!$util.isInteger(message.bitrateKbps))
|
|
17225
|
+
return "bitrateKbps: integer expected";
|
|
17226
|
+
}
|
|
17227
|
+
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
|
|
17228
|
+
if (!$util.isInteger(message.keyframeInterval))
|
|
17229
|
+
return "keyframeInterval: integer expected";
|
|
17230
|
+
}
|
|
17231
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
17232
|
+
if (!$util.isInteger(message.width))
|
|
17233
|
+
return "width: integer expected";
|
|
17234
|
+
}
|
|
17235
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
17236
|
+
if (!$util.isInteger(message.height))
|
|
17237
|
+
return "height: integer expected";
|
|
17238
|
+
}
|
|
17239
|
+
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
17240
|
+
if (typeof message.fps !== "number")
|
|
17241
|
+
return "fps: number expected";
|
|
17242
|
+
}
|
|
17243
|
+
return null;
|
|
17244
|
+
};
|
|
17245
|
+
EncoderConfig.fromObject = function fromObject(object) {
|
|
17246
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
|
|
17247
|
+
return object;
|
|
17248
|
+
let message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
17249
|
+
switch (object.codec) {
|
|
17250
|
+
default:
|
|
17251
|
+
if (typeof object.codec === "number") {
|
|
17252
|
+
message.codec = object.codec;
|
|
17253
|
+
break;
|
|
17254
|
+
}
|
|
17255
|
+
break;
|
|
17256
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
17257
|
+
case 0:
|
|
17258
|
+
message.codec = 0;
|
|
17259
|
+
break;
|
|
17260
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
17261
|
+
case 1:
|
|
17262
|
+
message.codec = 1;
|
|
17263
|
+
break;
|
|
17264
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
17265
|
+
case 2:
|
|
17266
|
+
message.codec = 2;
|
|
17267
|
+
break;
|
|
17268
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
17269
|
+
case 3:
|
|
17270
|
+
message.codec = 3;
|
|
17271
|
+
break;
|
|
17272
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
17273
|
+
case 4:
|
|
17274
|
+
message.codec = 4;
|
|
17275
|
+
break;
|
|
17276
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
17277
|
+
case 5:
|
|
17278
|
+
message.codec = 5;
|
|
17279
|
+
break;
|
|
17280
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
17281
|
+
case 6:
|
|
17282
|
+
message.codec = 6;
|
|
17283
|
+
break;
|
|
17284
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
17285
|
+
case 7:
|
|
17286
|
+
message.codec = 7;
|
|
17287
|
+
break;
|
|
17288
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
17289
|
+
case 64:
|
|
17290
|
+
message.codec = 64;
|
|
17291
|
+
break;
|
|
17292
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
17293
|
+
case 65:
|
|
17294
|
+
message.codec = 65;
|
|
17295
|
+
break;
|
|
17296
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
17297
|
+
case 66:
|
|
17298
|
+
message.codec = 66;
|
|
17299
|
+
break;
|
|
17300
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
17301
|
+
case 67:
|
|
17302
|
+
message.codec = 67;
|
|
17303
|
+
break;
|
|
17304
|
+
}
|
|
17305
|
+
switch (object.preset) {
|
|
17306
|
+
default:
|
|
17307
|
+
if (typeof object.preset === "number") {
|
|
17308
|
+
message.preset = object.preset;
|
|
17309
|
+
break;
|
|
17310
|
+
}
|
|
17311
|
+
break;
|
|
17312
|
+
case "ENCODER_PRESET_UNSPECIFIED":
|
|
17313
|
+
case 0:
|
|
17314
|
+
message.preset = 0;
|
|
17315
|
+
break;
|
|
17316
|
+
case "ENCODER_PRESET_LOW_LATENCY":
|
|
17317
|
+
case 1:
|
|
17318
|
+
message.preset = 1;
|
|
17319
|
+
break;
|
|
17320
|
+
case "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY":
|
|
17321
|
+
case 2:
|
|
17322
|
+
message.preset = 2;
|
|
17323
|
+
break;
|
|
17324
|
+
case "ENCODER_PRESET_HIGH_QUALITY":
|
|
17325
|
+
case 3:
|
|
17326
|
+
message.preset = 3;
|
|
17327
|
+
break;
|
|
17328
|
+
}
|
|
17329
|
+
if (object.bitrateKbps != null)
|
|
17330
|
+
message.bitrateKbps = object.bitrateKbps >>> 0;
|
|
17331
|
+
if (object.keyframeInterval != null)
|
|
17332
|
+
message.keyframeInterval = object.keyframeInterval >>> 0;
|
|
17333
|
+
if (object.width != null)
|
|
17334
|
+
message.width = object.width >>> 0;
|
|
17335
|
+
if (object.height != null)
|
|
17336
|
+
message.height = object.height >>> 0;
|
|
17337
|
+
if (object.fps != null)
|
|
17338
|
+
message.fps = Number(object.fps);
|
|
17339
|
+
return message;
|
|
17340
|
+
};
|
|
17341
|
+
EncoderConfig.toObject = function toObject(message, options) {
|
|
17342
|
+
if (!options)
|
|
17343
|
+
options = {};
|
|
17344
|
+
let object = {};
|
|
17345
|
+
if (options.defaults) {
|
|
17346
|
+
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
17347
|
+
object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
|
|
17348
|
+
object.bitrateKbps = 0;
|
|
17349
|
+
object.keyframeInterval = 0;
|
|
17350
|
+
object.width = 0;
|
|
17351
|
+
object.height = 0;
|
|
17352
|
+
object.fps = 0;
|
|
17353
|
+
}
|
|
17354
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
17355
|
+
object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
|
|
17356
|
+
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
17357
|
+
object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
|
|
17358
|
+
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
|
|
17359
|
+
object.bitrateKbps = message.bitrateKbps;
|
|
17360
|
+
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
|
|
17361
|
+
object.keyframeInterval = message.keyframeInterval;
|
|
17362
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
17363
|
+
object.width = message.width;
|
|
17364
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
17365
|
+
object.height = message.height;
|
|
17366
|
+
if (message.fps != null && message.hasOwnProperty("fps"))
|
|
17367
|
+
object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
|
|
17368
|
+
return object;
|
|
17369
|
+
};
|
|
17370
|
+
EncoderConfig.prototype.toJSON = function toJSON() {
|
|
17371
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17372
|
+
};
|
|
17373
|
+
EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17374
|
+
if (typeUrlPrefix === void 0) {
|
|
17375
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17376
|
+
}
|
|
17377
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
|
|
17378
|
+
};
|
|
17379
|
+
return EncoderConfig;
|
|
17380
|
+
}();
|
|
17381
|
+
outputs.EncoderAddRequest = function() {
|
|
17382
|
+
function EncoderAddRequest(properties) {
|
|
17383
|
+
if (properties) {
|
|
17384
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17385
|
+
if (properties[keys[i]] != null)
|
|
17386
|
+
this[keys[i]] = properties[keys[i]];
|
|
17387
|
+
}
|
|
17388
|
+
}
|
|
17389
|
+
EncoderAddRequest.prototype.id = "";
|
|
17390
|
+
EncoderAddRequest.prototype.compositionId = "";
|
|
17391
|
+
EncoderAddRequest.prototype.encoder = null;
|
|
17392
|
+
EncoderAddRequest.create = function create(properties) {
|
|
17393
|
+
return new EncoderAddRequest(properties);
|
|
17394
|
+
};
|
|
17395
|
+
EncoderAddRequest.encode = function encode(message, writer) {
|
|
17396
|
+
if (!writer)
|
|
17397
|
+
writer = $Writer.create();
|
|
17398
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
17399
|
+
writer.uint32(
|
|
17400
|
+
/* id 1, wireType 2 =*/
|
|
17401
|
+
10
|
|
17402
|
+
).string(message.id);
|
|
17403
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
17404
|
+
writer.uint32(
|
|
17405
|
+
/* id 2, wireType 2 =*/
|
|
17406
|
+
18
|
|
17407
|
+
).string(message.compositionId);
|
|
17408
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
17409
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
17410
|
+
/* id 3, wireType 2 =*/
|
|
17411
|
+
26
|
|
17412
|
+
).fork()).ldelim();
|
|
17413
|
+
return writer;
|
|
17414
|
+
};
|
|
17415
|
+
EncoderAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17416
|
+
return this.encode(message, writer).ldelim();
|
|
17417
|
+
};
|
|
17418
|
+
EncoderAddRequest.decode = function decode(reader, length, error) {
|
|
17419
|
+
if (!(reader instanceof $Reader))
|
|
17420
|
+
reader = $Reader.create(reader);
|
|
17421
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderAddRequest();
|
|
17422
|
+
while (reader.pos < end) {
|
|
17423
|
+
let tag = reader.uint32();
|
|
17424
|
+
if (tag === error)
|
|
17425
|
+
break;
|
|
17426
|
+
switch (tag >>> 3) {
|
|
17427
|
+
case 1: {
|
|
17428
|
+
message.id = reader.string();
|
|
17429
|
+
break;
|
|
17430
|
+
}
|
|
17431
|
+
case 2: {
|
|
17432
|
+
message.compositionId = reader.string();
|
|
17433
|
+
break;
|
|
17434
|
+
}
|
|
17435
|
+
case 3: {
|
|
17436
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
17437
|
+
break;
|
|
17438
|
+
}
|
|
17439
|
+
default:
|
|
17440
|
+
reader.skipType(tag & 7);
|
|
17441
|
+
break;
|
|
17442
|
+
}
|
|
17443
|
+
}
|
|
17444
|
+
return message;
|
|
17445
|
+
};
|
|
17446
|
+
EncoderAddRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
17447
|
+
if (!(reader instanceof $Reader))
|
|
17448
|
+
reader = new $Reader(reader);
|
|
17449
|
+
return this.decode(reader, reader.uint32());
|
|
17450
|
+
};
|
|
17451
|
+
EncoderAddRequest.verify = function verify(message) {
|
|
17452
|
+
if (typeof message !== "object" || message === null)
|
|
17453
|
+
return "object expected";
|
|
17454
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
17455
|
+
if (!$util.isString(message.id))
|
|
17456
|
+
return "id: string expected";
|
|
17457
|
+
}
|
|
17458
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
17459
|
+
if (!$util.isString(message.compositionId))
|
|
17460
|
+
return "compositionId: string expected";
|
|
17461
|
+
}
|
|
17462
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
17463
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
17464
|
+
if (error)
|
|
17465
|
+
return "encoder." + error;
|
|
17466
|
+
}
|
|
17467
|
+
return null;
|
|
17468
|
+
};
|
|
17469
|
+
EncoderAddRequest.fromObject = function fromObject(object) {
|
|
17470
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderAddRequest)
|
|
17471
|
+
return object;
|
|
17472
|
+
let message = new $root.sesame.v1.outputs.EncoderAddRequest();
|
|
17473
|
+
if (object.id != null)
|
|
17474
|
+
message.id = String(object.id);
|
|
17475
|
+
if (object.compositionId != null)
|
|
17476
|
+
message.compositionId = String(object.compositionId);
|
|
17477
|
+
if (object.encoder != null) {
|
|
17478
|
+
if (typeof object.encoder !== "object")
|
|
17479
|
+
throw TypeError(".sesame.v1.outputs.EncoderAddRequest.encoder: object expected");
|
|
17480
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
17481
|
+
}
|
|
17482
|
+
return message;
|
|
17483
|
+
};
|
|
17484
|
+
EncoderAddRequest.toObject = function toObject(message, options) {
|
|
17485
|
+
if (!options)
|
|
17486
|
+
options = {};
|
|
17487
|
+
let object = {};
|
|
17488
|
+
if (options.defaults) {
|
|
17489
|
+
object.id = "";
|
|
17490
|
+
object.compositionId = "";
|
|
17491
|
+
object.encoder = null;
|
|
17492
|
+
}
|
|
17493
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
17494
|
+
object.id = message.id;
|
|
17495
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
17496
|
+
object.compositionId = message.compositionId;
|
|
17497
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
17498
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
17499
|
+
return object;
|
|
17500
|
+
};
|
|
17501
|
+
EncoderAddRequest.prototype.toJSON = function toJSON() {
|
|
17502
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17503
|
+
};
|
|
17504
|
+
EncoderAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17505
|
+
if (typeUrlPrefix === void 0) {
|
|
17506
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17507
|
+
}
|
|
17508
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderAddRequest";
|
|
17509
|
+
};
|
|
17510
|
+
return EncoderAddRequest;
|
|
17511
|
+
}();
|
|
17512
|
+
outputs.EncoderUpdateRequest = function() {
|
|
17513
|
+
function EncoderUpdateRequest(properties) {
|
|
17514
|
+
if (properties) {
|
|
17515
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17516
|
+
if (properties[keys[i]] != null)
|
|
17517
|
+
this[keys[i]] = properties[keys[i]];
|
|
17518
|
+
}
|
|
17519
|
+
}
|
|
17520
|
+
EncoderUpdateRequest.prototype.id = "";
|
|
17521
|
+
EncoderUpdateRequest.prototype.compositionId = "";
|
|
17522
|
+
EncoderUpdateRequest.prototype.encoder = null;
|
|
17523
|
+
EncoderUpdateRequest.create = function create(properties) {
|
|
17524
|
+
return new EncoderUpdateRequest(properties);
|
|
17525
|
+
};
|
|
17526
|
+
EncoderUpdateRequest.encode = function encode(message, writer) {
|
|
17527
|
+
if (!writer)
|
|
17528
|
+
writer = $Writer.create();
|
|
17529
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
17530
|
+
writer.uint32(
|
|
17531
|
+
/* id 1, wireType 2 =*/
|
|
17532
|
+
10
|
|
17533
|
+
).string(message.id);
|
|
17534
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
17535
|
+
writer.uint32(
|
|
17536
|
+
/* id 2, wireType 2 =*/
|
|
17537
|
+
18
|
|
17538
|
+
).string(message.compositionId);
|
|
17539
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
17540
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
17541
|
+
/* id 3, wireType 2 =*/
|
|
17542
|
+
26
|
|
17543
|
+
).fork()).ldelim();
|
|
17544
|
+
return writer;
|
|
17545
|
+
};
|
|
17546
|
+
EncoderUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17547
|
+
return this.encode(message, writer).ldelim();
|
|
17548
|
+
};
|
|
17549
|
+
EncoderUpdateRequest.decode = function decode(reader, length, error) {
|
|
17550
|
+
if (!(reader instanceof $Reader))
|
|
17551
|
+
reader = $Reader.create(reader);
|
|
17552
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
|
|
17553
|
+
while (reader.pos < end) {
|
|
17554
|
+
let tag = reader.uint32();
|
|
17555
|
+
if (tag === error)
|
|
17556
|
+
break;
|
|
17557
|
+
switch (tag >>> 3) {
|
|
17558
|
+
case 1: {
|
|
17559
|
+
message.id = reader.string();
|
|
17560
|
+
break;
|
|
17561
|
+
}
|
|
17562
|
+
case 2: {
|
|
17563
|
+
message.compositionId = reader.string();
|
|
17564
|
+
break;
|
|
17565
|
+
}
|
|
17566
|
+
case 3: {
|
|
17567
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
17568
|
+
break;
|
|
17569
|
+
}
|
|
17570
|
+
default:
|
|
17571
|
+
reader.skipType(tag & 7);
|
|
17572
|
+
break;
|
|
17573
|
+
}
|
|
17574
|
+
}
|
|
17575
|
+
return message;
|
|
17576
|
+
};
|
|
17577
|
+
EncoderUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
17578
|
+
if (!(reader instanceof $Reader))
|
|
17579
|
+
reader = new $Reader(reader);
|
|
17580
|
+
return this.decode(reader, reader.uint32());
|
|
17581
|
+
};
|
|
17582
|
+
EncoderUpdateRequest.verify = function verify(message) {
|
|
17583
|
+
if (typeof message !== "object" || message === null)
|
|
17584
|
+
return "object expected";
|
|
17585
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
17586
|
+
if (!$util.isString(message.id))
|
|
17587
|
+
return "id: string expected";
|
|
17588
|
+
}
|
|
17589
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
17590
|
+
if (!$util.isString(message.compositionId))
|
|
17591
|
+
return "compositionId: string expected";
|
|
17592
|
+
}
|
|
17593
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
17594
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
17595
|
+
if (error)
|
|
17596
|
+
return "encoder." + error;
|
|
17597
|
+
}
|
|
17598
|
+
return null;
|
|
17599
|
+
};
|
|
17600
|
+
EncoderUpdateRequest.fromObject = function fromObject(object) {
|
|
17601
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderUpdateRequest)
|
|
17602
|
+
return object;
|
|
17603
|
+
let message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
|
|
17604
|
+
if (object.id != null)
|
|
17605
|
+
message.id = String(object.id);
|
|
17606
|
+
if (object.compositionId != null)
|
|
17607
|
+
message.compositionId = String(object.compositionId);
|
|
17608
|
+
if (object.encoder != null) {
|
|
17609
|
+
if (typeof object.encoder !== "object")
|
|
17610
|
+
throw TypeError(".sesame.v1.outputs.EncoderUpdateRequest.encoder: object expected");
|
|
17611
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
17612
|
+
}
|
|
17613
|
+
return message;
|
|
17614
|
+
};
|
|
17615
|
+
EncoderUpdateRequest.toObject = function toObject(message, options) {
|
|
17616
|
+
if (!options)
|
|
17617
|
+
options = {};
|
|
17618
|
+
let object = {};
|
|
17619
|
+
if (options.defaults) {
|
|
17620
|
+
object.id = "";
|
|
17621
|
+
object.compositionId = "";
|
|
17622
|
+
object.encoder = null;
|
|
17623
|
+
}
|
|
17624
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
17625
|
+
object.id = message.id;
|
|
17626
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
17627
|
+
object.compositionId = message.compositionId;
|
|
17628
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
17629
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
17630
|
+
return object;
|
|
17631
|
+
};
|
|
17632
|
+
EncoderUpdateRequest.prototype.toJSON = function toJSON() {
|
|
17633
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17634
|
+
};
|
|
17635
|
+
EncoderUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17636
|
+
if (typeUrlPrefix === void 0) {
|
|
17637
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17638
|
+
}
|
|
17639
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderUpdateRequest";
|
|
17640
|
+
};
|
|
17641
|
+
return EncoderUpdateRequest;
|
|
17642
|
+
}();
|
|
17643
|
+
outputs.EncoderRemoveRequest = function() {
|
|
17644
|
+
function EncoderRemoveRequest(properties) {
|
|
17645
|
+
if (properties) {
|
|
17646
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17647
|
+
if (properties[keys[i]] != null)
|
|
17648
|
+
this[keys[i]] = properties[keys[i]];
|
|
17649
|
+
}
|
|
17650
|
+
}
|
|
17651
|
+
EncoderRemoveRequest.prototype.id = "";
|
|
17652
|
+
EncoderRemoveRequest.create = function create(properties) {
|
|
17653
|
+
return new EncoderRemoveRequest(properties);
|
|
17654
|
+
};
|
|
17655
|
+
EncoderRemoveRequest.encode = function encode(message, writer) {
|
|
17656
|
+
if (!writer)
|
|
17657
|
+
writer = $Writer.create();
|
|
17658
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
17659
|
+
writer.uint32(
|
|
17660
|
+
/* id 1, wireType 2 =*/
|
|
17661
|
+
10
|
|
17662
|
+
).string(message.id);
|
|
16023
17663
|
return writer;
|
|
16024
17664
|
};
|
|
16025
|
-
|
|
17665
|
+
EncoderRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16026
17666
|
return this.encode(message, writer).ldelim();
|
|
16027
17667
|
};
|
|
16028
|
-
|
|
17668
|
+
EncoderRemoveRequest.decode = function decode(reader, length, error) {
|
|
16029
17669
|
if (!(reader instanceof $Reader))
|
|
16030
17670
|
reader = $Reader.create(reader);
|
|
16031
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.
|
|
17671
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
|
|
16032
17672
|
while (reader.pos < end) {
|
|
16033
17673
|
let tag = reader.uint32();
|
|
16034
17674
|
if (tag === error)
|
|
16035
17675
|
break;
|
|
16036
17676
|
switch (tag >>> 3) {
|
|
16037
17677
|
case 1: {
|
|
16038
|
-
message.
|
|
16039
|
-
break;
|
|
16040
|
-
}
|
|
16041
|
-
case 2: {
|
|
16042
|
-
message.preset = reader.int32();
|
|
16043
|
-
break;
|
|
16044
|
-
}
|
|
16045
|
-
case 3: {
|
|
16046
|
-
message.bitrateKbps = reader.uint32();
|
|
16047
|
-
break;
|
|
16048
|
-
}
|
|
16049
|
-
case 4: {
|
|
16050
|
-
message.keyframeInterval = reader.uint32();
|
|
16051
|
-
break;
|
|
16052
|
-
}
|
|
16053
|
-
case 5: {
|
|
16054
|
-
message.width = reader.uint32();
|
|
16055
|
-
break;
|
|
16056
|
-
}
|
|
16057
|
-
case 6: {
|
|
16058
|
-
message.height = reader.uint32();
|
|
16059
|
-
break;
|
|
16060
|
-
}
|
|
16061
|
-
case 7: {
|
|
16062
|
-
message.fps = reader.float();
|
|
17678
|
+
message.id = reader.string();
|
|
16063
17679
|
break;
|
|
16064
17680
|
}
|
|
16065
17681
|
default:
|
|
@@ -16069,199 +17685,48 @@ var sesame = $root.sesame = (() => {
|
|
|
16069
17685
|
}
|
|
16070
17686
|
return message;
|
|
16071
17687
|
};
|
|
16072
|
-
|
|
17688
|
+
EncoderRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
16073
17689
|
if (!(reader instanceof $Reader))
|
|
16074
17690
|
reader = new $Reader(reader);
|
|
16075
17691
|
return this.decode(reader, reader.uint32());
|
|
16076
17692
|
};
|
|
16077
|
-
|
|
17693
|
+
EncoderRemoveRequest.verify = function verify(message) {
|
|
16078
17694
|
if (typeof message !== "object" || message === null)
|
|
16079
17695
|
return "object expected";
|
|
16080
|
-
if (message.
|
|
16081
|
-
|
|
16082
|
-
|
|
16083
|
-
return "codec: enum value expected";
|
|
16084
|
-
case 0:
|
|
16085
|
-
case 1:
|
|
16086
|
-
case 2:
|
|
16087
|
-
case 3:
|
|
16088
|
-
case 4:
|
|
16089
|
-
case 5:
|
|
16090
|
-
case 6:
|
|
16091
|
-
case 7:
|
|
16092
|
-
case 64:
|
|
16093
|
-
case 65:
|
|
16094
|
-
case 66:
|
|
16095
|
-
case 67:
|
|
16096
|
-
break;
|
|
16097
|
-
}
|
|
16098
|
-
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
16099
|
-
switch (message.preset) {
|
|
16100
|
-
default:
|
|
16101
|
-
return "preset: enum value expected";
|
|
16102
|
-
case 0:
|
|
16103
|
-
case 1:
|
|
16104
|
-
case 2:
|
|
16105
|
-
case 3:
|
|
16106
|
-
break;
|
|
16107
|
-
}
|
|
16108
|
-
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
|
|
16109
|
-
if (!$util.isInteger(message.bitrateKbps))
|
|
16110
|
-
return "bitrateKbps: integer expected";
|
|
16111
|
-
}
|
|
16112
|
-
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
|
|
16113
|
-
if (!$util.isInteger(message.keyframeInterval))
|
|
16114
|
-
return "keyframeInterval: integer expected";
|
|
16115
|
-
}
|
|
16116
|
-
if (message.width != null && message.hasOwnProperty("width")) {
|
|
16117
|
-
if (!$util.isInteger(message.width))
|
|
16118
|
-
return "width: integer expected";
|
|
16119
|
-
}
|
|
16120
|
-
if (message.height != null && message.hasOwnProperty("height")) {
|
|
16121
|
-
if (!$util.isInteger(message.height))
|
|
16122
|
-
return "height: integer expected";
|
|
16123
|
-
}
|
|
16124
|
-
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
16125
|
-
if (typeof message.fps !== "number")
|
|
16126
|
-
return "fps: number expected";
|
|
17696
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
17697
|
+
if (!$util.isString(message.id))
|
|
17698
|
+
return "id: string expected";
|
|
16127
17699
|
}
|
|
16128
17700
|
return null;
|
|
16129
17701
|
};
|
|
16130
|
-
|
|
16131
|
-
if (object instanceof $root.sesame.v1.outputs.
|
|
17702
|
+
EncoderRemoveRequest.fromObject = function fromObject(object) {
|
|
17703
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderRemoveRequest)
|
|
16132
17704
|
return object;
|
|
16133
|
-
let message = new $root.sesame.v1.outputs.
|
|
16134
|
-
|
|
16135
|
-
|
|
16136
|
-
if (typeof object.codec === "number") {
|
|
16137
|
-
message.codec = object.codec;
|
|
16138
|
-
break;
|
|
16139
|
-
}
|
|
16140
|
-
break;
|
|
16141
|
-
case "CODEC_TYPE_UNSPECIFIED":
|
|
16142
|
-
case 0:
|
|
16143
|
-
message.codec = 0;
|
|
16144
|
-
break;
|
|
16145
|
-
case "CODEC_TYPE_VIDEO_VP8":
|
|
16146
|
-
case 1:
|
|
16147
|
-
message.codec = 1;
|
|
16148
|
-
break;
|
|
16149
|
-
case "CODEC_TYPE_VIDEO_VP9":
|
|
16150
|
-
case 2:
|
|
16151
|
-
message.codec = 2;
|
|
16152
|
-
break;
|
|
16153
|
-
case "CODEC_TYPE_VIDEO_AVC":
|
|
16154
|
-
case 3:
|
|
16155
|
-
message.codec = 3;
|
|
16156
|
-
break;
|
|
16157
|
-
case "CODEC_TYPE_VIDEO_HEVC":
|
|
16158
|
-
case 4:
|
|
16159
|
-
message.codec = 4;
|
|
16160
|
-
break;
|
|
16161
|
-
case "CODEC_TYPE_VIDEO_AV1":
|
|
16162
|
-
case 5:
|
|
16163
|
-
message.codec = 5;
|
|
16164
|
-
break;
|
|
16165
|
-
case "CODEC_TYPE_VIDEO_PRORES":
|
|
16166
|
-
case 6:
|
|
16167
|
-
message.codec = 6;
|
|
16168
|
-
break;
|
|
16169
|
-
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
16170
|
-
case 7:
|
|
16171
|
-
message.codec = 7;
|
|
16172
|
-
break;
|
|
16173
|
-
case "CODEC_TYPE_AUDIO_OPUS":
|
|
16174
|
-
case 64:
|
|
16175
|
-
message.codec = 64;
|
|
16176
|
-
break;
|
|
16177
|
-
case "CODEC_TYPE_AUDIO_AAC":
|
|
16178
|
-
case 65:
|
|
16179
|
-
message.codec = 65;
|
|
16180
|
-
break;
|
|
16181
|
-
case "CODEC_TYPE_AUDIO_PCM":
|
|
16182
|
-
case 66:
|
|
16183
|
-
message.codec = 66;
|
|
16184
|
-
break;
|
|
16185
|
-
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
16186
|
-
case 67:
|
|
16187
|
-
message.codec = 67;
|
|
16188
|
-
break;
|
|
16189
|
-
}
|
|
16190
|
-
switch (object.preset) {
|
|
16191
|
-
default:
|
|
16192
|
-
if (typeof object.preset === "number") {
|
|
16193
|
-
message.preset = object.preset;
|
|
16194
|
-
break;
|
|
16195
|
-
}
|
|
16196
|
-
break;
|
|
16197
|
-
case "ENCODER_PRESET_UNSPECIFIED":
|
|
16198
|
-
case 0:
|
|
16199
|
-
message.preset = 0;
|
|
16200
|
-
break;
|
|
16201
|
-
case "ENCODER_PRESET_LOW_LATENCY":
|
|
16202
|
-
case 1:
|
|
16203
|
-
message.preset = 1;
|
|
16204
|
-
break;
|
|
16205
|
-
case "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY":
|
|
16206
|
-
case 2:
|
|
16207
|
-
message.preset = 2;
|
|
16208
|
-
break;
|
|
16209
|
-
case "ENCODER_PRESET_HIGH_QUALITY":
|
|
16210
|
-
case 3:
|
|
16211
|
-
message.preset = 3;
|
|
16212
|
-
break;
|
|
16213
|
-
}
|
|
16214
|
-
if (object.bitrateKbps != null)
|
|
16215
|
-
message.bitrateKbps = object.bitrateKbps >>> 0;
|
|
16216
|
-
if (object.keyframeInterval != null)
|
|
16217
|
-
message.keyframeInterval = object.keyframeInterval >>> 0;
|
|
16218
|
-
if (object.width != null)
|
|
16219
|
-
message.width = object.width >>> 0;
|
|
16220
|
-
if (object.height != null)
|
|
16221
|
-
message.height = object.height >>> 0;
|
|
16222
|
-
if (object.fps != null)
|
|
16223
|
-
message.fps = Number(object.fps);
|
|
17705
|
+
let message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
|
|
17706
|
+
if (object.id != null)
|
|
17707
|
+
message.id = String(object.id);
|
|
16224
17708
|
return message;
|
|
16225
17709
|
};
|
|
16226
|
-
|
|
17710
|
+
EncoderRemoveRequest.toObject = function toObject(message, options) {
|
|
16227
17711
|
if (!options)
|
|
16228
17712
|
options = {};
|
|
16229
17713
|
let object = {};
|
|
16230
|
-
if (options.defaults)
|
|
16231
|
-
object.
|
|
16232
|
-
|
|
16233
|
-
object.
|
|
16234
|
-
object.keyframeInterval = 0;
|
|
16235
|
-
object.width = 0;
|
|
16236
|
-
object.height = 0;
|
|
16237
|
-
object.fps = 0;
|
|
16238
|
-
}
|
|
16239
|
-
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
16240
|
-
object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
|
|
16241
|
-
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
16242
|
-
object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
|
|
16243
|
-
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
|
|
16244
|
-
object.bitrateKbps = message.bitrateKbps;
|
|
16245
|
-
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
|
|
16246
|
-
object.keyframeInterval = message.keyframeInterval;
|
|
16247
|
-
if (message.width != null && message.hasOwnProperty("width"))
|
|
16248
|
-
object.width = message.width;
|
|
16249
|
-
if (message.height != null && message.hasOwnProperty("height"))
|
|
16250
|
-
object.height = message.height;
|
|
16251
|
-
if (message.fps != null && message.hasOwnProperty("fps"))
|
|
16252
|
-
object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
|
|
17714
|
+
if (options.defaults)
|
|
17715
|
+
object.id = "";
|
|
17716
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
17717
|
+
object.id = message.id;
|
|
16253
17718
|
return object;
|
|
16254
17719
|
};
|
|
16255
|
-
|
|
17720
|
+
EncoderRemoveRequest.prototype.toJSON = function toJSON() {
|
|
16256
17721
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16257
17722
|
};
|
|
16258
|
-
|
|
17723
|
+
EncoderRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
16259
17724
|
if (typeUrlPrefix === void 0) {
|
|
16260
17725
|
typeUrlPrefix = "type.googleapis.com";
|
|
16261
17726
|
}
|
|
16262
|
-
return typeUrlPrefix + "/sesame.v1.outputs.
|
|
17727
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderRemoveRequest";
|
|
16263
17728
|
};
|
|
16264
|
-
return
|
|
17729
|
+
return EncoderRemoveRequest;
|
|
16265
17730
|
}();
|
|
16266
17731
|
outputs.DecklinkOutputConfig = function() {
|
|
16267
17732
|
function DecklinkOutputConfig(properties) {
|
|
@@ -16433,7 +17898,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16433
17898
|
}
|
|
16434
17899
|
}
|
|
16435
17900
|
EncodedWebSocketOutputConfig.prototype.channel = "";
|
|
16436
|
-
EncodedWebSocketOutputConfig.prototype.
|
|
17901
|
+
EncodedWebSocketOutputConfig.prototype.encoderId = "";
|
|
16437
17902
|
EncodedWebSocketOutputConfig.prototype.metadataTracks = $util.emptyArray;
|
|
16438
17903
|
EncodedWebSocketOutputConfig.create = function create(properties) {
|
|
16439
17904
|
return new EncodedWebSocketOutputConfig(properties);
|
|
@@ -16446,11 +17911,11 @@ var sesame = $root.sesame = (() => {
|
|
|
16446
17911
|
/* id 1, wireType 2 =*/
|
|
16447
17912
|
10
|
|
16448
17913
|
).string(message.channel);
|
|
16449
|
-
if (message.
|
|
16450
|
-
|
|
17914
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
17915
|
+
writer.uint32(
|
|
16451
17916
|
/* id 2, wireType 2 =*/
|
|
16452
17917
|
18
|
|
16453
|
-
).
|
|
17918
|
+
).string(message.encoderId);
|
|
16454
17919
|
if (message.metadataTracks != null && message.metadataTracks.length)
|
|
16455
17920
|
for (let i = 0; i < message.metadataTracks.length; ++i)
|
|
16456
17921
|
writer.uint32(
|
|
@@ -16476,7 +17941,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16476
17941
|
break;
|
|
16477
17942
|
}
|
|
16478
17943
|
case 2: {
|
|
16479
|
-
message.
|
|
17944
|
+
message.encoderId = reader.string();
|
|
16480
17945
|
break;
|
|
16481
17946
|
}
|
|
16482
17947
|
case 3: {
|
|
@@ -16504,10 +17969,9 @@ var sesame = $root.sesame = (() => {
|
|
|
16504
17969
|
if (!$util.isString(message.channel))
|
|
16505
17970
|
return "channel: string expected";
|
|
16506
17971
|
}
|
|
16507
|
-
if (message.
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
return "encoder." + error;
|
|
17972
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
17973
|
+
if (!$util.isString(message.encoderId))
|
|
17974
|
+
return "encoderId: string expected";
|
|
16511
17975
|
}
|
|
16512
17976
|
if (message.metadataTracks != null && message.hasOwnProperty("metadataTracks")) {
|
|
16513
17977
|
if (!Array.isArray(message.metadataTracks))
|
|
@@ -16524,11 +17988,8 @@ var sesame = $root.sesame = (() => {
|
|
|
16524
17988
|
let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
|
|
16525
17989
|
if (object.channel != null)
|
|
16526
17990
|
message.channel = String(object.channel);
|
|
16527
|
-
if (object.
|
|
16528
|
-
|
|
16529
|
-
throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoder: object expected");
|
|
16530
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
16531
|
-
}
|
|
17991
|
+
if (object.encoderId != null)
|
|
17992
|
+
message.encoderId = String(object.encoderId);
|
|
16532
17993
|
if (object.metadataTracks) {
|
|
16533
17994
|
if (!Array.isArray(object.metadataTracks))
|
|
16534
17995
|
throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.metadataTracks: array expected");
|
|
@@ -16546,12 +18007,12 @@ var sesame = $root.sesame = (() => {
|
|
|
16546
18007
|
object.metadataTracks = [];
|
|
16547
18008
|
if (options.defaults) {
|
|
16548
18009
|
object.channel = "";
|
|
16549
|
-
object.
|
|
18010
|
+
object.encoderId = "";
|
|
16550
18011
|
}
|
|
16551
18012
|
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
16552
18013
|
object.channel = message.channel;
|
|
16553
|
-
if (message.
|
|
16554
|
-
object.
|
|
18014
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18015
|
+
object.encoderId = message.encoderId;
|
|
16555
18016
|
if (message.metadataTracks && message.metadataTracks.length) {
|
|
16556
18017
|
object.metadataTracks = [];
|
|
16557
18018
|
for (let j = 0; j < message.metadataTracks.length; ++j)
|
|
@@ -16578,7 +18039,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16578
18039
|
this[keys[i]] = properties[keys[i]];
|
|
16579
18040
|
}
|
|
16580
18041
|
}
|
|
16581
|
-
EncodedRecorderOutputConfig.prototype.
|
|
18042
|
+
EncodedRecorderOutputConfig.prototype.encoderId = "";
|
|
16582
18043
|
EncodedRecorderOutputConfig.prototype.filename = "";
|
|
16583
18044
|
EncodedRecorderOutputConfig.prototype.sizeGb = 0;
|
|
16584
18045
|
EncodedRecorderOutputConfig.prototype.groupId = "";
|
|
@@ -16589,11 +18050,11 @@ var sesame = $root.sesame = (() => {
|
|
|
16589
18050
|
EncodedRecorderOutputConfig.encode = function encode(message, writer) {
|
|
16590
18051
|
if (!writer)
|
|
16591
18052
|
writer = $Writer.create();
|
|
16592
|
-
if (message.
|
|
16593
|
-
|
|
18053
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
18054
|
+
writer.uint32(
|
|
16594
18055
|
/* id 1, wireType 2 =*/
|
|
16595
18056
|
10
|
|
16596
|
-
).
|
|
18057
|
+
).string(message.encoderId);
|
|
16597
18058
|
if (message.filename != null && Object.hasOwnProperty.call(message, "filename"))
|
|
16598
18059
|
writer.uint32(
|
|
16599
18060
|
/* id 2, wireType 2 =*/
|
|
@@ -16629,7 +18090,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16629
18090
|
break;
|
|
16630
18091
|
switch (tag >>> 3) {
|
|
16631
18092
|
case 1: {
|
|
16632
|
-
message.
|
|
18093
|
+
message.encoderId = reader.string();
|
|
16633
18094
|
break;
|
|
16634
18095
|
}
|
|
16635
18096
|
case 2: {
|
|
@@ -16663,10 +18124,9 @@ var sesame = $root.sesame = (() => {
|
|
|
16663
18124
|
EncodedRecorderOutputConfig.verify = function verify(message) {
|
|
16664
18125
|
if (typeof message !== "object" || message === null)
|
|
16665
18126
|
return "object expected";
|
|
16666
|
-
if (message.
|
|
16667
|
-
|
|
16668
|
-
|
|
16669
|
-
return "encoder." + error;
|
|
18127
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
18128
|
+
if (!$util.isString(message.encoderId))
|
|
18129
|
+
return "encoderId: string expected";
|
|
16670
18130
|
}
|
|
16671
18131
|
if (message.filename != null && message.hasOwnProperty("filename")) {
|
|
16672
18132
|
if (!$util.isString(message.filename))
|
|
@@ -16695,11 +18155,8 @@ var sesame = $root.sesame = (() => {
|
|
|
16695
18155
|
if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
|
|
16696
18156
|
return object;
|
|
16697
18157
|
let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
|
|
16698
|
-
if (object.
|
|
16699
|
-
|
|
16700
|
-
throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
|
|
16701
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
16702
|
-
}
|
|
18158
|
+
if (object.encoderId != null)
|
|
18159
|
+
message.encoderId = String(object.encoderId);
|
|
16703
18160
|
if (object.filename != null)
|
|
16704
18161
|
message.filename = String(object.filename);
|
|
16705
18162
|
if (object.sizeGb != null)
|
|
@@ -16733,14 +18190,14 @@ var sesame = $root.sesame = (() => {
|
|
|
16733
18190
|
options = {};
|
|
16734
18191
|
let object = {};
|
|
16735
18192
|
if (options.defaults) {
|
|
16736
|
-
object.
|
|
18193
|
+
object.encoderId = "";
|
|
16737
18194
|
object.filename = "";
|
|
16738
18195
|
object.sizeGb = 0;
|
|
16739
18196
|
object.groupId = "";
|
|
16740
18197
|
object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
|
|
16741
18198
|
}
|
|
16742
|
-
if (message.
|
|
16743
|
-
object.
|
|
18199
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18200
|
+
object.encoderId = message.encoderId;
|
|
16744
18201
|
if (message.filename != null && message.hasOwnProperty("filename"))
|
|
16745
18202
|
object.filename = message.filename;
|
|
16746
18203
|
if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
|
|
@@ -17033,7 +18490,7 @@ var sesame = $root.sesame = (() => {
|
|
|
17033
18490
|
}
|
|
17034
18491
|
}
|
|
17035
18492
|
EncodedSrtOutputConfig.prototype.url = "";
|
|
17036
|
-
EncodedSrtOutputConfig.prototype.
|
|
18493
|
+
EncodedSrtOutputConfig.prototype.encoderId = "";
|
|
17037
18494
|
EncodedSrtOutputConfig.create = function create(properties) {
|
|
17038
18495
|
return new EncodedSrtOutputConfig(properties);
|
|
17039
18496
|
};
|
|
@@ -17045,11 +18502,11 @@ var sesame = $root.sesame = (() => {
|
|
|
17045
18502
|
/* id 1, wireType 2 =*/
|
|
17046
18503
|
10
|
|
17047
18504
|
).string(message.url);
|
|
17048
|
-
if (message.
|
|
17049
|
-
|
|
18505
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
18506
|
+
writer.uint32(
|
|
17050
18507
|
/* id 2, wireType 2 =*/
|
|
17051
18508
|
18
|
|
17052
|
-
).
|
|
18509
|
+
).string(message.encoderId);
|
|
17053
18510
|
return writer;
|
|
17054
18511
|
};
|
|
17055
18512
|
EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -17069,7 +18526,7 @@ var sesame = $root.sesame = (() => {
|
|
|
17069
18526
|
break;
|
|
17070
18527
|
}
|
|
17071
18528
|
case 2: {
|
|
17072
|
-
message.
|
|
18529
|
+
message.encoderId = reader.string();
|
|
17073
18530
|
break;
|
|
17074
18531
|
}
|
|
17075
18532
|
default:
|
|
@@ -17091,10 +18548,9 @@ var sesame = $root.sesame = (() => {
|
|
|
17091
18548
|
if (!$util.isString(message.url))
|
|
17092
18549
|
return "url: string expected";
|
|
17093
18550
|
}
|
|
17094
|
-
if (message.
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
return "encoder." + error;
|
|
18551
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
18552
|
+
if (!$util.isString(message.encoderId))
|
|
18553
|
+
return "encoderId: string expected";
|
|
17098
18554
|
}
|
|
17099
18555
|
return null;
|
|
17100
18556
|
};
|
|
@@ -17104,11 +18560,8 @@ var sesame = $root.sesame = (() => {
|
|
|
17104
18560
|
let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
|
|
17105
18561
|
if (object.url != null)
|
|
17106
18562
|
message.url = String(object.url);
|
|
17107
|
-
if (object.
|
|
17108
|
-
|
|
17109
|
-
throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
|
|
17110
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
17111
|
-
}
|
|
18563
|
+
if (object.encoderId != null)
|
|
18564
|
+
message.encoderId = String(object.encoderId);
|
|
17112
18565
|
return message;
|
|
17113
18566
|
};
|
|
17114
18567
|
EncodedSrtOutputConfig.toObject = function toObject(message, options) {
|
|
@@ -17117,12 +18570,12 @@ var sesame = $root.sesame = (() => {
|
|
|
17117
18570
|
let object = {};
|
|
17118
18571
|
if (options.defaults) {
|
|
17119
18572
|
object.url = "";
|
|
17120
|
-
object.
|
|
18573
|
+
object.encoderId = "";
|
|
17121
18574
|
}
|
|
17122
18575
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
17123
18576
|
object.url = message.url;
|
|
17124
|
-
if (message.
|
|
17125
|
-
object.
|
|
18577
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18578
|
+
object.encoderId = message.encoderId;
|
|
17126
18579
|
return object;
|
|
17127
18580
|
};
|
|
17128
18581
|
EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -17145,7 +18598,7 @@ var sesame = $root.sesame = (() => {
|
|
|
17145
18598
|
this[keys[i]] = properties[keys[i]];
|
|
17146
18599
|
}
|
|
17147
18600
|
}
|
|
17148
|
-
EncodedMoqOutputConfig.prototype.
|
|
18601
|
+
EncodedMoqOutputConfig.prototype.encoderId = "";
|
|
17149
18602
|
EncodedMoqOutputConfig.prototype.url = "";
|
|
17150
18603
|
EncodedMoqOutputConfig.prototype.broadcast = "";
|
|
17151
18604
|
EncodedMoqOutputConfig.prototype.key = "";
|
|
@@ -17156,11 +18609,11 @@ var sesame = $root.sesame = (() => {
|
|
|
17156
18609
|
EncodedMoqOutputConfig.encode = function encode(message, writer) {
|
|
17157
18610
|
if (!writer)
|
|
17158
18611
|
writer = $Writer.create();
|
|
17159
|
-
if (message.
|
|
17160
|
-
|
|
18612
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
18613
|
+
writer.uint32(
|
|
17161
18614
|
/* id 1, wireType 2 =*/
|
|
17162
18615
|
10
|
|
17163
|
-
).
|
|
18616
|
+
).string(message.encoderId);
|
|
17164
18617
|
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
17165
18618
|
writer.uint32(
|
|
17166
18619
|
/* id 2, wireType 2 =*/
|
|
@@ -17197,7 +18650,7 @@ var sesame = $root.sesame = (() => {
|
|
|
17197
18650
|
break;
|
|
17198
18651
|
switch (tag >>> 3) {
|
|
17199
18652
|
case 1: {
|
|
17200
|
-
message.
|
|
18653
|
+
message.encoderId = reader.string();
|
|
17201
18654
|
break;
|
|
17202
18655
|
}
|
|
17203
18656
|
case 2: {
|
|
@@ -17233,10 +18686,9 @@ var sesame = $root.sesame = (() => {
|
|
|
17233
18686
|
EncodedMoqOutputConfig.verify = function verify(message) {
|
|
17234
18687
|
if (typeof message !== "object" || message === null)
|
|
17235
18688
|
return "object expected";
|
|
17236
|
-
if (message.
|
|
17237
|
-
|
|
17238
|
-
|
|
17239
|
-
return "encoder." + error;
|
|
18689
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
18690
|
+
if (!$util.isString(message.encoderId))
|
|
18691
|
+
return "encoderId: string expected";
|
|
17240
18692
|
}
|
|
17241
18693
|
if (message.url != null && message.hasOwnProperty("url")) {
|
|
17242
18694
|
if (!$util.isString(message.url))
|
|
@@ -17263,11 +18715,8 @@ var sesame = $root.sesame = (() => {
|
|
|
17263
18715
|
if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
|
|
17264
18716
|
return object;
|
|
17265
18717
|
let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
|
|
17266
|
-
if (object.
|
|
17267
|
-
|
|
17268
|
-
throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
|
|
17269
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
17270
|
-
}
|
|
18718
|
+
if (object.encoderId != null)
|
|
18719
|
+
message.encoderId = String(object.encoderId);
|
|
17271
18720
|
if (object.url != null)
|
|
17272
18721
|
message.url = String(object.url);
|
|
17273
18722
|
if (object.broadcast != null)
|
|
@@ -17290,13 +18739,13 @@ var sesame = $root.sesame = (() => {
|
|
|
17290
18739
|
if (options.arrays || options.defaults)
|
|
17291
18740
|
object.metadataTracks = [];
|
|
17292
18741
|
if (options.defaults) {
|
|
17293
|
-
object.
|
|
18742
|
+
object.encoderId = "";
|
|
17294
18743
|
object.url = "";
|
|
17295
18744
|
object.broadcast = "";
|
|
17296
18745
|
object.key = "";
|
|
17297
18746
|
}
|
|
17298
|
-
if (message.
|
|
17299
|
-
object.
|
|
18747
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18748
|
+
object.encoderId = message.encoderId;
|
|
17300
18749
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
17301
18750
|
object.url = message.url;
|
|
17302
18751
|
if (message.broadcast != null && message.hasOwnProperty("broadcast"))
|
|
@@ -18352,6 +19801,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18352
19801
|
OutputStatus.prototype.url = "";
|
|
18353
19802
|
OutputStatus.prototype.bufferSize = 0;
|
|
18354
19803
|
OutputStatus.prototype.srtStats = null;
|
|
19804
|
+
OutputStatus.prototype.encoderId = "";
|
|
18355
19805
|
let $oneOfFields;
|
|
18356
19806
|
Object.defineProperty(OutputStatus.prototype, "_msg", {
|
|
18357
19807
|
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
@@ -18402,6 +19852,11 @@ var sesame = $root.sesame = (() => {
|
|
|
18402
19852
|
/* id 7, wireType 2 =*/
|
|
18403
19853
|
58
|
|
18404
19854
|
).fork()).ldelim();
|
|
19855
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
19856
|
+
writer.uint32(
|
|
19857
|
+
/* id 8, wireType 2 =*/
|
|
19858
|
+
66
|
|
19859
|
+
).string(message.encoderId);
|
|
18405
19860
|
return writer;
|
|
18406
19861
|
};
|
|
18407
19862
|
OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -18444,6 +19899,10 @@ var sesame = $root.sesame = (() => {
|
|
|
18444
19899
|
message.srtStats = $root.sesame.v1.status.SRTSendStatistics.decode(reader, reader.uint32());
|
|
18445
19900
|
break;
|
|
18446
19901
|
}
|
|
19902
|
+
case 8: {
|
|
19903
|
+
message.encoderId = reader.string();
|
|
19904
|
+
break;
|
|
19905
|
+
}
|
|
18447
19906
|
default:
|
|
18448
19907
|
reader.skipType(tag & 7);
|
|
18449
19908
|
break;
|
|
@@ -18512,6 +19971,10 @@ var sesame = $root.sesame = (() => {
|
|
|
18512
19971
|
return "srtStats." + error;
|
|
18513
19972
|
}
|
|
18514
19973
|
}
|
|
19974
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
19975
|
+
if (!$util.isString(message.encoderId))
|
|
19976
|
+
return "encoderId: string expected";
|
|
19977
|
+
}
|
|
18515
19978
|
return null;
|
|
18516
19979
|
};
|
|
18517
19980
|
OutputStatus.fromObject = function fromObject(object) {
|
|
@@ -18607,6 +20070,8 @@ var sesame = $root.sesame = (() => {
|
|
|
18607
20070
|
throw TypeError(".sesame.v1.outputs.OutputStatus.srtStats: object expected");
|
|
18608
20071
|
message.srtStats = $root.sesame.v1.status.SRTSendStatistics.fromObject(object.srtStats);
|
|
18609
20072
|
}
|
|
20073
|
+
if (object.encoderId != null)
|
|
20074
|
+
message.encoderId = String(object.encoderId);
|
|
18610
20075
|
return message;
|
|
18611
20076
|
};
|
|
18612
20077
|
OutputStatus.toObject = function toObject(message, options) {
|
|
@@ -18619,6 +20084,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18619
20084
|
object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
|
|
18620
20085
|
object.url = "";
|
|
18621
20086
|
object.bufferSize = 0;
|
|
20087
|
+
object.encoderId = "";
|
|
18622
20088
|
}
|
|
18623
20089
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
18624
20090
|
object.id = message.id;
|
|
@@ -18640,6 +20106,8 @@ var sesame = $root.sesame = (() => {
|
|
|
18640
20106
|
if (options.oneofs)
|
|
18641
20107
|
object._srtStats = "srtStats";
|
|
18642
20108
|
}
|
|
20109
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
20110
|
+
object.encoderId = message.encoderId;
|
|
18643
20111
|
return object;
|
|
18644
20112
|
};
|
|
18645
20113
|
OutputStatus.prototype.toJSON = function toJSON() {
|
|
@@ -18653,6 +20121,241 @@ var sesame = $root.sesame = (() => {
|
|
|
18653
20121
|
};
|
|
18654
20122
|
return OutputStatus;
|
|
18655
20123
|
}();
|
|
20124
|
+
outputs.EncoderStatus = function() {
|
|
20125
|
+
function EncoderStatus(properties) {
|
|
20126
|
+
if (properties) {
|
|
20127
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20128
|
+
if (properties[keys[i]] != null)
|
|
20129
|
+
this[keys[i]] = properties[keys[i]];
|
|
20130
|
+
}
|
|
20131
|
+
}
|
|
20132
|
+
EncoderStatus.prototype.id = "";
|
|
20133
|
+
EncoderStatus.prototype.type = 0;
|
|
20134
|
+
EncoderStatus.prototype.state = 0;
|
|
20135
|
+
EncoderStatus.prototype.msg = null;
|
|
20136
|
+
EncoderStatus.prototype.compositionId = "";
|
|
20137
|
+
let $oneOfFields;
|
|
20138
|
+
Object.defineProperty(EncoderStatus.prototype, "_msg", {
|
|
20139
|
+
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
20140
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20141
|
+
});
|
|
20142
|
+
EncoderStatus.create = function create(properties) {
|
|
20143
|
+
return new EncoderStatus(properties);
|
|
20144
|
+
};
|
|
20145
|
+
EncoderStatus.encode = function encode(message, writer) {
|
|
20146
|
+
if (!writer)
|
|
20147
|
+
writer = $Writer.create();
|
|
20148
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
20149
|
+
writer.uint32(
|
|
20150
|
+
/* id 1, wireType 2 =*/
|
|
20151
|
+
10
|
|
20152
|
+
).string(message.id);
|
|
20153
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
20154
|
+
writer.uint32(
|
|
20155
|
+
/* id 2, wireType 0 =*/
|
|
20156
|
+
16
|
|
20157
|
+
).int32(message.type);
|
|
20158
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
20159
|
+
writer.uint32(
|
|
20160
|
+
/* id 3, wireType 0 =*/
|
|
20161
|
+
24
|
|
20162
|
+
).int32(message.state);
|
|
20163
|
+
if (message.msg != null && Object.hasOwnProperty.call(message, "msg"))
|
|
20164
|
+
writer.uint32(
|
|
20165
|
+
/* id 4, wireType 2 =*/
|
|
20166
|
+
34
|
|
20167
|
+
).string(message.msg);
|
|
20168
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
20169
|
+
writer.uint32(
|
|
20170
|
+
/* id 5, wireType 2 =*/
|
|
20171
|
+
42
|
|
20172
|
+
).string(message.compositionId);
|
|
20173
|
+
return writer;
|
|
20174
|
+
};
|
|
20175
|
+
EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20176
|
+
return this.encode(message, writer).ldelim();
|
|
20177
|
+
};
|
|
20178
|
+
EncoderStatus.decode = function decode(reader, length, error) {
|
|
20179
|
+
if (!(reader instanceof $Reader))
|
|
20180
|
+
reader = $Reader.create(reader);
|
|
20181
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderStatus();
|
|
20182
|
+
while (reader.pos < end) {
|
|
20183
|
+
let tag = reader.uint32();
|
|
20184
|
+
if (tag === error)
|
|
20185
|
+
break;
|
|
20186
|
+
switch (tag >>> 3) {
|
|
20187
|
+
case 1: {
|
|
20188
|
+
message.id = reader.string();
|
|
20189
|
+
break;
|
|
20190
|
+
}
|
|
20191
|
+
case 2: {
|
|
20192
|
+
message.type = reader.int32();
|
|
20193
|
+
break;
|
|
20194
|
+
}
|
|
20195
|
+
case 3: {
|
|
20196
|
+
message.state = reader.int32();
|
|
20197
|
+
break;
|
|
20198
|
+
}
|
|
20199
|
+
case 4: {
|
|
20200
|
+
message.msg = reader.string();
|
|
20201
|
+
break;
|
|
20202
|
+
}
|
|
20203
|
+
case 5: {
|
|
20204
|
+
message.compositionId = reader.string();
|
|
20205
|
+
break;
|
|
20206
|
+
}
|
|
20207
|
+
default:
|
|
20208
|
+
reader.skipType(tag & 7);
|
|
20209
|
+
break;
|
|
20210
|
+
}
|
|
20211
|
+
}
|
|
20212
|
+
return message;
|
|
20213
|
+
};
|
|
20214
|
+
EncoderStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
20215
|
+
if (!(reader instanceof $Reader))
|
|
20216
|
+
reader = new $Reader(reader);
|
|
20217
|
+
return this.decode(reader, reader.uint32());
|
|
20218
|
+
};
|
|
20219
|
+
EncoderStatus.verify = function verify(message) {
|
|
20220
|
+
if (typeof message !== "object" || message === null)
|
|
20221
|
+
return "object expected";
|
|
20222
|
+
let properties = {};
|
|
20223
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
20224
|
+
if (!$util.isString(message.id))
|
|
20225
|
+
return "id: string expected";
|
|
20226
|
+
}
|
|
20227
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
20228
|
+
switch (message.type) {
|
|
20229
|
+
default:
|
|
20230
|
+
return "type: enum value expected";
|
|
20231
|
+
case 0:
|
|
20232
|
+
case 1:
|
|
20233
|
+
break;
|
|
20234
|
+
}
|
|
20235
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
20236
|
+
switch (message.state) {
|
|
20237
|
+
default:
|
|
20238
|
+
return "state: enum value expected";
|
|
20239
|
+
case 0:
|
|
20240
|
+
case 1:
|
|
20241
|
+
case 2:
|
|
20242
|
+
case 3:
|
|
20243
|
+
case 4:
|
|
20244
|
+
case 5:
|
|
20245
|
+
case 6:
|
|
20246
|
+
break;
|
|
20247
|
+
}
|
|
20248
|
+
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
20249
|
+
properties._msg = 1;
|
|
20250
|
+
if (!$util.isString(message.msg))
|
|
20251
|
+
return "msg: string expected";
|
|
20252
|
+
}
|
|
20253
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
20254
|
+
if (!$util.isString(message.compositionId))
|
|
20255
|
+
return "compositionId: string expected";
|
|
20256
|
+
}
|
|
20257
|
+
return null;
|
|
20258
|
+
};
|
|
20259
|
+
EncoderStatus.fromObject = function fromObject(object) {
|
|
20260
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderStatus)
|
|
20261
|
+
return object;
|
|
20262
|
+
let message = new $root.sesame.v1.outputs.EncoderStatus();
|
|
20263
|
+
if (object.id != null)
|
|
20264
|
+
message.id = String(object.id);
|
|
20265
|
+
switch (object.type) {
|
|
20266
|
+
default:
|
|
20267
|
+
if (typeof object.type === "number") {
|
|
20268
|
+
message.type = object.type;
|
|
20269
|
+
break;
|
|
20270
|
+
}
|
|
20271
|
+
break;
|
|
20272
|
+
case "ENCODER_TYPE_UNSPECIFIED":
|
|
20273
|
+
case 0:
|
|
20274
|
+
message.type = 0;
|
|
20275
|
+
break;
|
|
20276
|
+
case "ENCODER_TYPE_VIDEO":
|
|
20277
|
+
case 1:
|
|
20278
|
+
message.type = 1;
|
|
20279
|
+
break;
|
|
20280
|
+
}
|
|
20281
|
+
switch (object.state) {
|
|
20282
|
+
default:
|
|
20283
|
+
if (typeof object.state === "number") {
|
|
20284
|
+
message.state = object.state;
|
|
20285
|
+
break;
|
|
20286
|
+
}
|
|
20287
|
+
break;
|
|
20288
|
+
case "CONNECTION_STATE_UNSPECIFIED":
|
|
20289
|
+
case 0:
|
|
20290
|
+
message.state = 0;
|
|
20291
|
+
break;
|
|
20292
|
+
case "CONNECTION_STATE_INITIALIZING":
|
|
20293
|
+
case 1:
|
|
20294
|
+
message.state = 1;
|
|
20295
|
+
break;
|
|
20296
|
+
case "CONNECTION_STATE_CONNECTING":
|
|
20297
|
+
case 2:
|
|
20298
|
+
message.state = 2;
|
|
20299
|
+
break;
|
|
20300
|
+
case "CONNECTION_STATE_ONLINE":
|
|
20301
|
+
case 3:
|
|
20302
|
+
message.state = 3;
|
|
20303
|
+
break;
|
|
20304
|
+
case "CONNECTION_STATE_DEGRADED":
|
|
20305
|
+
case 4:
|
|
20306
|
+
message.state = 4;
|
|
20307
|
+
break;
|
|
20308
|
+
case "CONNECTION_STATE_OFFLINE":
|
|
20309
|
+
case 5:
|
|
20310
|
+
message.state = 5;
|
|
20311
|
+
break;
|
|
20312
|
+
case "CONNECTION_STATE_ERROR":
|
|
20313
|
+
case 6:
|
|
20314
|
+
message.state = 6;
|
|
20315
|
+
break;
|
|
20316
|
+
}
|
|
20317
|
+
if (object.msg != null)
|
|
20318
|
+
message.msg = String(object.msg);
|
|
20319
|
+
if (object.compositionId != null)
|
|
20320
|
+
message.compositionId = String(object.compositionId);
|
|
20321
|
+
return message;
|
|
20322
|
+
};
|
|
20323
|
+
EncoderStatus.toObject = function toObject(message, options) {
|
|
20324
|
+
if (!options)
|
|
20325
|
+
options = {};
|
|
20326
|
+
let object = {};
|
|
20327
|
+
if (options.defaults) {
|
|
20328
|
+
object.id = "";
|
|
20329
|
+
object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
|
|
20330
|
+
object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
|
|
20331
|
+
object.compositionId = "";
|
|
20332
|
+
}
|
|
20333
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
20334
|
+
object.id = message.id;
|
|
20335
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
20336
|
+
object.type = options.enums === String ? $root.sesame.v1.outputs.EncoderType[message.type] === void 0 ? message.type : $root.sesame.v1.outputs.EncoderType[message.type] : message.type;
|
|
20337
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
20338
|
+
object.state = options.enums === String ? $root.sesame.v1.common.ConnectionState[message.state] === void 0 ? message.state : $root.sesame.v1.common.ConnectionState[message.state] : message.state;
|
|
20339
|
+
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
20340
|
+
object.msg = message.msg;
|
|
20341
|
+
if (options.oneofs)
|
|
20342
|
+
object._msg = "msg";
|
|
20343
|
+
}
|
|
20344
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
20345
|
+
object.compositionId = message.compositionId;
|
|
20346
|
+
return object;
|
|
20347
|
+
};
|
|
20348
|
+
EncoderStatus.prototype.toJSON = function toJSON() {
|
|
20349
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20350
|
+
};
|
|
20351
|
+
EncoderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20352
|
+
if (typeUrlPrefix === void 0) {
|
|
20353
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
20354
|
+
}
|
|
20355
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderStatus";
|
|
20356
|
+
};
|
|
20357
|
+
return EncoderStatus;
|
|
20358
|
+
}();
|
|
18656
20359
|
return outputs;
|
|
18657
20360
|
}();
|
|
18658
20361
|
v1.compositor = function() {
|
|
@@ -23847,11 +25550,12 @@ var CommandList = class {
|
|
|
23847
25550
|
}
|
|
23848
25551
|
applyTransaction(transaction) {
|
|
23849
25552
|
this.cl.commandList.forEach((item) => {
|
|
23850
|
-
if (transaction.transactionId !== void 0) {
|
|
25553
|
+
if (transaction.transactionId !== void 0 && item.transactionId == null) {
|
|
23851
25554
|
item.transactionId = transaction.transactionId;
|
|
23852
25555
|
}
|
|
23853
25556
|
if (transaction.dependencies !== void 0) {
|
|
23854
|
-
|
|
25557
|
+
const existing = item.transactionDeps ?? [];
|
|
25558
|
+
item.transactionDeps = [...new Set(existing.concat(transaction.dependencies))];
|
|
23855
25559
|
}
|
|
23856
25560
|
});
|
|
23857
25561
|
}
|
|
@@ -24034,7 +25738,7 @@ var CommandList = class {
|
|
|
24034
25738
|
}
|
|
24035
25739
|
}
|
|
24036
25740
|
item.updateSourceTransport = transportCmd;
|
|
24037
|
-
return this.add(item, timeOffsetMs, { transactionId: msg.transactionId, dependencies:
|
|
25741
|
+
return this.add(item, timeOffsetMs, { transactionId: msg.transactionId, dependencies: msg.dependencies });
|
|
24038
25742
|
}
|
|
24039
25743
|
sourceUpdate(id, cfg, timeOffsetMs) {
|
|
24040
25744
|
let item = new sesame.v1.commands.CommandListItem();
|
|
@@ -24070,6 +25774,21 @@ var CommandList = class {
|
|
|
24070
25774
|
item.removeOutput = { id };
|
|
24071
25775
|
return this.add(item, timeOffsetMs);
|
|
24072
25776
|
}
|
|
25777
|
+
encoderAdd(id, cfg, timeOffsetMs) {
|
|
25778
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
25779
|
+
item.addEncoder = { id, ...cfg };
|
|
25780
|
+
return this.add(item, timeOffsetMs);
|
|
25781
|
+
}
|
|
25782
|
+
encoderUpdate(id, cfg, timeOffsetMs) {
|
|
25783
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
25784
|
+
item.updateEncoder = { id, ...cfg };
|
|
25785
|
+
return this.add(item, timeOffsetMs);
|
|
25786
|
+
}
|
|
25787
|
+
encoderRemove(id, timeOffsetMs) {
|
|
25788
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
25789
|
+
item.removeEncoder = { id };
|
|
25790
|
+
return this.add(item, timeOffsetMs);
|
|
25791
|
+
}
|
|
24073
25792
|
audioMixerAdd(id, cfg, timeOffsetMs) {
|
|
24074
25793
|
let item = new sesame.v1.commands.CommandListItem();
|
|
24075
25794
|
item.addAudioMixer = { id, config: cfg };
|
|
@@ -24786,15 +26505,21 @@ var EaseKind = /* @__PURE__ */ ((EaseKind2) => {
|
|
|
24786
26505
|
EaseKind2["BACK_INOUT"] = "backInOut";
|
|
24787
26506
|
return EaseKind2;
|
|
24788
26507
|
})(EaseKind || {});
|
|
26508
|
+
function appendQueryParam(url, key, value) {
|
|
26509
|
+
if (!value) return url;
|
|
26510
|
+
const separator = url.includes("?") ? "&" : "?";
|
|
26511
|
+
return `${url}${separator}${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
|
|
26512
|
+
}
|
|
24789
26513
|
var SesameClient = class extends import_events3.EventEmitter {
|
|
24790
|
-
constructor(portOrUrl) {
|
|
26514
|
+
constructor(portOrUrl, clientOptions = {}) {
|
|
24791
26515
|
super();
|
|
24792
26516
|
this.subscriptions = [];
|
|
24793
26517
|
this.onMediaPacket = () => {
|
|
24794
26518
|
};
|
|
24795
26519
|
this.onCallbackMessage = () => {
|
|
24796
26520
|
};
|
|
24797
|
-
const
|
|
26521
|
+
const baseUrl = typeof portOrUrl === "number" ? `ws://127.0.0.1:${portOrUrl}/api` : portOrUrl;
|
|
26522
|
+
const url = appendQueryParam(baseUrl, "client", clientOptions.wsClientLabel ?? "");
|
|
24798
26523
|
this.conn = new SesameConnection({
|
|
24799
26524
|
url,
|
|
24800
26525
|
autoConnect: true,
|