读书人

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

发布时间: 2012-01-01 23:10:55 作者: rapoo

如果循环播放歌曲
手机里有好多首歌曲~怎么实现循环播放这些歌曲呢~给个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.
你只需要根据状态来判断就可以达到你的要求了..

读书人网 >J2ME开发

热点推荐