Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

How to use pullMetadataPackets

Answered

Comments

2 comments

  • Andrey Terentyev
    • Network Optix team

    Hello,

    The pullMetadataPackets() is a virtual method the ConsumingDeviceAgent class.

    The method should be implemented in a plugin by a developer.

    This method is called by the Server. Here is a quotation from the documentation for the Metadata SDK. See the docs folder.

     /**
         * Override to send the newly constructed metadata packets to Server - add the packets to the
         * provided list. Called after pushVideoFrame() to retrieve any metadata packets available to
         * the moment (not necessarily referring to that frame). As an alternative, send metadata to
         * Server by calling pushMetadataPacket() instead of implementing this method.
         */
        virtual bool pullMetadataPackets(std::vector<IMetadataPacket*>* metadataPackets);

     

    1. pullMetadataPackets is RTSP metadata right?

    No, it's not. It's not a data, it's a method to be implemented in a plugin by a developer.

    2. If "pullMetadataPackets" is RTSP's metadata, how can I get the data? (i.e. metadataPackets->data?)

    pullMetadataPackets() is not a RTSP metadata. It's a method. This method should generate metadata and populate an array (a vector) of instances of the IMetadataPacket* class with that metadata.

    3. If "pullMetadataPackets" is not RTSP metadata, should we receive AI analysis data through socket communication or ONVIF? (AI analysis data is metadata analyzed by the IP camera.)

    The pullMetadataPackets() is not a metadata, it's a method to be implemented in a plugin by a developer.

    I'm afraid I don't understand your question. Could you please give more details on your objective? What are you trying to achieve? What is the expected result?

    0
  • Permanently deleted user

    Hi. Thanks for the reply.

    We misunderstood "pullMetadataPackets" and SDK.

    We are understanding "pullMetadataPackets" as a callback function from the SDK. And I decided to redesign the implementation direction by checking the above answers and SDK.

    Thanks for the reply.

     

    0

Please sign in to leave a comment.