Cap-go / capacitor-screen-recorder

Record the screen of the phone with native API

Home Page:https://capgo.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capacitor-screen-recorder

Capgo - Instant updates for capacitor

Record device's screen

Install

npm install @capgo/capacitor-screen-recorder
npx cap sync

IOS

add NSPhotoLibraryUsageDescription in your info.plist

Android

increase project's minSdk version to 23, it's required by the dependency scrcast

Add this permissions in your AndroidManifest.xml

  <uses-permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT" />
  <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />

Variables

This plugin will use the following project variables (defined in your app's variables.gradle file):

  • $kotlinVersion version of org.jetbrains.kotlin:kotlin-stdlib-jdk7 (default: 1.7.21)

If you have compilation issue Duplicate class androidx.lifecycle.ViewModelLazy i found in this the solution who worked for me: https://stackoverflow.com/questions/73406969/duplicate-class-androidx-lifecycle-viewmodellazy-found-in-modules-lifecycle-view

Add this

configurations {
    all {
        exclude group: 'androidx.lifecycle', module: 'lifecycle-runtime-ktx'
        exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
    }
}
an

line 2 in file android/app/build.gradle

Configuration

No configuration required for this plugin.

API

start()

start() => any

start the recording

Returns: any


stop()

stop() => any

stop the recording

Returns: any


About

Record the screen of the phone with native API

https://capgo.app


Languages

Language:Swift 60.1%Language:Java 13.0%Language:TypeScript 7.2%Language:Ruby 6.2%Language:Objective-C 4.7%Language:JavaScript 4.5%Language:HTML 2.4%Language:CSS 1.3%Language:Shell 0.5%