Force using of basic authentication when connecting to the video source.

Namespace:  AForge.Video
Assembly:  AForge.Video (in AForge.Video.dll) Version: (


public bool ForceBasicAuthentication { get; set; }


For some IP cameras (TrendNET IP cameras, for example) using standard .NET's authentication via credentials does not seem to be working (seems like camera does not request for authentication, but expects corresponding headers to be present on connection request). So this property allows to force basic authentication by adding required HTTP headers when request is sent.

Default value is set to falseFalsefalsefalse (False in Visual Basic).

See Also