|
OpenSDK
V4.2.0
|
Typedefs | |
| typedef void(CALLBACK * | OpenSDK_MessageHandler) (const char *szSessionId, unsigned int iMsgType, unsigned int iErrorCode, const char *pMessageInfo, void *pUser) |
| Message callback. More... | |
Functions | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_AllocSessionEx (OpenSDK_MessageHandler pHandle, void *pUser, char **pSession, int *iSessionLen) |
| Apply a session ID. More... | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_FreeSession (const char *szSessionId) |
| Destroy SDk handle. More... | |
| OPENSDK_API void CALLBACK | OpenSDK_SetSessionConfig (const char *szSessionId, ConfigKey iKey, const int iValue) |
| Configuring configuration information for Session, configured according to ConfigKey, before calling the stream. More... | |
| typedef void(CALLBACK * OpenSDK_MessageHandler) (const char *szSessionId, unsigned int iMsgType, unsigned int iErrorCode, const char *pMessageInfo, void *pUser) |
Message callback.
| szSessionId | Applied session ID |
| iMsgType | Message No. MessageType |
| iErrorCode | Error code OpenNetStreamError.h |
| pMessageInfo | Message |
| pUser | User-defined data |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_AllocSessionEx | ( | OpenSDK_MessageHandler | pHandle, |
| void * | pUser, | ||
| char ** | pSession, | ||
| int * | iSessionLen | ||
| ) |
Apply a session ID.
| [in] | pHandle | Set callback function, OpenSDK_MessageHandler |
| [in] | pUser | User-defined data will be thrown out at pHandle |
| [out] | pSession | Used to receive the allocated session ID |
| [out] | iSessionLen | Length of pSession |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_FreeSession | ( | const char * | szSessionId | ) |
Destroy SDk handle.
| [in] | szSessionId | Session ID, create through OpenSDK_AllocSession() |
| OPENSDK_API void CALLBACK OpenSDK_SetSessionConfig | ( | const char * | szSessionId, |
| ConfigKey | iKey, | ||
| const int | iValue | ||
| ) |
Configuring configuration information for Session, configured according to ConfigKey, before calling the stream.
| [in] | iKey | ConfigKey, Configuration type |
| [in] | iValue | Configuration value,when key=CONFIG_OPEN_STREAMTRANS, value=1 means The output of the stream data is transferred to the package for video storage |
1.8.9.1