搜索插件、代码仓与 APP 分类

插件详情v0.0.1

video_stream

一个用于将视频实时流式传输到RTMP服务器的新Flutter包。

近 30 天下载
440
喜欢数
41
Pub 分数
70

安装插件

flutter pub add video_stream

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个专为向RTMP服务器进行实时视频流传输而设计的Flutter包。它可实现移动设备上的实时视频传输,非常适合用于直播活动、实时内容或互动流媒体。该包可无缝集成到Flutter应用中,并支持直接流媒体传输,无需复杂的设置。本着简洁与性能的设计理念,它将底层流媒体逻辑抽象为易于使用的API。非常适合开发需要在应用中构建实时流媒体功能的开发者。

适合场景

  • 实时事件直播
  • 实时视频共享
  • 互动流媒体应用
  • 视频会议扩展
  • 内容创作工具

主要特点

  • RTMP 服务器集成
  • 简单的流式 API
  • 低延迟视频传输
  • 跨平台支持
  • 内置错误处理

适合对象

  • 开发实时流媒体应用的开发者
  • 需要实时视频的移动应用开发者
  • 需要广播功能的内容平台
  • 物联网或监控系统实时流
  • 教育或游戏直播应用

使用建议

  • 需要稳定的互联网连接
  • 需要RTMP服务器配置
  • 仅限RTMP协议
  • 在 Android/iOS 上可能需要额外权限
  • 性能取决于设备硬件

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

video_stream

A new Flutter package for basic live streaming video to RTMP server.

Getting Started

This plugin is an simplified version of camera_with_rtmp an extension of the flutter camera plugin to add in rtmp streaming as part of the system. It works on android and iOS (but not web).

Features:

  • Display live camera preview in a widget.
  • stream video to a rtmp server.
iOS

Add two rows to the ios/Runner/Info.plist:

  • one with the key Privacy - Camera Usage Description and a usage description.
  • and one with the key Privacy - Microphone Usage Description and a usage description.

Or in text format add the key:

<key>NSCameraUsageDescription</key>
<string>Can I use the camera please?</string>
<key>NSMicrophoneUsageDescription</key>
<string>Can I use the mic please?</string>
Android

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21

Need to add in a section to the packaging options to exclude a file, or gradle will error on building.

packagingOptions {
   exclude 'project.clj'
}

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。