OpenSDK  V4.2.0
Functions
Get video information

Functions

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetOSDTime (const char *szSessionId, STREAM_TIME *pTime)
 Get OSD time. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_CapturePicture (const char *szSessionId, const char *szFileName)
 Capture, which is used when calling StartRealPlay succeeded (receive MsgId == INS_PLAY_START in the callback function) More...
 

Detailed Description

Function Documentation

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_CapturePicture ( const char *  szSessionId,
const char *  szFileName 
)

Capture, which is used when calling StartRealPlay succeeded (receive MsgId == INS_PLAY_START in the callback function)

Parameters
[in]szSessionIdSession ID
[in]szFileNamePicture saving path, the format is JPG
Returns
Return 0 on success, -1 on failure
See also
szFile It should be changed to UTF-8 format.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetOSDTime ( const char *  szSessionId,
STREAM_TIME pTime 
)

Get OSD time.

Parameters
[in]szSessionIdSession ID
[out]pTimeOSD time, see time format in STREAM_TIME
Returns
Return 0 on success, -1 on failure