MjpegStreamReader constructor

MjpegStreamReader({
  1. required String uri,
  2. Client? client,
  3. Duration timeout = const Duration(seconds: 5),
})

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;