1
請在下面的瀏覽器中嘗試網址,它的播放效果很好。爲什麼在準備時出現錯誤?我使用的是Android 2.2的...在MediaPlayer中播放mp3文件時遇到問題
另外,我可以將文件下載到的SD卡,併發揮它只是罰款這種方式......它只是一個同步的過程,不是一個理想的用戶體驗..
05-19 00:00:00.370: INFO/System.out(5932): http://www.amazon.com/gp/dmusic/media/log_action.mp3/ref=/181-3250961-7148012?ie=UTF8&ASIN=B00137ZWAC&TYPE=DigitalMusicSampleStream&CustomerID=&URL=http%3A%2F%2Famazonm-149.vo.llnwd.net%2Fs%2Fd6%2F100331%2F100331225%2F203942149_S64.mp3%3Fmarketplace%3D1%26e%3D1305784802%26h%3Dab654b0e41c1b60d472f4f5d0f5384d5
05-19 00:00:00.380: DEBUG/MediaPlayer(5932): Couldn't open file on client side, trying server side
05-19 00:00:00.380: INFO/StagefrightPlayer(68): setDataSource('http://www.amazon.com/gp/dmusic/media/log_action.mp3/ref=/181-3250961-7148012?ie=UTF8&ASIN=B00137ZWAC&TYPE=DigitalMusicSampleStream&CustomerID=&URL=http%3A%2F%2Famazonm-149.vo.llnwd.net%2Fs%2Fd6%2F100331%2F100331225%2F203942149_S64.mp3%3Fmarketplace%3D1%26e%3D1305784802%26h%3Dab654b0e41c1b60d472f4f5d0f5384d5
05-19 00:00:00.380: INFO/StagefrightPlayer(68): ')
05-19 00:00:00.380: INFO/NuHTTPDataSource(68): connect to www.amazon.com:80/gp/dmusic/media/log_action.mp3/ref=/181-3250961-7148012?ie=UTF8&ASIN=B00137ZWAC&TYPE=DigitalMusicSampleStream&CustomerID=&URL=http%3A%2F%2Famazonm-149.vo.llnwd.net%2Fs%2Fd6%2F100331%2F100331225%2F203942149_S64.mp3%3Fmarketplace%3D1%26e%3D1305784802%26h%3Dab654b0e41c1b60d472f4f5d0f5384d5
05-19 00:00:00.380: INFO/NuHTTPDataSource(68): @0
05-19 00:00:01.770: INFO/AwesomePlayer(68): mConnectingDataSource->connect() returned -2147483648
05-19 00:00:01.770: ERROR/MediaPlayer(5932): error (1, -2147483648)
05-19 00:00:01.780: DEBUG/MediaPlayer(5932): create failed:
它的工作原理,但有沒有解決方案更優雅? – hunterp 2011-05-19 05:54:04
鏈接到blog.pocketjourney.com在答案是死的。 – Pang 2018-02-15 05:21:03