Answer the question
In order to leave comments, you need to log in
How to properly connect plugins in phonegap?
Everything was done according to the instructions,
Create a project:
phonegap create test3
Enter it:
cd test3/
Add a platform:
cordova platform add ios
Add a plugin:
cordova plugin add org.apache.cordova.media
The plugin is included in the config.xml file : Collected
the project:
phonegap build ios
In the code we tried to reproduce the file:
var my_media = new Media('http://site.ru/file.mp3',
// success callback
function () {
alert("playAudio():Audio Success");
},
// error callback
function (err) {
alert("playAudio():Audio Error: " + err);
}
);
// Play audio
my_media.play();
Answer the question
In order to leave comments, you need to log in
Everything was decided by deleting the project and creating a zero. All plugins were picked up without problems. I didn't understand what the problem was...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question