You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
797 B
34 lines
797 B
#include "onvifclientrecording.hpp"
|
|
|
|
inline OnvifClientRecording::OnvifClientRecording(OnvifClientDevice &device)
|
|
: m_Device(device), recordingProxy(SOAP_C_UTFSTRING)
|
|
{
|
|
|
|
}
|
|
|
|
inline OnvifClientRecording::~OnvifClientRecording()
|
|
{
|
|
|
|
}
|
|
|
|
ONVIFLIB_API inline int OnvifClientRecording::GetRecordings(_trc__GetRecordingsResponse &recordings)
|
|
{
|
|
_trc__GetRecordings req;
|
|
string strUrl;
|
|
string strUser;
|
|
string strPass;
|
|
|
|
if (m_Device.GetUserPasswd(strUser, strPass) == false
|
|
|| m_Device.GetRecordingUrl(strUrl) == false)
|
|
{
|
|
return SOAP_ERR;
|
|
}
|
|
|
|
recordingProxy.soap_endpoint = strUrl.c_str();
|
|
|
|
soap_wsse_add_Security(&recordingProxy);
|
|
soap_wsse_add_UsernameTokenDigest(&recordingProxy, "Id",
|
|
strUser.c_str() , strPass.c_str());
|
|
|
|
return recordingProxy.GetRecordings( &req, &recordings);
|
|
}
|