AsyncPLayer pauses with “INFO/AwesomePlayer(37): cache is running low” log

一个人想着一个人 提交于 2019-12-24 11:28:18

问题


I am using an AsyncPlayer to stream music from an URI and when testing the app on an android 4 emulator, I am getting an couple of pause and resume sequences generated by:

03-14 17:17:51.926: INFO/AwesomePlayer(37): cache is running low (1.96 secs) , pausing.
03-14 17:17:51.936: WARN/MediaPlayer(548): info/warning (703, 0)
03-14 17:17:51.936: INFO/MediaPlayer(548): Info (703,0)
03-14 17:17:51.946: WARN/MediaPlayer(548): info/warning (701, 0)
03-14 17:17:51.946: INFO/MediaPlayer(548): Info (701,0)
03-14 17:17:52.976: INFO/AwesomePlayer(37): cache has filled up (7.42 secs), resuming.

Did anyone encounter this issue, how can I avoid low cache pauses?

Thanks


回答1:


It's a network issue, the issue come from your bandwidth.

The value of the enum : MEDIA_INFO_NETWORK_BANDWIDTH = 703

src: http://androidxref.com/source/xref/frameworks/base/include/media/mediaplayer.h at line 107



来源:https://stackoverflow.com/questions/9705269/asyncplayer-pauses-with-info-awesomeplayer37-cache-is-running-low-log

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!