> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Player (JSON)

> Player (JSON)

# Player (JSON)

包含游戏会话中一名玩家的数据。

## Player

Player 对象具有以下规范。

| 成员 | 类型 | 说明 |
| - | - | - |
| customData | 8 位无符号整数数组 | 1024 字节的 Base64 编码的游戏特定玩家数据。此值对服务器不透明。 |
| gamertag | string | 玩家的玩家代号——最多 15 个字符。客户端应在 UI 中使用此值来标识该玩家。 |
| isCurrentlyInSession | 布尔值 | 指示玩家当前是否在会话中或已离开会话。 |
| seatIndex | 32 位有符号整数 | 该玩家在会话中的索引。 |
| xuid | 64 位无符号整数 | 玩家的 XBOX User ID (XUID)。 |

## JSON 语法示例

```json theme={null}
{
    "xuid": 2533274790412952,
    "gamertag":"MyTestUser",
    "seatindex": 3
    "customData":"AIHJ2?iE?/jiKE!l5S=T..."
    "isCurrentlyInSession":"true"
}
    
```

## 另请参阅

##### 父主题

[JavaScript 对象表示法 (JSON) 对象参考](/zh-CN/reference/live/rest/json/atoc-xboxlivews-reference-json)

##### 参考

[GameSession (JSON)](/zh-CN/reference/live/rest/json/json-gamesession)


## Related topics

- [player_authenticated](/services/playfab/api-references/events/PlayerIdentity/player-authenticated.md)
- [Delete Player](/services/playfab/api-references/rest/admin/account-management/delete-player.md)
- [Report Player](/services/playfab/api-references/rest/client/account-management/report-player.md)
