Skip to content

Commit 287ec9f

Browse files
Update CameraView instance creation examples to use XML file paths
1 parent c925189 commit 287ec9f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • programming/javascript/user-guide

programming/javascript/user-guide/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,12 +656,12 @@ await cvRouter.addResultReceiver(resultReceiver);
656656
```javascript
657657
// Create a CameraView instance with default settings
658658
let cameraView = await Dynamsoft.DCE.CameraView.createInstance();
659-
// Create a CameraView instance with a specified HTML file path, typically a local or remote URL
660-
let cameraView1 = await Dynamsoft.DCE.CameraView.createInstance('@engineResourcePath/dce.mobile-native.ui.html');
659+
// Create a CameraView instance with a specified XML file path, typically a local or remote URL
660+
let cameraView1 = await Dynamsoft.DCE.CameraView.createInstance('@engineResourcePath/dce.ui.v5.xml');
661661
// Create a CameraView instance within a specified DOM element
662662
let cameraView2 = await Dynamsoft.DCE.CameraView.createInstance(document.getElementById('my-ui'));
663663
// Create a CameraView instance using a custom UI file path
664-
let cameraView3 = await Dynamsoft.DCE.CameraView.createInstance('url/to/my/ui.html');
664+
let cameraView3 = await Dynamsoft.DCE.CameraView.createInstance('url/to/my/ui.xml');
665665
666666
// Get the UI element associated with the cameraView instance
667667
let uiElement = cameraView.getUIElement();

0 commit comments

Comments
 (0)