nx_video_source_sdk
1.0
Video Source SDK
|
Public Member Functions | |
virtual void * | queryInterface (const nxpl::NX_GUID &interfaceID) override |
Cast to type, specified by interfaceID. More... | |
virtual void | getVendorName (char *buf) const override |
Returns utf-8 camera vendor name. More... | |
virtual int | findCameras (nxcip::CameraInfo *cameras, const char *serverURL) override |
Vendor-specific camera search method. Returns list of found cameras. More... | |
virtual int | checkHostAddress (nxcip::CameraInfo *cameras, const char *address, const char *login, const char *password) override |
Check host for camera presence. More... | |
virtual int | fromMDNSData (const char *discoveredAddress, const unsigned char *mdnsResponsePacket, int mdnsResponsePacketSize, nxcip::CameraInfo *cameraInfo) override |
MDNS camera search method. More... | |
virtual int | fromUpnpData (const char *upnpXMLData, int upnpXMLDataSize, nxcip::CameraInfo *cameraInfo) override |
UPNP camera search method. More... | |
virtual nxcip::BaseCameraManager * | createCameraManager (const nxcip::CameraInfo &info) override |
Instantiates camera manager instance based on info. More... | |
virtual int | getReservedModelList (char **modelList, int *count) override |
Get model names, reserved by the plugin. More... | |
![]() | |
virtual int | addRef () const override |
virtual int | releaseRef () const override |
Static Public Member Functions | |
static nxpt::CommonRefManager * | refManager () |
Additional Inherited Members | |
![]() | |
DefaultRefCounter (nxpt::CommonRefManager *refManager) | |
![]() | |
nxpt::CommonRefManager | m_refManager |
|
overridevirtual |
Check host for camera presence.
Plugin should investigate address for supported camera presence and fill cameras array with found camera(s) information This method is used to add camera with known ip (e.g., if multicast is disabled in network)
[out] | cameras | Array of size CAMERA_INFO_ARRAY_SIZE |
[in] | address | String "host:port", port is optional |
[in] | login | Login to access address. If NULL, default login should be used |
[in] | password | Password to access address. If NULL, default password should be used |
Implements nxcip::CameraDiscoveryManager.
|
overridevirtual |
Instantiates camera manager instance based on info.
Implements nxcip::CameraDiscoveryManager.
|
overridevirtual |
Vendor-specific camera search method. Returns list of found cameras.
It is recommended that this method works in asynchronous mode (only returning list of already found cameras). This method is called periodically.
[out] | cameras | Array of size CAMERA_INFO_ARRAY_SIZE. Implementation fills this array with found camera(s) information |
[in] | serverURL | Server URL. If camera do not have own URL it should use this one |
Implements nxcip::CameraDiscoveryManager.
|
overridevirtual |
MDNS camera search method.
Mediaserver calls this method when it has found unknown MDNS host.
If non-zero value is returned, cameraInfo MUST be filled by this method (it will be used later in call to nxcip::CameraDiscoveryManager::createCameraManager).
[in] | discoveryAddress | Source address of mdnsResponsePacket (for ipv4 it is ip-address) |
[in] | mdnsResponsePacket | Received MDNS packet |
[in] | mdnsResponsePacketSize | Size of mdnsResponsePacket in bytes |
[out] | cameraInfo | If MDNS host is recognized, this structure is filled with camera parameters |
Implements nxcip::CameraDiscoveryManager.
|
overridevirtual |
UPNP camera search method.
Mediaserver calls this method when it has found unknown UPNP device.
If non-zero value is returned, cameraInfo MUST be filled by this method (it will be used later in call to nxcip::CameraDiscoveryManager::createCameraManager).
[in] | upnpXMLData | Contains upnp data as specified in [UPnP Device Architecture 1.1, section 2.3] |
[in] | upnpXMLDataSize | Size of upnpXMLData in bytes |
[out] | cameraInfo | If upnp host is recognized, this structure is filled with camera data |
Implements nxcip::CameraDiscoveryManager.
|
overridevirtual |
Get model names, reserved by the plugin.
For example, let camera support ONVIF, and plugin uses native API. In this case, plugin MUST implement this function and reserve model name, provided by onvif implementation. Also, CameraDiscoveryManager::getVendorName MUST be same as ONVIF vendor name
[out] | modelList | Array of char* buffers of size MAX_MODEL_NAME_SIZE where camera model names will be written. May be NULL. |
[in,out] | count | A pointer to a variable that specifies the size of array pointed to by the modelList parameter. When the function returns, this variable contains the number of model names copied to modelList. If the buffer specified by modelList parameter is not large enough to hold the data, the function returns NX_MORE_DATA and stores the required buffer size in the variable pointed to by count. In this case, the contents of the modelList array are undefined. |
Implements nxcip::CameraDiscoveryManager.
|
overridevirtual |
Returns utf-8 camera vendor name.
[out] | buf | Buffer of MAX_TEXT_LEN size |
Implements nxcip::CameraDiscoveryManager.
|
overridevirtual |
Cast to type, specified by interfaceID.
If pointer cannot be cast, NULL MUST be returned
Implements nxpl::PluginInterface.