def cvp_player_to_dict(player):
    """
    Convert a player object from a Tree to a CVP-compliant dict.
    """
    return {
        "session": player.session,
        "userid": player.userid,
        "name": player.name,
        "deaf": player.deaf,
        "mute": player.mute,
        "selfDeaf": player.selfDeaf,
        "selfMute": player.selfMute,
        "suppress": player.suppress,
        "onlinesecs": player.onlinesecs,
        "idlesecs": player.idlesecs
    }