पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv1.0.1

mjpeg_stream

HTTP के ओवर एक MJPEG (Motion JPEG) वीडियो स्ट्रीमिंग के लिए एक Flutter पैकेज

AndroidiOSmacOSWindowsLinux
30-दिन डाउनलोड
112
लाइक
3
Pub अंक
125

पैकेज इंस्टॉल करें

flutter pub add mjpeg_stream

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

mjpeg_stream पैकेज फ्लटर एप्लिकेशन को HTTP के माध्यम से MJPEG (मोशन जेपीजी) वीडियो को स्ट्रीम करने की अनुमति देता है, जिससे IP कैमरों या वेब सर्वर से रियल-टाइम वीडियो प्ले बैक के लिए हल्का समाधान मिलता है। यह एंड्रॉइड, आईओएस, मैकओएस, विंडोज और लिनक्स सहित कई प्लेटफॉर्म को सपोर्ट करता है, जिससे यह क्रॉस-प्लेटफॉर्म वीडियो मॉनिटरिंग एप्लिकेशन के लिए आदर्श है। पैकेज कम लेटेंसी के साथ एचटीटीपी स्ट्रीमिंग को कुशलता से हैंडल करता है, जिससे डेवलपर्स अपने यूआई में लाइव वीडियो फीड को सीधे एम्बेड कर सकते हैं। यह निगरानी, रोबोटिक्स और आईओटी एप्लिकेशन में विशेष रूप से उपयोगी है जहां निरंतर वीडियो स्ट्रीम की आवश्यकता होती है।

उपयोग

  • लाइव कैमरा मॉनिटरिंग
  • आईओटी उपकरण वीडियो फीड इंटीग्रेशन
  • रोबोटिक्स विजन सिस्टम
  • निगरानी डैशबोर्ड
  • दूरस्थ निदान

मुख्य विशेषताएँ

  • HTTP के माध्यम से MJPEG का समर्थन करता है
  • प्लेटफॉर्म के अनुकूलता
  • कम लेटेंसी स्ट्रीमिंग
  • Flutter विजेट्स के साथ सरल एकीकरण
  • रियल-टाइम वीडियो प्लेबैक

इनके लिए उपयुक्त

  • निगरानी एप्लिकेशन बना रहे विकासक
  • आईओटी प्रोजेक्ट निर्माता
  • रोबोटिक्स इंजीनियर्स
  • लाइव वीडियो फीड की आवश्यकता वाले ऐप्स
  • प्लेटफॉर्म-समन्वय वीडियो समाधान

विचार योग्य बातें

  • स्थिर नेटवर्क कनेक्शन की आवश्यकता है
  • MJPEG प्रारूप में सीमित
  • कम बैंडविड्थ के लिए अतिरिक्त बफरिंग की आवश्यकता हो सकती है
  • उच्च-रिज़ॉल्यूशन वीडियो स्ट्रीम के लिए उपयुक्त नहीं
  • सर्वर-पक्ष MJPEG स्ट्रीमिंग समर्थन पर निर्भर करता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

📸 MJPEG Stream Flutter Package

mjpegLogo1

Welcome to MJPEG Stream Flutter Package! 🚀 This package allows you to stream MJPEG video in your Flutter application easily. Perfect for real-time camera feeds and IP camera streaming. 📷🎥

https://github.com/user-attachments/assets/c908688e-3cd0-45bc-a21b-359df1eac6a5

screen4

screen3

🌟 Features

  • 📡 Live MJPEG streaming
  • 🎨 Customizable width, height, and fit
  • ⚡ Optimized for performance
  • 🚀 Easy to integrate
  • 🛠 Error handling and reconnection support
  • 📜 Built-in logging for debugging

📦 Installation

Run this command:

With Flutter:

flutter pub add mjpeg_stream

Add this package to your pubspec.yaml:

dependencies:
  mjpeg_stream: latest_version

OR

mjpeg_stream:
    git:  
      url: https://github.com/MohammedShamseerPV/MJPEG-Stream.git
      ref: main  # Optional: specify the branch (default is 'main')

Then, run:

flutter pub get

🛠 Usage

Import the package:

import 'package:mjpeg_stream/mjpeg_stream.dart';
Example Usage 🎬
import 'package:flutter/material.dart';
import 'package:mjpeg_stream/mjpeg_stream.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'MJPEG Stream Example',
      home: Scaffold(
        appBar: AppBar(title: Text("MJPEG Stream")),
        body: Center(
          child: MJPEGStreamScreen(
            streamUrl: "http://your-ip-camera-url/video.mjpg",
            width: 300.0,
            height: 200.0,
            fit: BoxFit.cover,
          ),
        ),
      ),
    );
  }
}

📚 Use this Package as a Library

📥 Depend on it

Run this command:

With Flutter:

flutter pub add mjpeg_stream

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependedfdfdfncies:
  mjpeg_stream: ^latest_version
dependencies:
  mjpeg_stream: ^latest_version

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

📌 Import it

Now in your Dart code, you can use:

import 'package:mjpeg_stream/mjpeg_stream.dart';

⚙️ API Reference

Property Type Description
streamUrl String The URL of the MJPEG stream.
fit BoxFit Defines how the image should be inscribed into the widget. Default: BoxFit.cover.
width double Width of the stream display. Default: double.infinity.
height double Height of the stream display. Default: 300.0.
timeout Duration Timeout for the network request. Default: 5 seconds.
enableLogging bool Enables logging for debugging. Default: false.

🚀 How It Works

  1. The package establishes an HTTP connection to the MJPEG stream.
  2. It processes the received image frames in real-time.
  3. It updates the UI efficiently without performance issues.
  4. It handles errors and reconnection automatically. ⚡
  5. It provides logging for debugging purposes. 📜

🛠 Troubleshooting

  • ❗ Stream Not Loading? Check if your URL is correct and accessible.
  • 🔴 Slow Performance? Optimize the network or use a lower resolution stream.
  • 💥 Crashes? Ensure the stream URL is reachable and error handling is implemented.
  • 📝 Need Debugging? Enable logging by setting enableLogging: true.

🎯 Future Enhancements

  • ✅ Add support for pause/play functionality
  • ✅ Improve error handling
  • ✅ Optimize performance for low-latency streaming
  • ✅ Enhance logging and debugging features

📝 License

This package is open-source under the MIT License. Feel free to contribute! 😊

👨‍💻 Happy Coding! 🚀


🔗 Connect with Me


💰 Support My Work

If you found this package useful, consider supporting my work:

qr-code-phonePay

Uploading qr-code-phonePay.png…

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।