You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a Test App and a fix the problem in all packages with suffix .R and .BuildConfig but when a build my app and install in my device always crash.... I use this code:
This is my js/app.js
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
I create a Test App and a fix the problem in all packages with suffix .R and .BuildConfig but when a build my app and install in my device always crash.... I use this code:
This is my js/app.js
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady() {
}
// callback method
var successCallback = function(result) {
console.log('audio callback ' + JSON.stringify(result));
if (result.type === 'progress') {
console.log('progress/duration/available - ' + result.progress + '/' + result.duration + '/' + result.available); // available not currently supported
} else if (result.type === 'state') {
console.log('status - ' + result.state + '/' + result.description);
} else if (result.type === 'error') {
console.log('error - ' + result.reason);
} else if (result.type === 'current') {
console.log('current audio ' + JSON.stringify(result.audio));
} else if (result.type === 'next') {
console.log('skip to next audio track'); // typically fired by remote control/lock screen controls
} else if (result.type === 'previous') {
console.log('skip to previous track'); // typically fired by remote/control/lock screen controls
} else {
console.log('AudioCallback unhandled type (' + result.type + ')');
}
};
var failureCallback = function() {
var elText;
elText = "Audio player failed";
if (window.lang === "fa") {
elText = "Reprodução falhou";
}
return console.log(elText);
};
The text was updated successfully, but these errors were encountered: