我有问题,在播放下载的音频文件从本地存储使用媒体插件。在播放之前,我使用以下代码检查音频文件的存在:window.requestFileSystem(LocalFileSystem.TEMPORARY, 0, function (fileSystem) { var dir_path = rootdir.toURL(); if (success_callba
尝试使用audioplayer插件来实现此目的。使用playLocal函数,其中资源从根捆绑包加载到应用程序目录中,然后播放 根据audioplayer github repo中的答案,这是应该能做到这一点的代码: class SoundManager{ final dirbytes = soundData.buffer.asUi
我创建了新的安卓应用程序,因为它显示静态信息,我已经创建了html5,并将html5文件调用到了我的webview,我的html文件函数之一是play mp3,当我单击按钮时,我做了html和androidthe interface and set the context */ mContext = c;
public void audioPlayerplay mp3" onClick="playmp3()" />