This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Description
Related to adding support for .NET Core #318 and MJPEGStream issue #699
MJPEGStream class throws an InvalidOperationException when the WorkerThread attempts to set ReadTimeout on response stream containing the message:
Timeouts are not supported on this stream.
This only concerns .NET Core 2.0 and works as expected in full .NET Framework.
The source of the exception is here, the property is seemingly not supported in .NET Core 2.0.
The following fails with described exception:
MJPEGStream stream = new MJPEGStream(source)
{
Login = ...,
Password = ...,
SeparateConnectionGroup = false
};
stream.NewFrame += OnFrameReceived;
stream.VideoSourceError += OnSourceError;
stream.Start();