Phonegap Media error code 1 play local mp3 file in Android device

I am developing an application that plays a local mp3 file.

When I launch the application using MOTODEV Studio in the emulator and it works fine in my phone.

But when I boot into the Google Play Market and install the application on another phone, it sends me this error

"Error code 1, message undefined"

Error log

03-15 22:12:58.364 D/skia ( 2275): >>>>>> Touch event handled. action:2; preventDefault=0 .{193,192} 03-15 22:12:58.473 W/System.err( 2275): java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed 03-15 22:12:58.473 W/System.err( 2275): at android.content.res.AssetManager.openAssetFd(Native Method) 03-15 22:12:58.473 W/System.err( 2275): at android.content.res.AssetManager.openFd(AssetManager.java:314) 03-15 22:12:58.473 W/System.err( 2275): at com.phonegap.AudioPlayer.startPlaying(AudioPlayer.java:215) 03-15 22:12:58.473 W/System.err( 2275): at com.phonegap.AudioHandler.startPlayingAudio(AudioHandler.java:233) 03-15 22:12:58.473 W/System.err( 2275): at com.phonegap.AudioHandler.execute(AudioHandler.java:78) 03-15 22:12:58.473 W/System.err( 2275): at com.phonegap.api.PluginManager$1.run(PluginManager.java:150) 03-15 22:12:58.473 W/System.err( 2275): at java.lang.Thread.run(Thread.java:1096) 03-15 22:12:58.520 D/skia ( 2275): >>>>>> Touch event handled. action:1; preventDefault=0 .{193,192} 03-15 22:12:58.536 D/skia ( 2275): >>>>>>>: CacheBuilder::BuildFrame(() 03-15 22:12:58.543 D/skia ( 2275): >>>>>>> WebViewCore::updateFrameCache()--2--cachedFocusNode=1; (nodePointer=0x670b90); m_frameCacheKit=0x34e560; m_updatedFrameCache=1 

thanks

+4
source share

Source: https://habr.com/ru/post/1401700/


All Articles