flutter_mjpeg
2.0.4, released 3 years ago by mylisabox.com
Flutter widget to show MJPEG stream from URL, stopping automatically when off screen
What it does
Provides a full Dart implementation of an MJPEG reader widget for Flutter. It connects to an HTTP stream URL to render camera video frames, handling errors, loading states, custom headers, and stopping the connection when the widget is not on screen.
AI-written summary of version 2.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to stream video from an IP camera using the MJPEG format.
- You want a widget that automatically stops streaming and closes the HTTP client when not visible on screen.
Skip it when
- You are playing standard video formats like MP4 or H.264 streams.
- You require advanced media player features like seeking, audio tracks, or non-HTTP streaming protocols.
Strengths
- Pure Dart implementation with no native code required.
- Automatically manages network resources by stopping when not on screen.
- Supports custom HTTP clients, headers, and frame preprocessors.
Weaknesses
- Limited to MJPEG streams.
- Lacks advanced video controls and features found in dedicated media player libraries.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
No native setup required as it is a pure Dart implementation.
Mjpeg(
stream: 'http://192.168.1.24:8080/video.cgi',
)Alternatives
Packages that do the same job and could replace flutter_mjpeg.
- flutter_callkit_incoming
Show native incoming and outgoing call screens with Callkit on iOS and custom UI on Android.
83Compare - connectycube_flutter_call_kit
Flutter plugin for displaying incoming call screens when the app is in the background or terminated.
80Compare - flutter_screen_recording
Record device screen on Android, iOS, and web with optional audio.
71Compare - audio_video_progress_bar
A progress bar widget to show or change the position of an audio or video stream.
50Compare
Works with
Packages commonly used together with flutter_mjpeg: ones it builds on, ones built on it, and its own family.