Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Cap-go/capacitor-screen-recorder

Record the screen of the phone with native API
https://github.com/Cap-go/capacitor-screen-recorder

capacitor

Last synced: 24 days ago
JSON representation

Record the screen of the phone with native API

Awesome Lists containing this project

README

        

# Capacitor-screen-recorder
Capgo - Instant updates for capacitor


➡️ Get Instant updates for your App with Capgo 🚀


Fix your annoying bug now, Hire a Capacitor expert 💪



Record device's screen

## Install

```bash
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`
```xml


```

### 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)
* [`stop()`](#stop)

### start()

```typescript
start() => any
```

start the recording

**Returns:** any

--------------------

### stop()

```typescript
stop() => any
```

stop the recording

**Returns:** any

--------------------