首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用NPR StreamProxy实现时出现MediaPlayer错误

使用NPR StreamProxy实现时出现MediaPlayer错误
EN

Stack Overflow用户
提问于 2010-12-27 23:56:56
回答 1查看 1K关注 0票数 2

我正在尝试使用NPR方法通过StreamProxy和PlaybackService类来流式传输音频,流是一个音频/aac文件。

http://code.google.com/p/npr-android-app/source/browse/trunk/Npr/src/org/npr/android/news/PlaybackService.java

( streamProxy.Java与上面的路径相同,无法在帖子中包含两个链接)

但是我得到了一个错误。我得到的日志是

代码语言:javascript
复制
12-27 20:37:29.170 D/org.npr.android.news.PlaybackService(21817): downloading http://provisioning.streamtheworld.com/pls/KVKIFMAAC.pls
12-27 20:37:29.647 D/LocationMasfClient( 1089): getNetworkLocation(): Location not found in cache, making network request
12-27 20:37:30.436 D/LocationMasfClient( 1089): getNetworkLocation(): Number of prefetched entries 5
12-27 20:37:30.499 D/LocationMasfClient( 1089): getNetworkLocation(): Returning network location with accuracy 70.0
12-27 20:37:30.514 D/libgps  ( 1089): GpsInterface_inject_location( 12.969496, 77.632734, 70.000 )
12-27 20:37:30.866 I/BATTD   ( 1016): set_charge_current=0
12-27 20:37:30.866 I/BATTD   ( 1016): set_charge_voltage=3800
12-27 20:37:30.881 D/org.npr.android.news.PlaybackService(21817): listening to http://2173.live.streamtheworld.com:80/KVKIFMAACCMP3 stream=true
12-27 20:37:30.889 D/org.npr.android.news.PlaybackService(21817): SDK Version 8
12-27 20:37:30.889 D/org.npr.android.news.PlaybackService(21817): reset: http://2173.live.streamtheworld.com:80/KVKIFMAACCMP3
12-27 20:37:30.913 I/StagefrightPlayer( 1010): setDataSource('http://2173.live.streamtheworld.com:80/KVKIFMAACCMP3')
12-27 20:37:30.913 D/org.npr.android.news.PlaybackService(21817): Preparing: http://2173.live.streamtheworld.com:80/KVKIFMAACCMP3
12-27 20:37:31.100 D/org.npr.android.news.PlaybackService(21817): Waiting for prepare
12-27 20:37:31.108 D/org.npr.android.news.PlaybackService(21817): downloading http://provisioning.streamtheworld.com/pls/KVKIFMAAC.pls
12-27 20:37:31.725 D/org.npr.android.news.PlaybackService(21817): listening to http://2173.live.streamtheworld.com:80/KVKIFMAACCMP3 stream=true
12-27 20:37:31.725 D/org.npr.android.news.PlaybackService(21817): SDK Version 8
12-27 20:37:31.725 D/org.npr.android.news.PlaybackService(21817): reset: http://2173.live.streamtheworld.com:80/KVKIFMAACCMP3
12-27 20:37:31.725 I/AwesomePlayer( 1010): interrupting the connection process
12-27 20:37:31.834 I/AwesomePlayer( 1010): mConnectingDataSource->connect() returned -2147483648
12-27 20:37:31.834 E/MediaPlayer(21817): error (1, -2147483648)

有没有人能告诉我我哪里错了。

哈里,向你致敬

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-03-04 08:26:32

只是为了回答我自己的问题。

无法通过NPR Streamproxy方法播放AACP流。不过,它们在mp3 streams上确实工作得很好。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4539899

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档