Video device test interface.
More...
#include <setting_service_interface.h>
Video device test interface.
Definition at line 725 of file setting_service_interface.h.
◆ GetTestCameraController()
◆ SetEvent()
Video device test callback event handler.
- Parameters
-
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- Call the function before using any other interface of the same class.
◆ SetVideoPreviewParentWnd()
Set the window and the rectangle to display the video preview.
- Parameters
-
hParentWnd | Specify the window to display the video preview. |
rc | Specify a rectangle on the window to display the video preview. The default value is {0,0,0,0}, which means the whole client area of the window. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- This function SHOULD only be called ONCE. Any redundant calling will return SDKERR_WRONG_USAGE.
◆ TestVideoRotate()
Rotate the video preview.
- Parameters
-
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- The function can not work if there is no event or window handle to be set. It works also in the meeting video when you rotate the preview video. Please use it with cautions.
◆ TestVideoStartPreview()
virtual SDKError ITestVideoDeviceHelper::TestVideoStartPreview |
( |
const zchar_t * | deviceID = nullptr | ) |
|
|
pure virtual |
Start to test the camera.
- Parameters
-
deviceID | Specify a camera device to test. If the param is a wrong camera ID, SDK returns an error. Otherwise SDK tests the specified device and sets it to be the selected one. |
- Note
- The SDK will test the default device if no parameter is input.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- The function can not work if no event is set or no window handle is set.
◆ TestVideoStopPreview()
virtual SDKError ITestVideoDeviceHelper::TestVideoStopPreview |
( |
| ) |
|
|
pure virtual |
Stop testing the camera.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- The function can not work if there is no event or window handle to be set.