我遇到Android SDK问题(deezer-sdk-0.10.16)并播放Radio。
当我发送' mPlayer.skipToNextTrack();'有时(但很多时候),播放器改变音乐,专辑封面并开始播放下一首音乐1~2秒,然后停止音乐约1~2秒,然后重新开始。但有时它很好并且工作得非常好!
我有一些事件的日志。该测试是在WiFi网络中进行的,但在3G网络中也会发生同样的行为,且速率几乎相同。
当它很好并且没有停止音乐时:
12-03 10:47:26.082: D/Radio(23596): onPlayerStateChange: PlayerState: STOPPED / arg1: 6813
12-03 10:47:26.102: D/Radio(23596): onPlayerStateChange: PlayerState: INITIALIZING / arg1: 0
12-03 10:47:26.112: D/Radio(23596): onPlayerStateChange: PlayerState: READY / arg1: 0
12-03 10:47:26.132: D/Radio(23596): onPlayTrack: Title: País do Futebol (feat. Emicida)
12-03 10:47:26.132: D/Radio(23596): onPlayerStateChange: PlayerState: WAITING_FOR_DATA / arg1: 0
12-03 10:47:27.043: D/Radio(23596): onPlayerStateChange: PlayerState: PLAYING / arg1: 0
当我们遇到问题时,请记录下来:
12-03 10:48:32.397: D/Radio(23596): onPlayerStateChange: PlayerState: STOPPED / arg1: 5812
12-03 10:48:32.627: D/Radio(23596): onPlayerStateChange: PlayerState: INITIALIZING / arg1: 0
12-03 10:48:32.637: D/Radio(23596): onPlayerStateChange: PlayerState: READY / arg1: 0
12-03 10:48:32.647: D/Radio(23596): onPlayTrack: Title: Fugidinha
12-03 10:48:32.677: D/Radio(23596): onPlayerStateChange: PlayerState: WAITING_FOR_DATA / arg1: 0
12-03 10:48:33.838: D/Radio(23596): onPlayerStateChange: PlayerState: PLAYING / arg1: 0
12-03 10:48:36.080: D/Radio(23596): onTrackEnded: Title: Fugidinha
12-03 10:48:36.080: D/Radio(23596): onPlayerStateChange: PlayerState: PLAYBACK_COMPLETED / arg1: 191067
12-03 10:48:38.623: D/Radio(23596): onPlayerStateChange: PlayerState: STOPPED / arg1: 191067
12-03 10:48:38.623: D/Radio(23596): onPlayerStateChange: PlayerState: INITIALIZING / arg1: 0
12-03 10:48:38.643: D/Radio(23596): onPlayerStateChange: PlayerState: READY / arg1: 0
12-03 10:48:38.643: D/Radio(23596): onPlayTrack: Title: Fugidinha
12-03 10:48:38.653: D/Radio(23596): onPlayerStateChange: PlayerState: WAITING_FOR_DATA / arg1: 0
12-03 10:48:40.355: D/Radio(23596): onPlayerStateChange: PlayerState: PLAYING / arg1: 0
我希望解决此案,或者至少拦截“停止”。来自sdk的命令并没有真正地停止'音乐。
亲切的问候, 威廉·伯坦