When I tried to integrate mincap to my project,I met a problem that when minicap works on a still frame,the display image often gets stuck. I tried to figure it out.By analyzing the frame data,I found that the frame length figured out from the frame head according to the protocal may be very big and the frames we got later are all singular frames,which results in the image stucking when device works on a still frame.
I tried to avoid this problem by monitoring the frame data and when the wrong frame cames,discard that frame and try to connect socket again to get new frames.