資源簡(jiǎn)介
視頻監(jiān)控協(xié)議標(biāo)準(zhǔn)onvif協(xié)議,源碼中有rstp,rtp,gb28181等等協(xié)議,協(xié)議源碼有兩個(gè)版本,windows和linux版本,次源碼以中間件形式編寫,可以直接用編譯后的庫(kù)
代碼片段和文件信息
#include?“nvt_server.h“
//devicemgmt
int?GetDeviceInformation(scew_tree?*request_tree?scew_tree?*response_tree?int?*flush)
{
printf(“\n==============================>?call?DEVICEMGMT?==>?GetDeviceInformation?\n\n“);
scew_element?*GetDeviceInformationResponse?=?NULL;
if?(GetSoapElementByName(scew_tree_root(response_tree)?“GetDeviceInformationResponse“
&GetDeviceInformationResponse)?||?GetDeviceInformationResponse?==?NULL)
{
return?EX_ERROR;
}
return?(SetChildElementContent(GetDeviceInformationResponse?“Manufacturer“?“AEBELL“)
||?SetChildElementContent(GetDeviceInformationResponse?“Model“?“IPC_D03“)
||?SetChildElementContent(GetDeviceInformationResponse?“FirmwareVersion“?“3.14“)
||?SetChildElementContent(GetDeviceInformationResponse?“SerialNumber“?“1122334455“)
||?SetChildElementContent(GetDeviceInformationResponse?“HardwareId“?“88776655“));
}
int?GetSystemDateAndTime(scew_tree?*request_tree?scew_tree?*response_tree?int?*flush)
{
printf(“\n==============================>?call?DEVICEMGMT?==>?GetSystemDateAndTime?\n\n“);
scew_element?*SystemDateAndTime?=?NULL;
scew_element?*TimeZone?=?NULL;
scew_element?*UTCDateTime?=?NULL;
scew_element?*LocalDateTime?=?NULL;
scew_element?*Extension?=?NULL;
time_t?now_time?=?time(NULL);
struct?tm?now_tm;
gmtime_r(&now_time?&now_tm);
if?(GetSoapElementByName(scew_tree_root(response_tree)?“SystemDateAndTime“?&SystemDateAndTime)
||?GetSoapElementByName(SystemDateAndTime?“TimeZone“?&TimeZone)?||?GetSoapElementByName(
SystemDateAndTime?“UTCDateTime“?&UTCDateTime)?||?GetSoapElementByName(SystemDateAndTime
“LocalDateTime“?&LocalDateTime)?||?GetSoapElementByName(SystemDateAndTime?“Extension“
&Extension))
{
return?EX_ERROR;
}
SetChildElementContent(SystemDateAndTime?“DateTimeType“?“Manual“);
SetChildElementContent(SystemDateAndTime?“DaylightSavings“?“false“);
SetChildElementContent(TimeZone?“TZ“?“CET-1CESTM3.5.0M10.5.0“);
SetChildElementContentI(UTCDateTime?“Hour“?now_tm.tm_hour);
SetChildElementContentI(UTCDateTime?“Minute“?now_tm.tm_min);
SetChildElementContentI(UTCDateTime?“Second“?now_tm.tm_sec);
SetChildElementContentI(UTCDateTime?“Year“?now_tm.tm_year);
SetChildElementContentI(UTCDateTime?“Month“?now_tm.tm_mon);
SetChildElementContentI(UTCDateTime?“Day“?now_tm.tm_mday);
SetChildElementContentI(LocalDateTime?“Hour“?now_tm.tm_hour);
SetChildElementContentI(LocalDateTime?“Minute“?now_tm.tm_min);
SetChildElementContentI(LocalDateTime?“Second“?now_tm.tm_sec);
SetChildElementContentI(LocalDateTime?“Year“?now_tm.tm_year);
SetChildElementContentI(LocalDateTime?“Month“?now_tm.tm_mon);
SetChildElementContentI(LocalDateTime?“Day“?now_tm.tm_mday);
return?EX_OK;
}
int?GetScopes(scew_tree?*request_tree?scew_tree?*response_tree?int?*flush)
{
printf(“\n==============================>?call?DEVICEMGMT?==>?GetScopes?\n\n“);
return?EX_OK;
}
int?GetUsers(scew_tree?*request_tree?scew_tree?*response_tree?i
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????53944??2013-07-19?10:23??開(kāi)發(fā)文檔\MS_ONVIF_SDK.docx
?????文件???12713472??2013-07-19?10:24??NVC(windows)\NVC\avcodec-53.dll
?????文件?????126464??2013-07-19?10:23??NVC(windows)\NVC\avutil-51.dll
?????文件????????115??2013-07-19?11:08??NVC(windows)\NVC\config.ini
?????文件????????188??2013-07-19?10:23??NVC(windows)\NVC\說(shuō)明.txt
?????文件?????????17??2013-07-19?10:53??NVT(Linux)\pusdk.conf
?????文件???11357423??2013-07-19?11:06??NVT(Linux)\putest
?????文件???10593628??2013-07-19?10:23??NVT(Linux)\test.h264
?????文件????????138??2013-07-19?11:13??NVT(Linux)\使用說(shuō)明.txt
?????文件????????131??2012-09-03?10:01??onvif\.svn\all-wcprops
?????文件????????305??2012-09-03?10:01??onvif\.svn\entries
????..A.SHR?????????9??2013-04-10?09:26??onvif\Desktop_1.ini
????..A.SHR?????????9??2013-04-10?09:31??onvif\Desktop_2.ini
?????文件???????6619??2012-09-03?10:01??onvif\include\.svn\all-wcprops
?????文件???????6304??2012-09-03?10:01??onvif\include\.svn\entries
?????文件????????797??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????1985??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????1760??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????5161??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????1277??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件??????17160??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????3932??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件??????40339??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????3364??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????2279??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????1830??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????2028??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????1813??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????9118??2012-09-03?10:01??onvif\include\.svn\text-ba
?????文件???????1325??2012-09-03?10:01??onvif\include\.svn\text-ba
............此處省略1298個(gè)文件信息
評(píng)論
共有 條評(píng)論