In order to provide a usage example for cordova-plugin-screen-recording, we provide full Cordova Android application.
This code is tested with Cordova Android 9.1.0
Run scripts\win10\installApp.cmd
and then from same folder run emulateApp.cmd
or runApp.cmd
.
Open the Android TestScreenRecording
application on the device, press Start recording
and grant permissions (screen similar to the following) after pressing Stop recording
you will have screen recording video in gallery.
Copyright (C) 2022 PR-DC info@pr-dc.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.