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.