User 对象
User
对象描述了房间内一个用户的基本信息
userId
string
类型 表示这个用户的 userId
, 是一个用户在房间内的唯一标识
published
boolean
类型 标记这个用户当前是否在房间中发布了媒体对象
publishedTrackInfo
Track 模式可用
TrackInfo>
类型 Array<表示用户当前所有发布到房间中 Track
的 TrackInfo
tracks
Track 模式可用
Track>
类型 Array<表示本地保存的该用户的所有 Track
,分 2 种情况:
- 如果该用户是自己,则这里是所有自己发布的
Track
对象 - 如果该用户是房间里的其他人,则这里是所有自己订阅过他的
Track
对象
userData
string
| undefined
类型 用户的额外数据