flutter_mjpeg 2.0.3 icon indicating copy to clipboard operation
flutter_mjpeg: ^2.0.3 copied to clipboard

Flutter widget to show mjpeg stream from URL, mainly used by ip camera, stop itself when not on screen

flutter_mjpeg #

Flutter widget to show mjpeg stream from URL

This is a full dart implementation of MJPEG reader. No native involve.

Usage #

Mjpeg(
  stream: 'http://192.168.1.24:8080/video.cgi',
)

API #

The Mjpeg widget expects a stream parameter with the HTTP URL of the MJPEG stream and can handle the following additional parameters:

ParameterDescription
isLiveWhether or not the stream should be loaded continuously
timeoutHTTP Timeout when fetching the MJPEG stream
widthForce width
heightForce height
errorError builder used when an error occurred
loadingLoading builder used until first frame arrived
fitThe boxFit of the image
headersA map of headers to send in the HTTP request
httpClientUsed to give a custom httpClient, for example DigestAuthClient() from http_auth. Defaults to Client() from http.
preprocessorUsed to apply preprocessing to each frame of the MJPEG stream before it is sent to Image for rendering. Defaults to MjpegPreprocessor(), which passes each frame without modification.
26
likes
120
pub points
85%
popularity

Publisher

verified publisher iconmylisabox.com

Flutter widget to show mjpeg stream from URL, mainly used by ip camera, stop itself when not on screen

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-2-Clause (LICENSE)

Dependencies

flutter, flutter_hooks, http, visibility_detector

More

Packages that depend on flutter_mjpeg