Pakete, Repositories und App-Kategorien suchen

Paketdetailsv3.1.1

rtmp_broadcaster

Eine Erweiterung des Flutter-Kameraplug-ins, die Live-Videostreaming über RTMP auf Android- und iOS-Geräten ermöglicht.

AndroidiOS
30-Tage-Downloads
497
Likes
40
Pub-Punkte
140

Paket installieren

flutter pub add rtmp_broadcaster

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Das rtmp_broadcaster-Paket erweitert den Flutter-Kameraplugin, um Echtzeit-Videoübertragung über RTMP auf Android- und iOS-Geräten zu ermöglichen. Es ermöglicht Entwicklern, Live-Videos direkt von mobilen Geräten an RTMP-Server zu übertragen, was es ideal für Live-Events, Videokonferenzen oder Social-Media-Streaming macht. Das Paket integriert sich nahtlos in die bestehende Kamerafunktionalität und unterstützt gängige RTMP-Konfigurationen. Mit Fokus auf Leistung und Einfachheit bietet es eine klare API zum Starten und Beenden von Streams.

Anwendungsfälle

  • Live-Veranstaltungsbroadcast
  • Live-Streaming in sozialen Medien
  • Remote-Videokonferenz
  • IoT-Geräte-Videostreams
  • Echtzeitüberwachung

Hauptmerkmale

  • RTMP-Streaming-Unterstützung
  • Kompatibilität mit Android und iOS
  • Kameraintegration
  • Einfache Start-/Stopp-API
  • Low-Latency-Streaming

Geeignet für

  • Entwickler, die Live-Video-Apps erstellen
  • Mobile App Entwickler, die RTMP-Ausgabe benötigen
  • Echtzeitkommunikationsplattformen
  • Inhaltschöpfer, die mobile Streaming nutzen

Hinweise

  • RTMP-Server-Einrichtung erforderlich
  • Netzwerkstabilität beeinflusst die Stream-Qualität
  • Beschränkt auf Android und iOS
  • Könnte zusätzliche Berechtigungen erfordern
  • Abhängig vom zugrundeliegenden Kameraplugin

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 2 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.