Use SetVideoContainer method to set the preview UI


Scenario:
When using webcam with ImageCapture Suite, customers might get annoyed about different preview UI style due to different webcam module.
ImageCapture Suite provides SetVideoContainer method to set the preview UI in ImageCapture Suite Container.

Solution:
Please check the online demo via the link below:
Online demo for SetVideoContainer

If SetVideoContainer is used to set a certain video container as designated control, the designated control will show insteaded of the default UI.
While please be noted:

>> Code:

function btn_openWebCam() {

DWObject.CloseSource();

result = DWObject.SetVideoContainer(DWObject.CurrentHWND);

DWObject.SelectSourceByIndex(document.getElementById("source").selectedIndex);

DWObject.IfShowUI = true;

DWObject.OpenSource();

}

The sample code can be downloaded via the link below:
SetVideoContainer Sample Code Download