搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。