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

插件详情v2.0.26

flutter_screen_recording

一个用于录制屏幕的新Flutter插件。该插件可用于在Android、iOS和Web设备上录制屏幕。

AndroidiOSWeb
近 30 天下载
2020
喜欢数
166
Pub 分数
110

安装插件

flutter pub add flutter_screen_recording

插件介绍

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

一个 Flutter 插件,可在 Android、iOS 和 Web 平台上实现屏幕录制。它允许开发者在其应用中捕获设备屏幕,适用于教程、演示或用户辅助支持功能。该插件与 Flutter 生态系统无缝集成,并支持跨平台功能。其设计注重易用性,提供简单直接的 API 来启动和停止录制。非常适合教育类应用、生产力工具,或任何需要应用内屏幕捕获功能的应用。

适合场景

  • 在应用内创建教程视频
  • 录制用户会话以进行调试
  • 构建交互式学习应用程序
  • 启用用户生成内容创作
  • 支持远程协助功能

主要特点

  • 跨平台屏幕录制(Android、iOS、Web)
  • 简单的开始/停止录制 API
  • 与 Flutter 原生平台通道的集成
  • 支持录制应用程序UI和系统级屏幕内容
  • 轻量且易于实现

适合对象

  • 教育类应用程序开发者
  • 生产力工具创作者
  • 支持和帮助台应用程序团队
  • 需要应用内演示功能的应用开发者
  • 互动内容平台的创作者

使用建议

  • 需要在 Android 和 iOS 上具备适当的权限
  • 网页录制可能具有浏览器特定的限制
  • 长时间录制期间的性能影响
  • 用户同意对于隐私合规是必需的
  • 对录制质量设置的控制有限

原始 README

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

flutter_screen_recording

Flutter plugin to record the screen on Android, iOS, and web.

Current platform support in this repository:

  • Android: minSdkVersion 23
  • iOS: iOS 11.0+
  • Web: supported through the federated web implementation

Getting Started

Import the package:

import 'package:flutter_screen_recording/flutter_screen_recording.dart';

Start screen recording:

final bool started = await FlutterScreenRecording.startRecordScreen(
  'my_recording',
  titleNotification: 'Screen recording',
  messageNotification: 'Recording in progress',
);

Start screen recording with microphone audio:

final bool started = await FlutterScreenRecording.startRecordScreenAndAudio(
  'my_recording',
  titleNotification: 'Screen recording',
  messageNotification: 'Recording in progress',
);

Stop recording and get the output path or file name:

final String path = await FlutterScreenRecording.stopRecordScreen;

Android

The Android implementation uses MediaProjection, MediaRecorder, and a foreground service.

  • The plugin currently builds with compileSdkVersion 35
  • The plugin manifest already includes its service declaration and required foreground-service permissions
  • If you record audio, request microphone permission at runtime in your app
  • On modern Android versions, you may also need notification permission for the foreground service notification

The example app requests permissions with permission_handler before starting recording.

iOS

The iOS implementation uses ReplayKit and requires iOS 11.0+.

Add the usage description for microphone access if you record audio:

<key>NSMicrophoneUsageDescription</key>
<string>Save audio in video</string>

The plugin returns the local output file path. If your app later saves the file to the Photos library, also add the appropriate Photos usage description to your app.

Web

The web implementation uses getDisplayMedia and MediaRecorder.

  • Best experience is on modern desktop browsers
  • Browser support depends on screen-capture and codec support
  • MP4 is preferred when the browser reports video/mp4 recording support; WebM is used as a fallback
  • The downloaded file receives the extension that matches the format actually recorded (.mp4 or .webm)
  • The web implementation downloads the recorded file in the browser when recording stops

Notes

  • This package exposes asynchronous APIs; use await when starting and stopping recordings
  • Notification title and message parameters are used by the Android implementation
  • Returned output differs by platform: native platforms return a local path, while web triggers a browser download

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。