From 45f3fa149c45cbbe98801fe2c52607fa3bad621c Mon Sep 17 00:00:00 2001 From: yushulx Date: Thu, 16 Nov 2023 16:35:15 +0800 Subject: [PATCH] Updated --- RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js | 4 +++- example/Pages/Index.razor | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js b/RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js index b66aca4..ae8f223 100644 --- a/RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js +++ b/RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js @@ -160,7 +160,9 @@ export async function setVideoElement(scanner, videoId) { if (!Dynamsoft) return; try { - await scanner.setUIElement(document.getElementById(videoId)); + let element = document.getElementById(videoId); + element.className = "dce-video-container"; + await scanner.setUIElement(element); } catch (ex) { console.error(ex); diff --git a/example/Pages/Index.razor b/example/Pages/Index.razor index c74fe0d..5ecfa5a 100644 --- a/example/Pages/Index.razor +++ b/example/Pages/Index.razor @@ -66,7 +66,7 @@
-
+
}