rtmp_broadcaster
Android 및 iOS 장치에서 RTMP를 통해 실시간 비디오 스트리밍을 가능하게 하는 Flutter 카메라 플러그인의 확장입니다.
Android 및 iOS용 RTMP 라이브 스트리밍 지원을 갖춘 Flutter 카메라 플러그인입니다.
{"sdk":"flutter"}^0.3.1^2.0.13^2.9.2^0.23.2{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
[!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.
Underlying implementation:
The controller extends the camera plugin's API with the following methods:
| Function | Description |
|---|---|
startVideoStreaming(String url, {int bitrate = 1200 * 1024, bool? androidUseOpenGL}) |
Starts streaming to an RTMP endpoint |
startVideoRecordingAndStreaming(String filePath, String url, {int bitrate = 1200 * 1024, bool? androidUseOpenGL}) |
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 |
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>
Set minSdkVersion to 21 or higher in android/app/build.gradle.
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.
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).
If this plugin is useful to you, consider supporting its development via Buy Me a Coffee.