Click or drag to resize
Accord.NET (logo)

MJPEGStreamHttpUserAgent Property

User agent to specify in HTTP request header.

Namespace:  Accord.Video
Assembly:  Accord.Video (in Accord.Video.dll) Version: 3.8.0
Syntax
public string HttpUserAgent { get; set; }
Request Example View Source

Property Value

Type: String
Remarks

Some IP cameras check what is the requesting user agent and depending on it they provide video in different formats or do not provide it at all. The property sets the value of user agent string, which is sent to camera in request header.

Default value is set to "Mozilla/5.0". If the value is set to , the user agent string is not sent in request header.

See Also