Skip to content
pubscout

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

$ flutter pub add flutter_mjpeg
Source repository

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.

Works with

Packages commonly used together with flutter_mjpeg: ones it builds on, ones built on it, and its own family.