2011-05-26 81 views
4

我在使用phonegap的媒體時得到了這個。 歌曲不播放,而是我得到錯誤代碼5java.io.IOException:準備失敗:狀態= 0x1

有什麼想法嗎?

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 

回答

0

遇到與音頻文件內容有關的問題與android類似的問題。 我不知道爲什麼會發生。

我假設你正在使用mp3,請嘗試使用.ogg文件。

+0

好吧,我會盡力的。 – nomoral 2011-05-26 13:16:14

+0

不,如果我將其轉換爲ogg我得到另一個錯誤:http://stackoverflow.com/questions/6139545/can-not-play-ogg-on-android – nomoral 2011-05-26 14:00:37

2

PVMFErrResource的描述是:

Error due to general error in underlying resource

這就是你要看看:在底層資源是最有可能的是,你要播放的文件。也許它不可訪問,也許它是腐敗的,也許這種類型不被支持。

進一步閱讀

+0

謝謝!你救了我的一天 – nomoral 2011-05-26 13:14:40

相關問題