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.

49 lines
2.3 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __ONVIF_CLIENT_MEDIA__
  2. #define __ONVIF_CLIENT_MEDIA__
  3. #include <string>
  4. #include <map>
  5. #include <iostream>
  6. #include <list>
  7. #include "onvifclientdevice.hpp"
  8. #include "../onvifgen/soapStub.h"
  9. #include "../onvifgen/soapMediaBindingProxy.h"
  10. #include "../gsoap/wsseapi.h"
  11. using namespace std;
  12. class ONVIFLIB_API OnvifClientMedia
  13. {
  14. public:
  15. OnvifClientMedia(OnvifClientDevice &device);
  16. ~OnvifClientMedia();
  17. public:
  18. //Profile Functions
  19. int GetProfiles(_trt__GetProfilesResponse &profiles);
  20. int GetProfile(_trt__GetProfileResponse &profileResponse,string profileToken);
  21. int CreateProfile(_trt__CreateProfileResponse &CreateProfileResponse,string Name,string token);
  22. //Uri and streaming functions
  23. int GetSnapshotUri(_trt__GetSnapshotUriResponse &SnapshotUriResponse,string profileToken);
  24. int GetStreamUri(_trt__GetStreamUriResponse &StreamUriResponse,tt__StreamSetup &StreamSetup, string profileToken);
  25. int GetServiceCapabilities(_trt__GetServiceCapabilitiesResponse &GetServiceCapResponse);
  26. int StartMulticastStreaming(_trt__StartMulticastStreamingResponse &StartMulticastResponse,string profileToken);
  27. int StopMulticastStreaming(_trt__StopMulticastStreamingResponse &StopMulticastResponse,string profileToken);
  28. //Video Source Functions
  29. int GetVideoSources(_trt__GetVideoSourcesResponse &GetVideoSourcesResponse);
  30. int GetVideoSourceConfigurations(_trt__GetVideoSourceConfigurationsResponse &GetVideoSourceConfigResponse);
  31. int SetVideoSourceConfiguration(_trt__SetVideoSourceConfigurationResponse &SetVideoSourceConfigResponse);
  32. int GetVideoSourceConfiguration(_trt__GetVideoSourceConfigurationResponse &GetVideoSourceConfigResponse,string ConfigurationToken);
  33. int GetVideoSourceConfigurationOptions(_trt__GetVideoSourceConfigurationOptionsResponse &GetVideoSourceConfigOptionsResponse, string ConfigurationToken,string profileToken);
  34. //Meta data functions
  35. int GetMetadataConfigurations(_trt__GetMetadataConfigurationsResponse &GetMetadataConfigurationsResponse);
  36. int GetMetadataConfiguration(_trt__GetMetadataConfigurationResponse &GetMetadataConfigurationResponse,string profileToken);
  37. int GetMetadataConfigurationOptions(_trt__GetMetadataConfigurationOptionsResponse &GetMetadataConfigurationOptionsResponse,string ConfigToken,string profileToken);
  38. private:
  39. OnvifClientDevice &m_Device;
  40. MediaBindingProxy mediaProxy;
  41. };
  42. #endif /* __ONVIF_CLIENT_MEDIA__ */