# Interface IAgoraRTCRemoteUser (/zh-CN/api-reference/rtc/react-sdk/web-sdk/interfaces/iagorartcremoteuser)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

该对象描述了频道内远端用户的当前状态，包括远端用户 ID、远端是否发布了音频或视频等。

如果检测到远端用户已经发布，可以将这个对象传入 [AgoraRTCClient.subscribe](/zh-CN/api-reference/rtc/react-sdk/web-sdk/interfaces/iagorartcclient#subscribe) 中发起订阅，订阅成功后可以通过本对象的 [audioTrack](/zh-CN/api-reference/rtc/react-sdk/web-sdk/interfaces/iagorartcremoteuser#audiotrack) 或者 [videoTrack](/zh-CN/api-reference/rtc/react-sdk/web-sdk/interfaces/iagorartcremoteuser#videotrack) 字段获取远端音视频轨道对象用于播放。

## Properties [#properties]

<a id="audiotrack"></a>

<a id="optional-audiotrack"></a>

### audioTrack [#audiotrack]

<ApiSignature labels="Optional">

audioTrack: [IRemoteAudioTrack](/zh-CN/api-reference/rtc/react-sdk/web-sdk/interfaces/iremoteaudiotrack)

</ApiSignature>

如果成功订阅了远端用户的音频，这里会保存远端的音频轨道对象。

<a id="hasaudio"></a>

### hasAudio [#hasaudio]

<ApiSignature>

hasAudio: boolean

</ApiSignature>

远端当前是否在发送音频。

- `true`: 远端用户在发送音频。
- `false`: 远端用户没有在发送音频。

<a id="hasvideo"></a>

### hasVideo [#hasvideo]

<ApiSignature>

hasVideo: boolean

</ApiSignature>

远端当前是否在发送视频。

- `true`: 远端用户在发送视频。
- `false`: 远端用户没有在发送视频。

<a id="uid"></a>

### uid [#uid]

<ApiSignature>

uid: [UID](/zh-CN/api-reference/rtc/react-sdk/web-sdk/globals#uid)

</ApiSignature>

远端用户的用户 ID。

<a id="videotrack"></a>

<a id="optional-videotrack"></a>

### videoTrack [#videotrack]

<ApiSignature labels="Optional">

videoTrack: [IRemoteVideoTrack](/zh-CN/api-reference/rtc/react-sdk/web-sdk/interfaces/iremotevideotrack)

</ApiSignature>

如果成功订阅了远端用户的视频，这里会保存远端的视频轨道对象。
