什么是MediaPlayer的消息"内部/外部状态不匹配校正的QUOT;意味着? [英] What does the MediaPlayer message "internal/external state mismatch corrected" mean?

查看:619
本文介绍了什么是MediaPlayer的消息"内部/外部状态不匹配校正的QUOT;意味着?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在做的一些的MediaPlayer pretty复杂的事情。不同于<一个href=\"http://stackoverflow.com/questions/7399286/android-media-player-internal-external-state-mismatch\">Android媒体播放器内部外部的状态失配,我只能用音频,视频不工作。在MediaPlayer类是出了名的脆弱和不直观,所以这是很难解决它的怪癖。我一直在做尽我所能,但还是碰上难以诊断的错误。

I've been doing some pretty complex things with the MediaPlayer. Unlike Android Media Player internal external state mismatch, I'm only working with audio, not video. The MediaPlayer class is notoriously fragile and unintuitive, so it's difficult to work around its quirks. I've been doing the best I can, but still run into difficult-to-diagnose bugs.

在这种情况下,我偶尔看到错误消息内部/外部状态不匹配纠正。我不知道为什么。我同时运行多个MediaPlayers,使用MediaRecorder然后在MediaPlayer的播放它,停止和启动和复位和寻找...中的至少一些的时间似乎开始之后发生()

In this case, I occasionally see the error message "internal/external state mismatch corrected". I have no idea why. I'm running multiple MediaPlayers simultaneously, using MediaRecorder and then playing it in a MediaPlayer, stopping and starting and resetting and seeking... at least some of the time it seems to occur after start().

这是在Android中的一个bug,还是我做错了什么?谁能告诉我这是什么错误信息重新presents,如果有件事情我应该做的不同,或者如果我可以放心地忽略它?

Is this a bug in Android, or am I doing something wrong? Can anyone tell me what this error message represents, and if there's something I should be doing differently or if I can safely ignore it?

推荐答案

不知道回答你的问题,但看的在源$ C ​​$ C ,似乎国家是 MEDIA_PLAYER_STARTED 虽然球员停止播放已经和Stagefright状态更改为 MEDIA_PLAYER_PAUSED

Not sure that answers your question, but looking at the source code, it seems like the state was MEDIA_PLAYER_STARTED although the player stopped playing already, and Stagefright changes the state to MEDIA_PLAYER_PAUSED.

有似乎是一个开放的错误为: HTTP :?//$c$c.google.com/p/android/issues/detail ID = 9732

There's seem to be an open bug for that: http://code.google.com/p/android/issues/detail?id=9732

这篇关于什么是MediaPlayer的消息&QUOT;内部/外部状态不匹配校正的QUOT;意味着?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆