jlorente / cordova-plugin-volume-control Goto Github PK
View Code? Open in Web Editor NEWA cordova plugin to control the volume level in Android and iOS
License: MIT License
A cordova plugin to control the volume level in Android and iOS
License: MIT License
Including this plugin with this in my config.xml:
<plugin name="cordova-plugin-volume-control" version="0.1.8" />
Getting this error when building with cordova:
Error: cmd: Command failed with exit code 1 Error output:
C:\Projects\gogyup-literacy-app\litapp-source\builds\build-cordova-litapp2\platforms\android\src\com\lorentech\plugins\vo
lumeControl\VolumeControl.java:42: error: ';' expected
int volumeToSet = (int) Math.round(args.getDouble(0) * 100.0f)
^
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I suspect the latest github version is not uploaded to npm, as the semi-colon looks ok in latest github source. But the VolumeControl.java in my local plugins/cordova-plugin-volume-control/src/android folder is missing the semi-colon, like the error message indicates.
On volume change event might be more useful for sync with the application volume slider if user change volume by the physical button.
Your plugin notes that "This plugin uses private AVSystemController.h APIs and can't be used for AppStore apps."
I'm curious, is it not possible to achieve device volume control in iOS via the app in a way that is allowed by the Apple Store?
The problem is a missing ;
here (line 42 in VolumeControl.java)
Is this plugin compatible with ionic 3? Because I've installed using ionic cordova plugin add
and I can't inject the VolumeControl, it's not shown to me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.