搜尋套件、儲存庫與 APP 分類

套件詳情v2.0.4

flutter_mjpeg

用於從 URL 顯示 MJPEG 流的 Flutter 小部件,主要用於 IP 攝影機,在螢幕外時自動停止

AndroidiOSmacOSWindowsLinux
近 30 天下載
994
喜歡數
38
Pub 分數
140

安裝套件

flutter pub add flutter_mjpeg

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 小部件,可從 URL 顯示 MJPEG 影片串流,非常適合 IP 電腦攝影機畫面。當小部件移出螢幕時,會自動停止播放以節省資源。專為跨多個平台(包括 Android、iOS、macOS、Windows 和 Linux)的即時影片觀看而設計。該套件可輕鬆整合至 Flutter 應用程式中,設定簡單,適用於監控、即時監測和遠端觀看應用。

適用情境

  • 即時IP攝像頭監控
  • 應用中的即時影片串流
  • 遠端監控儀表板
  • 物聯網應用中的影片串流整合
  • 按需流媒體觀看

主要特色

  • 當螢幕外自動暫停
  • 支援從URL取得MJPEG串流
  • 跨平台相容性
  • 輕便高效
  • 與 Flutter 小部件的簡單整合

適合對象

  • 開發監控應用程式的開發者
  • 物聯網應用創建者
  • 需要即時視頻串流的應用程式
  • 移動和桌面視頻監控工具
  • 使用IP攝影機的專案

使用建議

  • 需要穩定的網絡連接
  • 可能消耗大量帶寬
  • 不適用於高延遲環境
  • 僅限 MJPEG 格式
  • 性能取決於設備功能

原始 README

以下為關聯原始碼儲存庫的 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.

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。