mjpeg_view 1.0.1 copy "mjpeg_view: ^1.0.1" to clipboard
mjpeg_view: ^1.0.1 copied to clipboard

Provide a viewer to play motion jpeg as a Flutter widget.

mjpeg_view #

Provide a viewer to play motion jpeg as a Flutter widget.

Usage #

MjpegView(
  uri: 'http://192.168.0.1:8000/video.mjpg',
)

There is a repository that compiles links to publicly available motion jpegs. These sources are good to try as well.(Be careful not to overload them.) https://github.com/AzwadFawadHasan/Public_MotionJPEG_Sources?tab=readme-ov-file

API #

Parameter Required Description
uri ⚪︎ uri for mjepg stream
fit boxFit of the image
width width of the image
height height of the image
timeout HTTP request timeout time. default is 5 seconds.
client HTTP client used to retrieve mjpeg stream
fps number of frames updated per second
loadingWidget widget to display while loading
onError callback on error
errorWidget widgetbuilder to build a widget to display when an error occurs
doneWidget widgetbuilder to build a widget to stream terminated

License #

MIT License

Credits #

This library is inspired by the following repository

Thank you for your great work<3

2
likes
160
points
238
downloads

Publisher

unverified uploader

Weekly Downloads

Provide a viewer to play motion jpeg as a Flutter widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_hooks, http, rxdart

More

Packages that depend on mjpeg_view