java short 0x1_java.io.IOException:准备失败:status = 0x1

在尝试使用PhoneGap的媒体功能时遇到了错误代码5,这通常表示底层资源出现了问题,可能是文件无法访问、损坏或者不支持。错误日志显示了'PVMFErrResource',提示可能与播放的文件有关。建议检查文件路径的正确性、文件的格式是否被支持以及网络连接状况。
摘要由CSDN通过智能技术生成

我在使用phonegap的媒体时得到这个.

这首歌没有播放,而是我收到错误代码5

有任何想法吗?

05-26 02:35:41.796 1153 8918 V PlayerDriver: HandleInformationalEvent: PVMFInfoErrorHandlingStart

05-26 02:35:41.796 1153 8918 V PlayerDriver: HandleInformationalEvent: type=26 UNHANDLED

05-26 02:35:41.796 8832 8837 W MediaPlayer: info/warning (1, 26)

05-26 02:35:41.796 8832 8832 I MediaPlayer: Info (1,26)

05-26 02:35:41.796 1153 8918 D : enter SharedLibraryLookup

05-26 02:35:41.796 1153 8918 D : enter GetFactoryAndMimeString

05-26 02:35:41.796 1153 8918 V PlayerDriver: CommandCompleted

05-26 02:35:41.796 1153 8918 V PlayerDriver: Completed command (7)PLAYER_PREPARE status=PVMFErrResource

05-26 02:35:41.796 1153 8918 E PlayerDriver: Command PLAYER_PREPARE completed with an error or info PVMFErrResource

05-26 02:35:41.796 8832 8836 E MediaPlayer: error (1, -17)

05-26 02:35:41.803 8832 8917 W System.err: java.io.IOException: Prepare failed.: status=0x1

05-26 02:35:41.803 8832 8917 W System.err: at android.media.MediaPlayer.prepare(Native Method)

05-26 02:35:41.803 8832 8917 W System.err: at com.phonegap.AudioPlayer.startPlaying(AudioPlayer.java:209)

05-26 02:35:41.803 8832 8917 W System.err: at com.phonegap.AudioHandler.startPlayingAudio(AudioHandler.java:181)

05-26 02:35:41.803 8832 8917 W System.err: at com.phonegap.AudioHandler.execute(AudioHandler.java:64)

05-26 02:35:41.803 8832 8917 W System.err: at com.phonegap.api.PluginManager$1.run(PluginManager.java:86)

05-26 02:35:41.803 8832 8917 W System.err: at java.lang.Thread.run(Thread.java:1096)

05-26 02:35:41.803 1153 8918 V PVPlayer: check_for_live_streaming s=-2147483648, cancelled=0

05-26 02:35:41.803 1153 8918 V PlayerDriver: HandleInformationalEvent: PVMFInfoErrorHandlingComplete

05-26 02:35:41.803 1153 8918 W PlayerDriver: PVMFInfoErrorHandlingComplete

05-26 02:35:41.889 8832 8838 D cache : save chahe file for url http://127.0.0.1:43207/83f3430c-970d-4dfc-9aa2-159167b7c894

05-26 02:35:41.905 8832 8838 D cache : mDataBase.getCache() for url http://127.0.0.1:43207/83f3430c-970d-4dfc-9aa2-159167b7c894 len=70

05-26 02:35:42.007 8832 8838 D cache : save chahe file for url http://127.0.0.1:43207/83f3430c-970d-4dfc-9aa2-159167b7c894

05-26 02:35:42.038 1275 1279 D KeyguardViewMediator: setHidden false

05-26 02:35:42.069 1275 1861 D KeyguardViewMediator: setHidden false

05-26 02:35:42.717 1153 8890 V PlayerDriver: HandleInformationalEvent: PVMFInfoPositionStatus

最佳答案 PVMFErrResource的描述是:

Error due to general error in underlying resource

这就是你必须要看的地方:底层资源很可能是你想要播放的文件.也许它无法访问,也许它已损坏,也许这种类型不受支持.

进一步阅读

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值