FLUTTER ECOSYSTEM

mylisabox/flutter_mjpeg

用於從 URL 顯示 MJPEG 流的 Flutter 小部件

flutter_mjpeg 專案封面
Stars
34
Forks
31
最近推送(UTC)
2024年5月14日
專案狀態
未封存
L.I.S.A. GitHub avatar
GITHUB Organization

L.I.S.A. ↗

L.I.S.A. is an home automation system

語言DartRubyObjective-CJava

此儲存庫發佈的套件

使用的依賴

依賴清單 5 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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.