パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.1.1

rtmp_broadcaster

Android および iOS デバイス上で RTMP を介したライブ動画ストリーミングを可能にする Flutter カメラプラグインの拡張機能です。

AndroidiOS
30日間ダウンロード
497
いいね数
40
Pub ポイント
140

パッケージをインストール

flutter pub add rtmp_broadcaster

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

rtmp_broadcaster パッケージは、Flutter のカメラプラグインを拡張し、Android および iOS デバイス上で RTMP を介したリアルタイム動画ストリーミングを可能にします。開発者はモバイルデバイスから直接 RTMP サーバーへライブビデオを配信でき、ライブイベントやビデオ会議、ソーシャルメディアのストリーミングに最適です。既存のカメラ機能とシームレスに統合され、一般的な RTMP 設定をサポートしています。パフォーマンスとシンプルさを重視して構築されており、ストリームの開始と停止に向けた直感的な API を提供します。

用途

  • ライブイベントの配信
  • ソーシャルメディアライブストリーミング
  • リモートビデオ会議
  • IoTデバイスの動画ストリーム
  • リアルタイムモニタリング

主な機能

  • RTMPストリーミングサポート
  • Android および iOS との互換性
  • カメラ統合
  • シンプルなスタート/ストップ API
  • 低遅延ストリーミング

適している対象

  • ライブ動画アプリを開発する開発者
  • RTMP出力を必要とするモバイルアプリ開発者
  • リアルタイム通信プラットフォーム
  • モバイルストリーミングを使用するコンテンツ作成者

注意事項

  • RTMPサーバーの設定が必要です
  • ネットワークの安定性がストリーミング品質に影響します
  • Android および iOS に限定
  • 追加の権限が必要になる場合があります
  • 下位のカメラプラグインに依存しています

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Flutter RTMP broadcaster

codecov Dart CI Publish Stale

[!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:

Features

  • Live camera preview embedded in a widget
  • Snapshot capture to file
  • Video recording
  • Direct access to image streams from Dart

Usage

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

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

  1. Fork the repository and create a branch for your change
  2. Make the change
  3. Ensure the code is formatted and tested
  4. 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.

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。