1.2.1 • Published 2 years ago

@srikant-kumar/capacitor-screen-recorder v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Capacitor Screen Recorder

npm.io

Description

The Capacitor Screen Recorder plugin is a powerful tool for mobile app developers looking to enhance their applications with screen recording functionality. Seamlessly integrated with the Capacitor framework, this plugin allows users to effortlessly capture, save, and share video recordings of their app interactions. With customizable settings for video quality and recording controls, developers can provide users with a versatile and user-friendly recording experience. Whether for tutorial creation, bug reporting, or user engagement, the Capacitor Screen Recorder plugin offers a straightforward solution to incorporate screen recording capabilities into Capacitor-powered apps, enhancing their overall utility and user experience

Credits

This plugin makes use of the HBRecorder Android library for its screen recording features. Big thanks to the authors of the library for their hard work!

Supported Native Platform

Android : This plugin currently support Android Screen Recording

iOS : Coming Soon (No IOS Support)

Web : No Support

Documentation

Install

npm install @srikant-kumar/capacitor-screen-recorder
npx cap sync

Add Jitpack

Add in Main App build.gradle located add your capacitor android folder

allprojects {
    repositories {
        google()
        mavenCentral()
        //Add Here
        maven {
            url "https://jitpack.io"
        }
    }
}
npm install @srikant-kumar/capacitor-screen-recorder
npx cap sync

Add Jitpack

Add in Main App build.gradle located add your capacitor android folder

allprojects {
    repositories {
        google()
        mavenCentral()
        //Add Here
        maven {
            url "https://jitpack.io"
        }
    }
}

API

start(...)

start(options: any) => Promise<any>
ParamType
optionsany

Returns: Promise<any>


stop(...)

stop(options: any) => Promise<any>
ParamType
optionsany

Returns: Promise<any>


recorder_status(...)

recorder_status(options: any) => Promise<any>
ParamType
optionsany

Returns: Promise<any>


addListener('onRecordingStarted', ...)

addListener(eventName: 'onRecordingStarted', listenerFunc: (data: any) => { status: true; message: "Recording Started"; }) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'onRecordingStarted'
listenerFunc(data: any) => { status: true; message: 'Recording Started'; }

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('onRecordingComplete', ...)

addListener(eventName: 'onRecordingComplete', listenerFunc: (data: any) => { status: true; message: "Recording Stopped"; file_name: "2023-08-25-10-10-10.mp4"; file_path: "/storage/emulated/0/Movies/ScreenRecordings/2023-08-25-10-10-10.mp4"; }) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'onRecordingComplete'
listenerFunc(data: any) => { status: true; message: 'Recording Stopped'; file_name: '2023-08-25-10-10-10.mp4'; file_path: '/storage/emulated/0/Movies/ScreenRecordings/2023-08-25-10-10-10.mp4'; }

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('onRecordingError', ...)

addListener(eventName: 'onRecordingError', listenerFunc: (data: any) => { status: false; message: "Error Message"; }) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'onRecordingError'
listenerFunc(data: any) => { status: false; message: 'Error Message'; }

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
1.2.1

2 years ago

1.2.0

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.0

2 years ago

1.0.1

2 years ago

0.0.1

2 years ago