Menu Close

How to capture each video frame decoded in real time

< Back

Query the IDatasteadRTSPSampleCallback interface, and invoke DatasteadRTSPSampleCallback.SetVideoRGBSampleCallback (CallbackFunction).

The callback function prototype is:
typedef void (__stdcall *DatasteadRTSP_VideoSampleCallback) (void *Sender, __int64 SampleTime_Absolute, __int64 SampleTime_Relative, BYTE *Buffer, int BufferSize, int VideoWidth, int VideoHeight, int BitCount, int Stride);

This callback will occur for every frame that will be decoded.