Flutter widget to show mjpeg stream from URL
This is a full dart implementation of MJPEG reader. No native involve.
Mjpeg( stream: 'http://192.168.1.24:8080/video.cgi', )
stream : URL of the MJPEG stream
width : force width
height : force height
error : error builder used when an error occurred
loading : loading builder used until first frame arrived
fit : boxFit of the image
[1.2.4] - 02/10/2019
- close http client when widget not on screen
[1.2.3] - 02/10/2019
- close http client when dispose
[1.2.2] - 20/09/2019
- fix some errors happening in some mjpeg stream
[1.2.1] - 18/09/2019
- add possibility to pass headers to the stream request
[1.2.0] - 16/09/2019
- add compatibility with flutter web by using http package
[1.1.1] - 10/07/2019
- update flutter_hook to be compatible with last stable
[1.1.0] - 18/06/2019
- add a play/pause state
[1.0.1] - 16/06/2019
- apply width and height on all states
[1.0.0] - 16/06/2019
- initial release.
A new Flutter project.
Getting Started #
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: flutter_mjpeg: ^1.2.5
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Nov 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.1
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.6
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Maintenance issues and suggestions
Support latest dependencies. (-10 points)
The version constraint in
pubspec.yaml does not support the latest published versions for 1 dependency (
|Dart SDK||>=2.1.0 <3.0.0|