MjpegStreamReader constructor
MjpegStreamReader({})
Constructor
uri specifies the motion jpeg(mjpeg) stream url.
client specifies the HTTP client. If not specified, it is generated internally.
timeout specifies the HTTP connection timeout.
Implementation
MjpegStreamReader({
required this.uri,
Client? client,
this.timeout = const Duration(seconds: 5),
}) : _client = client ?? Client(),
_isInnerClient = client == null;