ScnLib_SelectWebcamDevice()

ScnLib_SelectWebcamDevice()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) BOOL __stdcall ScnLib_SelectWebcamDevice(int nIndex);
C# [DllImport("ScnLib.dll")] public static extern bool ScnLib_SelectWebcamDevice(int Index);
Basic Public Declare Function ScnLib_SelectWebcamDevice Lib "ScnLib.dll" (ByVal Index As Int32) As Boolean
Delphi function ScnLib_SelectWebcamDevice(Index: Integer): LongBool; stdcall; external 'ScnLib.dll';
  • Description
    Choose a webcam device, identified by its index, as the active webcam.

  • Parameters
    • Index [in]
      The specified index for the webcam device, ranging from 0 to the device count - 1.
  • Return Value
    If a webcam device is selected successfully, the return value is TRUE. Otherwise, the return value is FALSE.

  • Remarks
    Use this function to choose a webcam device, identified by its index, as the active webcam. If the index is greater than or equal to 0 and less than the total number of devices, the specified webcam will be set as active. Otherwise, no webcam will be set as active. You can switch the active webcam even while recording is ongoing. Initially, no webcam is selected. To check the index of the webcam currently active, call ScnLib_GetSelectedWebcamDevice().

  • See Also
    ScnLib_GetWebcamDeviceCount()
    ScnLib_GetWebcamDeviceA/W()
    ScnLib_GetSelectedWebcamDevice()
    ScnLib_PreviewWebcam()

Try the SDK for FREE SDK APIs overview