rtmp_broadcaster
3.1.1, released 3 months ago by emiliodallatorre.it
Extends the Flutter camera plugin to stream live video over RTMP on Android and iOS.
What it does
Extends the official Flutter camera plugin with methods to stream live video directly to an RTMP endpoint. It supports features like starting/pausing streams, simultaneous video recording, and retrieving stream statistics.
AI-written summary of version 3.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to build a live streaming application that pushes video via RTMP.
- You are already using the camera plugin and want RTMP broadcasting without changing your camera UI flow.
Skip it when
- You need web support (the package explicitly states web is not supported).
- You require an alternative protocol like WebRTC or HLS without RTMP broadcasting.
Strengths
- Familiar API mirroring the standard Flutter camera plugin.
- Supports simultaneous recording to a local file while streaming.
- Handles complex native RTMP client implementations under the hood.
Weaknesses
- Web is not supported.
- Under active development with potential breaking changes between versions.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 2
Requires adding NSCameraUsageDescription and NSMicrophoneUsageDescription keys to Info.plist on iOS, and setting minSdkVersion to 21 or higher in Android build.gradle.
final controller = CameraController(cameras[0], ResolutionPreset.medium);
await controller.initialize();
await controller.startVideoStreaming('rtmp://your-endpoint/live/stream_key');Alternatives
Packages that do the same job and could replace rtmp_broadcaster.
- camera_android
Android implementation of the camera plugin using the Camera2 library.
85Compare - camera_avfoundation
iOS implementation of the Flutter camera plugin providing preview, photo, and video capture.
84Compare - camera_android_camerax
Android camera implementation using CameraX library
89Compare - camera
Flutter plugin to preview, capture photos/video and stream camera images.
95Compare
Works with
Packages commonly used together with rtmp_broadcaster: ones it builds on, ones built on it, and its own family.