OpenSDK  V4.2.0
Functions
Playback API

Functions

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartSearchEx (const char *szSessionId, const char *szDevSerial, const int iChannelNo, const char *szStartTime, const char *szStopTime)
 Search video files,including the video files stored in cloud storage and devide storage. Only supports searching by date. Asynchronous API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartPlayBackEx (const char *szSessionId, HWND hPlayWnd, const char *szDevSerial, const int iChannelNo, const char *szSafeKey, const char *szStartTime, const char *szStopTime)
 Start playback, asynchronization API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PlayBackResume (const char *szSessionId)
 Playback resumed. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PlayBackPause (const char *szSessionId)
 Playback paused. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StopPlayBackEx (const char *szSessionId)
 Playback stopped. More...
 

Detailed Description

Function Documentation

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PlayBackPause ( const char *  szSessionId)

Playback paused.

Parameters
[in]szSessionIdSession ID
Returns
Return 0 on success, non-0 on failure
See also
OpenSDK_PlayBackResume()
Note
This API can only be called after OpenSDK_StartPlayBack()is called
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PlayBackResume ( const char *  szSessionId)

Playback resumed.

Parameters
[in]szSessionIdSession ID
Returns
Return 0 on success, non-0 on failure
See also
OpenSDK_PlayBackPause()
Note
This API can only be called after OpenSDK_StartPlayBack()is called
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartPlayBackEx ( const char *  szSessionId,
HWND  hPlayWnd,
const char *  szDevSerial,
const int  iChannelNo,
const char *  szSafeKey,
const char *  szStartTime,
const char *  szStopTime 
)

Start playback, asynchronization API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid.

Parameters
[in]szSessionIdSession ID
[in]hPlayWndDisplay window handle, NULL stands for getting streaming only, no playback
[in]szDevSerialDevice serial No.
[in]iChannelNoDevice channel No.
[in]szSafeKeyVideo encryption key
[in]szStartTimeStart time
[in]szStopTimeEnd time
Returns
Return 0 on success, non-0 on failure
See also
OpenSDK_StopPlayBack()
Note
Time format: yyyy-MM-dd hh:mm:ss
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartSearchEx ( const char *  szSessionId,
const char *  szDevSerial,
const int  iChannelNo,
const char *  szStartTime,
const char *  szStopTime 
)

Search video files,including the video files stored in cloud storage and devide storage. Only supports searching by date. Asynchronous API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid.

Parameters
[in]szSessionIdSession ID
[in]szDevSerialDevice serial No.
[in]iChannelNoDevice channel No.
[in]szAccessTokenToken verification
[in]szStartTimeStart time
[in]szStopTimeEnd time
Returns
Return 0 on success, non-0 on failure
Note
Time format: yyyy-MM-dd hh:mm:ss
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StopPlayBackEx ( const char *  szSessionId)

Playback stopped.

Parameters
[in]szSessionIdSession ID
Returns
Return 0 on success, non-0 on failure
See also
OpenSDK_StartPlayBack()