SetVideoContainer Method
Description
Set the video container handle.
ActiveX Edition | Plug-in Edition | Mac Edition |
---|---|---|
Since V8.0 | Since V8.0 | Not Supported |
Syntax
Boolean ObjectName. SetVideoContainer(Long hVidContainer)
Parameters
Boolean hVidContainer: The window handle to show the video.
Return value
Boolean.
TRUE indicates success. FALSE indicates failure.
When an error occurs and IfThrowException property is TRUE, an exception will be thrown.
When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.
Remarks
Only available when IfShowUI is true. The default value is NULL. The default UI will show in this situation. If set this method with the designated control, the designated control will show insteaded of the default UI.
See also
None.
Sample
A JavaScript sample is provided.
<script language="javascript"> function btnSetVideoContainer_onclick() { result = Webcam.SetVideoContainer(Webcam.CurrentHWND); Webcam.SelectSourceByIndex(document.getElementById("source").selectedIndex); Webcam.OpenSource(); } </script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.