Set initialization parameters.
BOOL NET_DVR_SetSDKInitCfg( NET_SDK_INIT_CFG_TYPE enumType, void* const lpInBuff );
enumType |
Value |
Description |
lpInBuff |
---|---|---|---|
NET_SDK_INIT_CFG_ABILITY |
1 |
Capability supported by SDK. |
|
NET_SDK_INIT_CFG_SDK_PATH |
2 |
Set loading path for component libraries (supported by both Linux and Windows system). |
|
NET_SDK_INIT_CFG_LIBEAY_PATH |
3 |
Set path (including library name) for libeay32.dll (Windows), libcrypto.so (Linux), and libcrypto.dylib (Mac) of OpenSSL in version 1.1.1 and 1.0.2. |
Path in string format, e.g., C:\\libeay32.dll. |
NET_SDK_INIT_CFG_SSLEAY_PATH |
4 |
Set path (including library name) for ssleay32.dll (Windows), libssl.so (Linux), libssl.dylib (Mac) of OpenSSL in version 1.1.1 and 1.0.2. |
Path in string format, e.g., C:\\ssleay32.dll. |
[IN] Input parameter. Different parameter types correspond to different structures, see details in the table above.
Returns TURE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
This API should be called before calling NET_DVR_Init to initialize and check the dependent libraries or capabilities. This API only takes effect for POSIX. For Windows, it takes no effect but success will be returned.