java.io.IOException异常:prepare失败:状态=为0x1 [英] java.io.IOException: Prepare failed.: status=0x1

查看:1917
本文介绍了java.io.IOException异常:prepare失败:状态=为0x1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用phonegap`s媒体时出现此。 这首歌不玩了,而我得到的错误code 5

什么想法?

  2月5号至26日:35:41.796 1153 8918 V PlayerDriver:HandleInformationalEvent:PVMFInfoErrorHandlingStart
2月5日至26号:35:41.796 1153 8918 V PlayerDriver:HandleInformationalEvent:类型= 26未处理
2月5日至26号:35:41.796 8832 8837W¯¯的MediaPlayer:信息/警告(1,26)
2月5日至26号:35:41.796 8832 8832我的MediaPlayer:信息(1,26)
2月5日至26号:35:41.796 1153 8918 D:进入SharedLibraryLookup
2月5日至26号:35:41.796 1153 8918 D:进入GetFactoryAndMimeString
2月5日至26号:35:41.796 1153 8918 V PlayerDriver:CommandCompleted
2月5日至26号:35:41.796 1153 8918 V PlayerDriver:已完成命令(7)PLAYER_ prePARE状态= PVMFErrResource
2月5日至26号:35:41.796 1153 8918ËPlayerDriver:命令PLAYER_ prePARE完成,错误或信息PVMFErrResource
2月5日至26号:35:41.796 8832 8836ê的MediaPlayer:错误(1,-17)
2月5日至26号:35:41.803 8832 8917W¯¯System.err的:java.io.IOException异常:prepare失败:状态=为0x1
2月5日至26号:35:41.803 8832 8917W¯¯System.err的:在android.media.MediaPlayer prepare(本机方法)
2月5日至26号:35:41.803 8832 8917W¯¯System.err的:在com.phonegap.AudioPlayer.startPlaying(AudioPlayer.java:209)
2月5日至26号:35:41.803 8832 8917W¯¯System.err的:在com.phonegap.AudioHandler.startPlayingAudio(AudioHandler.java:181)
2月5日至26号:35:41.803 8832 8917W¯¯System.err的:在com.phonegap.AudioHandler.execute(AudioHandler.java:64)
2月5日至26号:35:41.803 8832 8917W¯¯System.err的:在com.phonegap.api.PluginManager $ 1.运行(PluginManager.java:86)
2月5日至26号:35:41.803 8832 8917W¯¯System.err的:在java.lang.Thread.run(Thread.java:1096)
2月5日至26号:35:41.803 1153 8918 V PVPlayer:check_for_live_streaming S = -2147483648,取消= 0
2月5日至26号:35:41.803 1153 8918 V PlayerDriver:HandleInformationalEvent:PVMFInfoErrorHandlingComplete
2月5日至26号:35:41.803 1153 8918W¯¯PlayerDriver:PVMFInfoErrorHandlingComplete
2月5日至26号:35:41.889 8832 8838ð缓存:保存岔河文件的URL http://127.0.0.1:43207/83f3430c-970d-4dfc-9aa2-159167b7c894
2月5日至26号:35:41.905 8832 8838ð缓存:mDataBase.getCache()的URL http://127.0.0.1:43207/83f3430c-970d-4dfc-9aa2-159167b7c894的len = 70
2月5日至26号:35:42.007 8832 8838ð缓存:保存岔河文件的URL http://127.0.0.1:43207/83f3430c-970d-4dfc-9aa2-159167b7c894
2月5日至26号:35:42.038 1275 1279ðKeyguardViewMediator:setHidden假
2月5日至26号:35:42.069 1275 1861ðKeyguardViewMediator:setHidden假
2月5日至26号:35:42.717 1153 8890 V PlayerDriver:HandleInformationalEvent:PVMFInfoPositionStatus
 

解决方案

PVMFErrResource 的说明是:

  

在底层的资源,由于一般错误错误

这就是你要看看:在基础资源的是最有可能的是,你要播放的文件。也许这是无法访问的,也许它的腐败,也许是不支持的类型。

进一步阅读

i get this when using phonegap`s Media. the song does not play, instead i get error code 5

any ideas?

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

解决方案

The description of PVMFErrResource is:

Error due to general error in underlying resource

That's where you have to look: the underlying resource is most likely the file that you want to play. Maybe it's not accessible, maybe it's corrupt, maybe the type is not supported.

Further Reading

这篇关于java.io.IOException异常:prepare失败:状态=为0x1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆