Cordova Media Projection
Cordova Media Projection is to capture device screen in real time and show it on a Surface-View.
Installation
Latest stable version from npm:
$ cordova plugin add cordova-android-media-projection
Bleeding edge version from Github:
$ cordova plugin add https://github.com/disono/cordova-android-media-projection
Using the plugin
Call start() to start recording screen. Stopping the recording will return path(/storage/emulated/0/Download/video-xxxxxxxxx.mp4) of video record.
mediaProjection.start; mediaProjection.stop;
Example
mediaProjection.stop
Note
1. It cannot be used on API version lower than 212. Update your config.xml and add this <preference name="android-minSdkVersion" value="21" />3. Minimum supported Gradle version is 3.3
License
Cordova Media Projection is licensed under the Apache License (ASL) license. For more information, see the LICENSE file in this repository.