“铃声管理器:无法找到可用的铃声”持续性错误

发布于 2024-10-07 19:34:10 字数 1427 浏览 4 评论 0原文

我们应用程序的一些用户报告铃声无法按预期加载。我在下面列出了其中一位用户的典型 logcat 输出。似乎对默认铃声的请求返回 null(“无法打开铃声内容://settings/system/ringtone”)。我已要求这些用户更改铃声,有时这可以解决问题,但在其他情况下(我所知道的 HTC Hero)更改铃声并不能解决问题。我无法在我们的任何测试设备上重现此问题。关于可能导致此问题的原因、如何调试或如何解决有什么想法吗?

D/Ringtone(  743): create mAudio
D/MediaPlayer(  743): setDataSource(44, 0, 576460752303423487) pid = 743
E/Mp3HwPlayer(   56): ID:24, new Mp3HwPlayer
E/MediaPlayerService(   56): getPlayerType(): Has ID3 info, size = 1024
E/MediaPlayerService(   56): getPlayerType(): Input buffer is MPA format
E/Mp3HwPlayer(   56): ID:24, destory Mp3HwPlayer
D/MediaPlayerService(   56): Create Player playertype=6
D/MediaPlayerService(   56): new PVPlayer for MP3
D/PVPlayer(   56): setDataSource(25, 0, 180143)
D/MediaPlayerService(   56): MediaPlayerService::Client::setDataSource exit
D/MediaPlayerService(   56): returned from setDataSource() in MediaPlayerService::create
D/MediaPlayerService(   56): [23] prepareAsync
I/PlayerDriver(   56): OpenCore disable firewall payload
W/MediaPlayer(  743): info/warning (1, 26)
E/PlayerDriver(   56): Command PLAYER_PREPARE completed with an error or info PVMFErrResource
E/MediaPlayer(  743): error (1, -17)
E/RingtoneManager(  743): Failed to open ringtone content://settings/system/ringtone
E/RingtoneManager(  743): unable to find a usable ringtone
E/IncomingRinger(  743): Couldn't find a ringtone for URI: content://settings/system/ringtone

Some users of our app are reporting that ringtones fail to load as expected. I've included a typical logcat output from one of these users below. It seems that the request for the default ringtone is returning null ("Failed to open ringtone content://settings/system/ringtone"). I've asked these users to change ringtones, and sometimes this resolves the issue, but in other cases (HTC Hero in both the ones I know of) changing the ringtone does not fix the problem. I have been unable to reproduce this problem on any of our test devices. Any thoughts as to what might cause this, how to debug, or how to resolve?

D/Ringtone(  743): create mAudio
D/MediaPlayer(  743): setDataSource(44, 0, 576460752303423487) pid = 743
E/Mp3HwPlayer(   56): ID:24, new Mp3HwPlayer
E/MediaPlayerService(   56): getPlayerType(): Has ID3 info, size = 1024
E/MediaPlayerService(   56): getPlayerType(): Input buffer is MPA format
E/Mp3HwPlayer(   56): ID:24, destory Mp3HwPlayer
D/MediaPlayerService(   56): Create Player playertype=6
D/MediaPlayerService(   56): new PVPlayer for MP3
D/PVPlayer(   56): setDataSource(25, 0, 180143)
D/MediaPlayerService(   56): MediaPlayerService::Client::setDataSource exit
D/MediaPlayerService(   56): returned from setDataSource() in MediaPlayerService::create
D/MediaPlayerService(   56): [23] prepareAsync
I/PlayerDriver(   56): OpenCore disable firewall payload
W/MediaPlayer(  743): info/warning (1, 26)
E/PlayerDriver(   56): Command PLAYER_PREPARE completed with an error or info PVMFErrResource
E/MediaPlayer(  743): error (1, -17)
E/RingtoneManager(  743): Failed to open ringtone content://settings/system/ringtone
E/RingtoneManager(  743): unable to find a usable ringtone
E/IncomingRinger(  743): Couldn't find a ringtone for URI: content://settings/system/ringtone

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

濫情▎り 2024-10-14 19:34:10

看起来铃声存储在SD卡上,并且您没有权限读取SD数据,因此返回null。我的媒体播放器也遇到类似的问题。

It looks like the ringtone is stored on a SD card, and you haven't permission to read SD data, so it returns null. I got similar problem with my mediaPlayer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文