Socket
Book a DemoInstallSign in
Socket

cordova-android-media-projection

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

cordova-android-media-projection

Media Projection API to capture device screen in real time and show it on a Surface-View.. Available for Android ONLY.

0.0.3
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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([successCallback], [failureCallback]);

mediaProjection.stop([successCallback], [failureCallback]);

Example

mediaProjection.start();

mediaProjection.stop(function (video_path) {
    console.log('Save Recording Path: ' + video_path);
}, function (e) {
    console.error('Error: ' + e);
});

Note

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';)

License

Cordova Media Projection is licensed under the Apache License (ASL) license. For more information, see the LICENSE file in this repository.

Keywords

cordova

FAQs

Package last updated on 03 Mar 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.