I'm currently trying to workaround a problem where video and audio on an Android devices storage won't be played.
I want to try either of the following plugins:
https://github.com/macdonst/VideoPlayer
https://github.com/michalzubkowicz/Fi...
I have troubles integrating those plugins in my appery.io project. Following the instructions on the pages I did the following:
I added the js files (ie. videoPlayer.js) to ANDROID/MyApp/assets/www/files/resources/lib/
I added the java files (ie. videoPlayer.java) to ANDROID/MyApp/src/com/phonegap/plugins/video/
I added the plugins to ANDROID/MyApp/res/xml/config.xml likes this:
code
<widget>
//here are a lot of <feature> blocks
<plugins>
<plugin name="videoPlayer" value="com.phonegap.plugins.video.videoPlayer" />
<plugin name="FileOpener" value="com.phonegap.plugins.fileopener.FileOpener"/>
</plugins>
</widget>
/code
And I added the js files (ie. videoPlayer.js) to the "external resources" tab in App settings.
I know for sure, that the js files are loaded correctly and the methods are successfully registered in window.plugins. But when I call one of the functions, I get this error: "exec() call to unknown plugin: videoPlayer".
I think, this means, I didn't load the java files correctly. Do you have any suggestions how I could solve this problem?