SessionEnabledStreamManager explaination

Good morning,

I am analyzing the DriverSample source code in order to understand the logic flow of operations made by the Platform.

The DemoDriver creates many BaseStream extended objects in order to manage sessions between device and registration server.

The following documentation (https://doc.developer.milestonesys.com/html/DriverFrameworkHelp/class_video_o_s_1_1_platform_1_1_driver_framework_1_1_managers_1_1_session_enabled_stream_manager.html#details) says "Use this to get the live stream from a device using a session mechanism" but don’t explain what the session mechanism is.

Could you please give me a reference in the documentation in order to understand what session should be?

Another question, sorry for bothering, is the following.

The BaseStreamManager implements the method GetLiveFrame as explained by the documentation. That’s ok. But I’ve still not understood what component of the Registration Server calls this method and how data and dataheader are passed to the registration server.

Please, could you explain the logical flow and post a link to the documentation in order to better understand?

Thanks in advance,

BR.

Hi Lorenzo,

Regarding your first question, the session is established between hardware and Driver Framework process and is used for communication.

Regarding your second question, GetLiveFrame method is called from Driver Framework process which has its own GetLiveFrame implementation. Then, Recording Server communicates with Driver Framework process.

Regarding your third question about data and dataheader, could you please elaborate on that?

The only documentation available on Driver Framework is Introduction to the MIP Driver Framework and MIP Driver Framework Documentation.

Hi Paulina,

many thanks for your answers.

With regard to my third question, I didn’t see the DemoStreamManager class where the method GetLiveFrame has the following prototype:

public override GetLiveFrameResult GetLiveFrame(Guid sessionId, TimeSpan timeout)

The returned object (GetLiveFrameResult) contains “data” and “dataheader” elements which contain what I didn’t figure out where to looking for.

Let’s me say sorry for that. Today I’ve understood much more about Driver Framework…but, of course, I’m quite sure I will post other questions in the next days, as soon as I’ll go through other parts of the source code. :slight_smile:

Thanks a lot,

BR