diff --git a/_content/RazorBarcodeLibrary/barcodeJsInterop.js b/_content/RazorBarcodeLibrary/barcodeJsInterop.js index ae8f223..c71e9e3 100644 --- a/_content/RazorBarcodeLibrary/barcodeJsInterop.js +++ b/_content/RazorBarcodeLibrary/barcodeJsInterop.js @@ -169,11 +169,15 @@ export async function setVideoElement(scanner, videoId) { } } -export async function openCamera(scanner, cameraInfo) { +export async function openCamera(scanner, cameraInfo, dotNetHelper, callback) { if (!Dynamsoft) return; try { await scanner.setCurrentCamera(cameraInfo); + scanner.onPlayed = function () { + let resolution = scanner.getResolution(); + dotNetHelper.invokeMethodAsync(callback, resolution[0], resolution[1]); + } await scanner.show(); } catch (ex) { diff --git a/_framework/RazorBarcodeLibrary.dll b/_framework/RazorBarcodeLibrary.dll index 7fb77ae..c9f9c20 100644 Binary files a/_framework/RazorBarcodeLibrary.dll and b/_framework/RazorBarcodeLibrary.dll differ diff --git a/_framework/RazorBarcodeLibrary.dll.br b/_framework/RazorBarcodeLibrary.dll.br index 1064c47..4793f0a 100644 Binary files a/_framework/RazorBarcodeLibrary.dll.br and b/_framework/RazorBarcodeLibrary.dll.br differ diff --git a/_framework/RazorBarcodeLibrary.dll.gz b/_framework/RazorBarcodeLibrary.dll.gz index 2de6952..9c3a976 100644 Binary files a/_framework/RazorBarcodeLibrary.dll.gz and b/_framework/RazorBarcodeLibrary.dll.gz differ diff --git a/_framework/RazorBarcodeLibrary.pdb.gz b/_framework/RazorBarcodeLibrary.pdb.gz index d6b3138..1623331 100644 Binary files a/_framework/RazorBarcodeLibrary.pdb.gz and b/_framework/RazorBarcodeLibrary.pdb.gz differ diff --git a/_framework/blazor.boot.json b/_framework/blazor.boot.json index 7a88355..58f8940 100644 --- a/_framework/blazor.boot.json +++ b/_framework/blazor.boot.json @@ -7,7 +7,7 @@ "linkerEnabled": true, "resources": { "assembly": { - "example.dll": "sha256-LExzlvmmjm+B9zBx2cEyl32O+wWKyEF66\/NqKec8lWo=", + "example.dll": "sha256-9RdYBojRUD9T7mLgprKxk0V3PU220XnFXNdAZTeoUKY=", "Microsoft.AspNetCore.Components.dll": "sha256-ofUX8JP1w0mYgbjtG23BhquxLHTmqLT5lTjudT9sWl4=", "Microsoft.AspNetCore.Components.Web.dll": "sha256-U6ceRxD42\/v52j3G+BAuYnv4TyK9ElGdl3U+hOB8sqo=", "Microsoft.AspNetCore.Components.WebAssembly.dll": "sha256-oY+xvfgFDh2fHdG6aKlPAZADSchxD3dZQ0V9Xg41uXo=", @@ -22,7 +22,7 @@ "Microsoft.Extensions.Primitives.dll": "sha256-eXvGx2jcjpTPEJoAHBsW\/VuMPbNyyU+AsuhPmkzSSRY=", "Microsoft.JSInterop.dll": "sha256-KoXvfIJR0Cyk0KC5XhybsEdOzLDuqskQrC6DUIwO3MI=", "Microsoft.JSInterop.WebAssembly.dll": "sha256-bzbqcJ6KmXNtttCdwlY3JqqzIuFo0rRDUc7qjI8CKYM=", - "RazorBarcodeLibrary.dll": "sha256-WKnBLPSE86m8po8y7fwhclP1ZGjUH7EW\/gcGMjsN5mM=", + "RazorBarcodeLibrary.dll": "sha256-KpwaVBisP\/cnb\/JPQjL6XrWZDgGS7Frl5aydA\/V8LGQ=", "System.Collections.Concurrent.dll": "sha256-iVVE9O+NcP6iYl4sd\/ZeC3urQoyLH9oTiV2umPpI0Ec=", "System.Collections.dll": "sha256-MhT1\/odzSutq6AYh7cLU975syM0Snr+wF9TMFLtM934=", "System.ComponentModel.dll": "sha256-pGP1Cnq1M\/2Hkyb2tJWqyVXzPDBaqoWBi3pBs4L1Cbg=", diff --git a/_framework/blazor.boot.json.br b/_framework/blazor.boot.json.br index 98b74e4..63904d0 100644 Binary files a/_framework/blazor.boot.json.br and b/_framework/blazor.boot.json.br differ diff --git a/_framework/blazor.boot.json.gz b/_framework/blazor.boot.json.gz index 335bd4e..1380fd2 100644 Binary files a/_framework/blazor.boot.json.gz and b/_framework/blazor.boot.json.gz differ diff --git a/_framework/example.dll b/_framework/example.dll index abad48b..17b9536 100644 Binary files a/_framework/example.dll and b/_framework/example.dll differ diff --git a/_framework/example.dll.br b/_framework/example.dll.br index 0a66b7d..fc3ab6c 100644 Binary files a/_framework/example.dll.br and b/_framework/example.dll.br differ diff --git a/_framework/example.dll.gz b/_framework/example.dll.gz index 7654ec8..5be9401 100644 Binary files a/_framework/example.dll.gz and b/_framework/example.dll.gz differ diff --git a/_framework/example.pdb.gz b/_framework/example.pdb.gz index 3607cae..8316681 100644 Binary files a/_framework/example.pdb.gz and b/_framework/example.pdb.gz differ diff --git a/css/app.css b/css/app.css index 4feb9ee..370d0bc 100644 --- a/css/app.css +++ b/css/app.css @@ -112,15 +112,6 @@ a, .btn-link { height: 100%; } -#overlay { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - object-fit: contain; -} - .loading-indicator { position: absolute; top: 0; @@ -205,12 +196,12 @@ input { z-index: 1 } -#videoOverlay { +.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; - z-index: 2; + z-index: 1; object-fit: contain } \ No newline at end of file