Defining a stream URL in demo driver ?

I integrated a PTZ protocol in demo driver, installed my PTZ demo camera with the management client and PTZ works fine.

But is there a documentation how to define the stream from an encoder, which belongs to the camera I want to control ?

With the 2 defined streams in demo driver I only found these 2 Guids:

public static readonly Guid Stream1RefId = new Guid(“CB618238-7503-49D2-A8F8-6DB8A8BFE4FB”);

   public static readonly Guid Stream2RefId = new Guid("F5362140-3837-49F5-9AC7-BA1859AD4611");

But I didn’t find out, where or how to define these streams…

Hi Thomas,

If you look in the DemoDriver project, in the DriverFramework folder there is a number of managers. Defining streams is done in the ConfigurationManager, specifically the driver framework expects them to be reported by the BuildDevices() method. In the Demo Driver, this method calls the BuildCameraStreams() method to construct the streams.

I hope this helps.

BR,

Simon

Hi Simon,

thank you very much for the hints. I looked in the constants class, but didn’t find a definition for the stream Uri. This I found only in the DemoConnectionManager where it bulitls the proxy.

Do I have to implement a proxy in my driver and give the frames from the camera to xprotect or is just given the stream information to xprotect and they take the stream directly ? I hope these are not to much questiones, but I don’t wanna go a wrong way and I didn’t find too much information to this, as the demo driver is very new. Thanks and best regards Tom

Hi Tom,

In order to deliver live frame data to XProtect, your driver must implement its own version of the ConnectionManager, which is responsible for communicating with whatever device you have (through a proxy, usually) and passing it on. You need to implement your own stream session, as seen in the classes in the StreamSessions folder of the demo driver project. You will also need to implement a StreamManager, like the demo stream manager.

I hope this helps you.