📚 Documentação inicial do ALETHEIA
- MANUAL-PRODUTO.md: Manual do usuário final - MANUAL-VENDAS.md: Estratégia comercial e vendas - MANUAL-TECNICO.md: Infraestrutura e deploy - README.md: Visão geral do projeto
This commit is contained in:
35
frontend/node_modules/html5-qrcode/esm/utils.js
generated
vendored
Normal file
35
frontend/node_modules/html5-qrcode/esm/utils.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
var VideoConstraintsUtil = (function () {
|
||||
function VideoConstraintsUtil() {
|
||||
}
|
||||
VideoConstraintsUtil.isMediaStreamConstraintsValid = function (videoConstraints, logger) {
|
||||
if (typeof videoConstraints !== "object") {
|
||||
var typeofVideoConstraints = typeof videoConstraints;
|
||||
logger.logError("videoConstraints should be of type object, the "
|
||||
+ "object passed is of type ".concat(typeofVideoConstraints, "."), true);
|
||||
return false;
|
||||
}
|
||||
var bannedKeys = [
|
||||
"autoGainControl",
|
||||
"channelCount",
|
||||
"echoCancellation",
|
||||
"latency",
|
||||
"noiseSuppression",
|
||||
"sampleRate",
|
||||
"sampleSize",
|
||||
"volume"
|
||||
];
|
||||
var bannedkeysSet = new Set(bannedKeys);
|
||||
var keysInVideoConstraints = Object.keys(videoConstraints);
|
||||
for (var _i = 0, keysInVideoConstraints_1 = keysInVideoConstraints; _i < keysInVideoConstraints_1.length; _i++) {
|
||||
var key = keysInVideoConstraints_1[_i];
|
||||
if (bannedkeysSet.has(key)) {
|
||||
logger.logError("".concat(key, " is not supported videoConstaints."), true);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
return VideoConstraintsUtil;
|
||||
}());
|
||||
export { VideoConstraintsUtil };
|
||||
//# sourceMappingURL=utils.js.map
|
||||
Reference in New Issue
Block a user