case OnPlayerEventListener.PLAYER_EVENT_ON_STATUS_CHANGE: int status = bundle.getInt(EventKey.INT_DATA); if (status == IPlayer.STATE_PAUSED || status == IPlayer.STATE_PLAYBACK_COMPLETE) { mStateIcon.setSelected(true); if (status == IPlayer.STATE_PLAYBACK_COMPLETE) { requestReset(null);//重置会稍微有些卡顿 } } else if (status == IPlayer.STATE_STARTED) { mStateIcon.setSelected(false); } break;
文件路径ControllerCover >>> onPlayerEvent
-播放完成按钮图片不会跟随状态自动更改,点击播放按钮不会重新播放,再点击一次才正常
暂时的解决方案 , 增加IPlayer.STATE_PLAYBACK_COMPLETE状态判断
case OnPlayerEventListener.PLAYER_EVENT_ON_STATUS_CHANGE: int status = bundle.getInt(EventKey.INT_DATA); if (status == IPlayer.STATE_PAUSED || status == IPlayer.STATE_PLAYBACK_COMPLETE) { mStateIcon.setSelected(true); if (status == IPlayer.STATE_PLAYBACK_COMPLETE) { requestReset(null);//重置会稍微有些卡顿 } } else if (status == IPlayer.STATE_STARTED) { mStateIcon.setSelected(false); } break;