How to mirror a recording stream to external server

I need to be able to push a recording stream from my Recording Server to an external system (Linux) to perform the analytics. From there I need to push back metadata to XProtect Smart Client to create a video overlay (i.e. bounding boxes of objects/people) to display on live and recorded video. What are the best practices for performing these actions?

I spent some time exploring the MIP SDK Application Catalog, and I believe the application integration use case that is most relevant to me is the “Analytics integration with own server and video from image server”. The catalog is a big help in understanding that what I want to do is at least supported, but how am I supposed to use this catalog otherwise. Are there any links to code samples or anything else to get me started?

The XProtect recording server never push or stream data, the clients use the Image Server protocol (or components working on top of the Image Server protocol).

The TCP Video Viewer is a sample working on the protocol.. https://doc.developer.milestonesys.com/html/index.html?base=samples/tcpviewer_sample.html&tree=tree_3.html