Concludes a playback session on Historical Server.
SMC_RETURN_CODE smc_terminate_playback (SMC_CONNECT_ID clientId)
identifies the connection.
Return value |
Indicates |
---|---|
SMC_RET_SUCCESS |
Function succeeded. |
SMC_RET_FAILURE |
Function failed. |
SMC_RET_INVALID_CONNECT |
Connection does not exist. |
This example assumes that:
You have created a connection to Historical Server and have a clientId.
You have successfully executed smc_create_playback_session.
You have created at least one view on the connection.
You have successfully executed smc_initiate_playback.
if (smc_terminate_playback(clientId) != SMC_RET_SUCCESS) { printf("smc_terminate_playback failed\n"); /* do some cleanup */ }
After a successful call to smc_terminate_playback, the Historical Server connection can be used to create another playback session, or to define a recording session.
Mode |
Availability |
---|---|
SMC_SERVER_M_LIVE |
No |
SMC_SERVER_M_HISTORICAL |
Yes |
Error |
Indicates |
---|---|
SMC_RET_INVALID_SVR_MODE |
Invalid server mode. |
SMC_RET_INTERNAL_ERROR |
Internal error. |
smc_create_playback_session, smc_initiate_playback