refactor Player, let it support show prompt message.