@privateid/cryptonets-web-sdk
Advanced tools
Comparing version 4.2.2 to 4.2.3
@@ -46,32 +46,5 @@ import UAParser from 'ua-parser-js'; | ||
audio: boolean; | ||
video: { | ||
facingMode: FacingMode; | ||
resizeMode: string; | ||
width: number | { | ||
ideal: number; | ||
}; | ||
height: number | { | ||
ideal: number; | ||
min?: undefined; | ||
}; | ||
deviceId: any; | ||
aspectRatio: number; | ||
focusMode: string; | ||
}; | ||
} | { | ||
audio: boolean; | ||
video: { | ||
aspectRatio: number; | ||
height: { | ||
min: number; | ||
ideal?: undefined; | ||
}; | ||
resizeMode: string; | ||
facingMode?: undefined; | ||
width?: undefined; | ||
deviceId?: undefined; | ||
focusMode?: undefined; | ||
}; | ||
video: any; | ||
}; | ||
export declare function scaleImageData(imageData: any, scaleFactor: number): ImageData; | ||
export declare function zoomInCanvasImage(canvas: any, scaleFactor: number): ImageData; |
@@ -18,2 +18,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const mobileCameraResHeight = 1440; | ||
const cameraResolutionAndroid = 1080; | ||
export function getUserAgent() { | ||
@@ -292,2 +293,14 @@ const userAgent = typeof window !== 'undefined' && navigator && window.navigator.userAgent; | ||
} | ||
if (isAndroid()) { | ||
return { | ||
audio: false, | ||
video: { | ||
aspectRatio: 1, | ||
facingMode: faceMode, | ||
width: { | ||
min: cameraResolutionAndroid, | ||
}, | ||
}, | ||
}; | ||
} | ||
return { | ||
@@ -294,0 +307,0 @@ audio: false, |
@@ -5,3 +5,3 @@ { | ||
"description": "CryptoNets WebAssembly SDK", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "Face recognition", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
41522228
6966