File tree Expand file tree Collapse file tree
programming/javascript/user-guide Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -656,12 +656,12 @@ await cvRouter.addResultReceiver(resultReceiver);
656656` ` ` javascript
657657// Create a CameraView instance with default settings
658658let 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
662662let 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
667667let uiElement = cameraView .getUIElement ();
You can’t perform that action at this time.
0 commit comments