搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.15

ed_screen_recorder

適用於 Flutter 的螢幕錄製器。此外掛程式需要 Android SDK 21+ 和 iOS 10+

AndroidiOS
近 30 天下載
110
喜歡數
58
Pub 分數
130

安裝套件

flutter pub add ed_screen_recorder

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

ed_screen_recorder 是一個 Flutter 插件,可在 Android 和 iOS 設備上啟用螢幕錄製功能。它支援 Android SDK 21+ 和 iOS 10+,讓開發者可以在其應用中擷取裝置螢幕。該插件可無縫整合至 Flutter 專案中,並透過簡單的 API 提供螢幕錄製功能。非常適合用於建立教學、除錯工具或互動式應用示範。

適用情境

  • 建立應用內教學影片
  • 透過螢幕錄製調試應用行為
  • 建構教育或示範應用程式
  • 記錄使用者互動以進行分析
  • 開發螢幕共用功能

主要特色

  • 跨平台支援(Android 與 iOS)
  • 與 Flutter 的簡單整合
  • 支援 Android SDK 21+ 與 iOS 10+
  • 啟用即時螢幕擷取
  • 輕量級並專注於核心功能

適合對象

  • 需要螢幕錄製功能的應用開發者
  • 教育類應用開發者
  • 除錯與測試工具
  • 使用者引導功能建構器
  • 互動式示範應用程式

使用建議

  • 兩個平台都需要適當的權限
  • 僅限支援的操作系統版本
  • 可能需要額外設定以支援背景錄音
  • 未經優化,不適合高解析度或長時間錄製
  • 錄製使用者畫面時的隱私考量

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

ED Flutter Screen Recorder

Screen recorder plugin for Flutter. Supports IOS and Android devices.It does not work on the IOS emulator!!!!

Who made it? It's Eren ;)

pubdev

Ekler

android/app/build.gradle

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.github.HBiSoft:HBRecorder:3.0.1'
    implementation 'androidx.appcompat:appcompat:1.4.1'
}

android/app/src/main/AndroidManifest.xml

    xmlns:tools="http://schemas.android.com/tools"
    package="com.example">
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" tools:ignore="ScopedStorage" />
    <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

You only need add the permission message on the Info.plist

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

Usage/Examples

import 'package:screen_recorder/screen_recorder.dart';

ScreenRecorder? screenRecorder;
Map<String, dynamic>? _response;

@override
void initState() {
    super.initState();
    screenRecorder = ScreenRecorder();
}

  Future<void> startRecord({required String fileName}) async {
    // Directory tempDir = await getTemporaryDirectory();
    // String tempPath = tempDir.path;
    var response = await edScreenRecorder?.startRecordScreen(
      fileName: fileName,
      // `dirPathToSave` Optional. It will save the video there when you give the file path with whatever you want.
      //If you leave it blank, the Android operating system will save it to the gallery.
      dirPathToSave: tempPath,
      audioEnable: false,
    );

    setState(() {
      _response = response;
    });
  }

  Future<void> stopRecord() async {
    var response = await edScreenRecorder?.stopRecord();
    setState(() {
      _response = response;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Screen Recording Debug"),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text("File: ${(_response?['file'] as File?)?.path}"),
            Text("Status: ${(_response?['success']).toString()}"),
            Text("Event: ${_response?['eventname']}"),
            Text("Progress: ${(_response?['progressing']).toString()}"),
            Text("Message: ${_response?['message']}"),
            Text("Video Hash: ${_response?['videohash']}"),
            Text("Start Date: ${(_response?['startdate']).toString()}"),
            Text("End Date: ${(_response?['enddate']).toString()}"),
            ElevatedButton(onPressed: () => startRecord(fileName: "eren"), child: const Text('START RECORD')),
            ElevatedButton(onPressed: () => stopRecord(), child: const Text('STOP RECORD')),
          ],
        ),
      ),
    );
  }

Resources used within the plugin

HBRecorder Lightweight screen and audio recording Android library. URL

Watcher

A file system watcher. URL

UUID

Simple, fast generation of RFC4122 UUIDs. URL

Contributors

Thanks my friends Mehmet for contributed.

Author: endmr11 "github"

Features

  • IOS operating system support. "check"
  • Custom File Path-Directory "check"
  • Custom Audio Record
  • Custom Video Frame
  • Code optimization.

Feedback

If you have any feedback, please contact us at erndemir.1@gmail.com.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。