सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
rtmp_broadcaster पैकेज फ्लटर कैमरा प्लगइन को एंड्रॉइड और आईओएस डिवाइस पर रीयल-टाइम वीडियो स्ट्रीमिंग के लिए बढ़ाता है। यह डेवलपर्स को मोबाइल डिवाइस से रीयल-टाइम वीडियो को आरटीएमपी सर्वर पर प्रसारित करने की अनुमति देता है, जो लाइव इवेंट्स, वीडियो कॉन्फ्रेंसिंग या सोशल मीडिया स्ट्रीमिंग के लिए आदर्श है। पैकेज मौजूदा कैमरा कार्यक्षमता के साथ बिना किसी दिक्कत के एकीकृत है और सामान्य आरटीएमपी कॉन्फ़िगरेशन का समर्थन करता है। प्रदर्शन और सरलता के लिए बनाया गया, यह एक सीधा एपीआई प्रदान करता है जो स्ट्रीम शुरू और बंद करने के लिए उपयोग किया जा सकता है।
उपयोग
लाइव इवेंट प्रसारण
सोशल मीडिया लाइव स्ट्रीमिंग
दूरस्थ वीडियो कॉन्फ्रेंसिंग
आईओटी उपकरण वीडियो प्रवाह
रियल-टाइम मॉनिटरिंग
मुख्य विशेषताएँ
RTMP स्ट्रीमिंग समर्थन
एंड्रॉइड और आईओएस सुसंगतता
कैमरा एकीकरण
सरल स्टार्ट/स्टॉप API
कम लेटेंसी स्ट्रीमिंग
इनके लिए उपयुक्त
लाइव वीडियो ऐप्स बना रहे डेवलपर्स
RTMP आउटपुट की आवश्यकता वाले मोबाइल ऐप निर्माता
रियल-टाइम संचार प्लेटफॉर्म
मोबाइल स्ट्रीमिंग का उपयोग करने वाले कंटेंट निर्माता
विचार योग्य बातें
RTMP सर्वर सेटअप की आवश्यकता है
नेटवर्क स्थिरता स्ट्रीम की गुणवत्ता को प्रभावित करती है
Android और iOS पर सीमित
अतिरिक्त अनुमतियों की आवश्यकता हो सकती है
नीचे के कैमरा प्लगइन पर निर्भर करता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Flutter RTMP broadcaster
[!IMPORTANT]
Development of version 3.0 is being restarted. Expect breaking changes to the API and Android/iOS build configuration while this work is in progress.
This plugin extends the Flutter camera plugin with RTMP streaming support for Android and iOS. Web is not supported.
It follows the same API structure as the camera plugin and adds a startStreaming(url) method to initiate real-time streaming to an RTMP endpoint.
Starts streaming to an RTMP endpoint while simultaneously recording to a local file
pauseVideoStreaming()
Pauses the active stream
resumeVideoStreaming()
Resumes a paused stream
stopEverything()
Stops any active streaming and recording
Getting started
iOS
Add the following keys to ios/Runner/Info.plist:
<key>NSCameraUsageDescription</key><string>App requires access to the camera for live streaming feature.</string><key>NSMicrophoneUsageDescription</key><string>App requires access to the microphone for live streaming feature.</string>
Android
Set minSdkVersion to 21 or higher in android/app/build.gradle.
Example
The example app demonstrates camera preview, snapshot capture, video recording, and RTMP streaming. Clone the repository and run the app on an Android or iOS device to try it.
A local RTMP test server is available under server/, set up via Docker Compose, for testing without a public endpoint.
Troubleshooting & issues
Report bugs or unexpected behavior via GitHub issues. Availability for support is limited; for prioritized or paid support, contact [info@emiliodallatorre.it](mailto:info@emiliodallatorre.it).
Contributing
Fork the repository and create a branch for your change
Make the change
Ensure the code is formatted and tested
Submit a pull request describing the change
Support development
If this plugin is useful to you, consider supporting its development via Buy Me a Coffee.