当前位置: 代码迷 >> J2ME >> 如果循环播放歌曲解决思路
  详细解决方案

如果循环播放歌曲解决思路

热度:2677   发布时间:2013-02-25 21:37:07.0
如果循环播放歌曲
手机里有好多首歌曲~怎么实现循环播放这些歌曲呢~给个demo~谢谢




------解决方案--------------------------------------------------------
去看看Player的状态流程图吧
A Player stops when it reaches the end of media; or when the stop method is invoked. When that happens, the Player moves from the STARTED state back to the PREFETCHED state. It is then ready to repeat the cycle.
你只需要根据状态来判断就可以达到你的要求了..
  相关解决方案