Search packages, repositories and app categories

Package detailsv2.0.4

flutter_mjpeg

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

AndroidiOSmacOSWindowsLinux
30-day downloads
994
Likes
38
Pub points
140

Install package

flutter pub add flutter_mjpeg

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter widget that displays MJPEG video streams from a URL, ideal for IP camera feeds. It automatically stops playback when the widget is off-screen to conserve resources. Designed for real-time video viewing across multiple platforms including Android, iOS, macOS, Windows, and Linux. The package integrates seamlessly into Flutter apps with minimal setup, making it suitable for surveillance, live monitoring, and remote viewing applications.

Use cases

  • Live IP camera monitoring
  • Real-time video streaming in apps
  • Remote surveillance dashboards
  • Video feed integration in IoT apps
  • On-demand stream viewing

Key features

  • Automatic pause when off-screen
  • Supports MJPEG streams from URLs
  • Cross-platform compatibility
  • Lightweight and efficient
  • Simple integration with Flutter widgets

Suitable for

  • Developers building surveillance apps
  • IoT application creators
  • Apps requiring live video feeds
  • Mobile and desktop video monitoring tools
  • Projects using IP cameras

Considerations

  • Requires stable network connection
  • May consume significant bandwidth
  • Not suitable for high-latency environments
  • Limited to MJPEG format only
  • Performance depends on device capabilities

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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:

Parameter Description
isLive Whether or not the stream should be loaded continuously
timeout HTTP Timeout when fetching 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 The boxFit of the image
headers A map of headers to send in the HTTP request
httpClient Used to give a custom httpClient, for example DigestAuthClient() from http_auth. Defaults to Client() from http.
preprocessor Used 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.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.