Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
yushulx committed Nov 16, 2023
1 parent 7b4230b commit 45f3fa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion example/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</div>

<div id="videoview">
<div class="dce-video-container" id="videoContainer"></div>
<div id="videoContainer"></div>
<canvas id="videoOverlay"></canvas>
</div>
}
Expand Down

0 comments on commit 45f3fa1

Please sign in to comment.