你好,我是个新手,对java和android开发不清楚,你的插件我通过cordova下载后,不知道如何才能成功调用,下面是我写的测试代码,可惜运行不成功。
document.addEventListener('deviceready', onDeviceReady, false);
function onDeviceReady() {
Voice("http://xxx.com/tmp_file_1413872716.amr",
function(){alert("played finished.");},
function(errcode){alert(errocode);},
function(){}
);
}
可不可以写个测试代码,求指教,谢谢了。
你好,我是个新手,对java和android开发不清楚,你的插件我通过cordova下载后,不知道如何才能成功调用,下面是我写的测试代码,可惜运行不成功。
document.addEventListener('deviceready', onDeviceReady, false);
function onDeviceReady() {
Voice("http://xxx.com/tmp_file_1413872716.amr",
function(){alert("played finished.");},
function(errcode){alert(errocode);},
function(){}
);
}
可不可以写个测试代码,求指教,谢谢了。