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

MJPEGStream throws InvalidOperationException in .NET Core 2.0 #700

@stigvoss

Description

@stigvoss

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions