Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
cordova-android-media-projection
Advanced tools
Media Projection API to capture device screen in real time and show it on a Surface-View.. Available for Android ONLY.
Cordova Media Projection is to capture device screen in real time and show it on a Surface-View.
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
Call start() to start recording screen. Stopping the recording will return path(/storage/emulated/0/Download/video-xxxxxxxxx.mp4) of video record.
mediaProjection.start([successCallback], [failureCallback]);
mediaProjection.stop([successCallback], [failureCallback]);
mediaProjection.start();
mediaProjection.stop(function (video_path) {
console.log('Save Recording Path: ' + video_path);
}, function (e) {
console.error('Error: ' + e);
});
1. It cannot be used on API version lower than 21
2. Update your config.xml and add this <preference name="android-minSdkVersion" value="21" />
3. Minimum supported Gradle version is 3.3 (Update the GradleBuilder.js find the distributionUrl and replace with var distributionUrl = process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] || 'https\\://services.gradle.org/distributions/gradle-3.3-all.zip';)
Cordova Media Projection is licensed under the Apache License (ASL) license. For more information, see the LICENSE file in this repository.
FAQs
Media Projection API to capture device screen in real time and show it on a Surface-View.. Available for Android ONLY.
The npm package cordova-android-media-projection receives a total of 6 weekly downloads. As such, cordova-android-media-projection popularity was classified as not popular.
We found that cordova-android-media-projection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.