abnormality in stopping the live video

Hello,

I have succeeded in getting data and displaying live images through the command:

<?xml version="1.0" encoding="UTF-8"?>

[number]

live

[number] (optional)

yes/no (optional)

<attributes [text]/> (optional)

. After a period of operation, I noticed that there was an abnormality in stopping the live video. I use the following command to request to stop live:

<?xml version="1.0" encoding="UTF-8"?>

[number]

stop

Result:

\xc0\xa0\x195y\xb8\x1f\xbd\x01@\x1d\x8b7\xf8W^[\x0b\xd6\xb8\xef\x01\x9ciwR\x7f~U\xfe\xa7\xfa\xd7T\m \xa9\x9b\xbb\x01|\xc1\xd4\xe4\x01CH\x866\xf9\x8fN\xc2\x99\x9e\xb4\xc9$\x08\x87\xe5\xedR\x80\xd4\x86\xe63 \xa0YZ\xae\xe30\x99\xdeD\x03\xa0\xda\x00\xcf\xf9\xf5\xabS\xcb\x1c\xd6\x96\xe6\x12H\x8a\xd1c|\x82>s+1\ xfa\xd5\tO\x93\xa7\xe9q\xf2\x0b\xc2\xf2\x13\x9cg,\x00\xfeU\xa1\xabJ\x16W\x8d\x1c\x1f.\x0bT\xc7\xa1\xd9\ x9c~\xb5\xa0\xc8"\‘\x92}*\xc27\xca9\xeaj\xb4D`\xff\x00\xbbS!\xfd\xda\xe0\xf7\xa8\x11ou;4\xceI8\xa5\ xdaq@\x10\xdc\x96d\x08\xad\xb4\xbb\x05\xcdZ\x8c\x11\x809\x00`T\x11\xa1{\x96`3\xe5&\xef\xc4\xf0*\xf5 \xb4,NH\xe0\x0c\x9f\xa5U\x80\x85\x89\x12\x10x\xc5mY\xf8\x92\xfa\xd7O\x16hSj\x82\x16B>e\x07\xd2\xb1\’\x9a9 \x9dZ5`6\x8c\xe4\x1eM01\xec\xae~\x8aj\x93v\xb0\x16\xbe\xd2\xf1\xcc\xb2!!\xd5\x83+w\x04U\xeb\xedz\xf3R\ x8dRwP\x8b\xce\xd4\x18\x04\xfa\x9a\xcbH\xa5\x9d\xf6\xc7\x1b\x96\xc6O\x150\xb0\xb9\x03\xe6\x88\x8a\x14\x9d\ xac\x04,\xe4\xe7\x9a\x8f5e\xac\xe5\x1dE4\xc0@\xe4R\x02\x1c\xfbQ\x9e)\xc5\x08\xa4\xc5H\x08\xcaYp\xad\xb4\xf5 \x07\x19\xa6\xd9\xdb\xbc+\xfb\xc9w’

It seems that the live results are still being sent even when I send a stop request.

By the way, I use MIP SDK version 2017 R2.

Do you have any suggestions on how to properly stop the live?

Thanks.

The idea here is multiple operations. Immediately after connecting, I proceed to view live information and video history through goto and next. Order of operations:

1. ConnectToImageServer

2. Send live statement and use while to get content and display

3. Send a stop command to stop live.

4. Use while with goto and next statements to see playback

I have reference TcpVideoViewer.

In there, you use the StopLive() function to change the _live and _streamLive flags:

_public void StopLive()_

 _{_

   _\_live = false;_

   _\_streamLive = null;_

 _}_

Combine with while (_live) in function Live() to stop the video. Command stop is not used here. I’m worried about repeatedly working with the same video and getting unexpected results.

I tested this by modifying the TcpVideoViewer into sending the Stop command and not stop receiving. I observe that I always get one image after the Stop command. I assume it is that way because the Image Server is in the process of sending the next live image when it receives the command to stop.

Does the response message contain “the content of the stop command” as below?

<?xml version="1.0" encoding="UTF-8"?>

       _<requestid>\[number\]</requestid>_

       _<methodname>stop</methodname>_

Consistently in my testing:

I send the Stop. I get an image. I get message response confirming the Stop.

I guess more interestingly (than my first testing and reply) I get a image after sending Stop, I do not get an image after the Stop confirmation by the Image Server protocol.