Addon.Webcam.GetSourceList()

Description

Gets a list of available webcam Data Sources.

Syntax

.Addon.Webcam.GetSourceList();

Parameters

None

Return value

<string[]> An array of strings containing all webcam names e.g. ["HD WebCam", "HP webcam 123", "USB video driver"]

Example

var arySource = DWObject.Addon.Webcam.GetSourceList();
    for (var i = 0; i < arySource.length; i++){
        document.getElementById("source").options.add(new Option(arySource[i])); 
        // Get Webcam Source names and put them in a drop-down box
    }

See also

Addon.Webcam.SelectSource

Is this page helpful?

Leave a Reply

Your email address will not be published.