Closing MediaPlayer properly

折月煮酒 提交于 2019-12-06 04:31:56

Not sure if this is critical, but I call mPlayer.reset() in between stop() and release() (and I don't see this problem). Are you absolutely sure it's your app that's generating these log entries?

Also, it's important that your media player calls are not run on the UI thread as they can cause ANRs. Also, run them all on the same background thread so that media player calls get serialized, since the MediaPlayer is not thread safe.

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