资源简介
视频监控协议标准onvif协议,源码中有rstp,rtp,gb28181等等协议,协议源码有两个版本,windows和linux版本,次源码以中间件形式编写,可以直接用编译后的库
代码片段和文件信息
#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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 53944 2013-07-19 10:23 开发文档\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\说明.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)\使用说明.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个文件信息
评论
共有 条评论