Receiving video using JPEGLiveSource

I want to use JPEGLiveSource to receive video as shown below.

m_jpegLiveSource.LiveModeStart = true;
m_jpegLiveSource.KeyFramesOnly = false;
m_jpegLiveSource.Init();
m_jpegLiveSource.LiveContentEvent += JpegLiveSource_LiveNotificationEvent;
m_jpegLiveSource.LiveStatusEvent += JpegLiveStatus_NotificationEvent;

However, the video receive event handler is not called, the following error log is output, and the following status flag value is output from JpegLiveStatus_NotificationEvent ().

MIP: Error: JPEGLiveSource:PollThread (): The input string is malformed.
[JpegLiveStatus_NotificationEvent] StatusFlags.Motion
[pegLiveStatus_NotificationEvent] StatusFlags.Notification
[JpegLiveStatus_NotificationEvent] StatusFlags.CameraConnectionLost
[JpegLiveStatus_NotificationEvent] StatusFlags.Recording
[JpegLiveStatus_NotificationEvent] StatusFlags.LiveFeed
[JpegLiveStatus_NotificationEvent] StatusFlags.ClientLiveStopped
[JpegLiveStatus_NotificationEvent] StatusFlags.DatabaseFail
[JpegLiveStatus_NotificationEvent] StatusFlags.DiskFull

What is wrong?

If you run the MediaLIveViewer sample unmodified does it work for you?

If it does, I think the first area I would debug is if the camera item is correct and correctly used in the JPEGLiveSource contructor..

Yes. The MediaLiveViewer sample works well.

I used the JPEGLiveSource constructor as shown below. Of course, I’ve found that the value of m_LiveCameraItem is normal. (Camera name, FQID, etc.)

m_jpegLiveSource = new JPEGLiveSource (m_LiveCameraItem);

m_jpegLiveSource = new JPEGLiveSource (m_LiveCameraItem);

However, the above error log and status values are repeatedly output.

Is there any possibility that this series of commands from other worker threads will cause problems?

What’s the problem?

Please outline what is different in your implementation compared to the sample.