首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2ME开发 >

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

2012-01-01 
如果循环播放歌曲手机里有好多首歌曲~怎么实现循环播放这些歌曲呢~给个demo~谢谢[解决办法]去看看Player的

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

热点排行