Type Definitions
RemoteMutedState
Properties:
Name | Type | Description |
---|---|---|
userId |
string |
远端用户ID |
hasVideo |
boolean |
是否有视频 |
hasAudio |
boolean |
是否有音频 |
audioMuted |
boolean |
是否静音 |
videoMuted |
boolean |
是否关闭摄像头 |
远端用户音视频 mute 状态
TransportStats
Properties:
Name | Type | Description |
---|---|---|
rtt |
number |
SDK 到腾讯视频云的 RTT (Round-Trip Time),单位 ms |
传输状态统计
Type:
- object
LocalAudioStats
Properties:
Name | Type | Description |
---|---|---|
bytesSent |
number |
已发送字节数 |
packetsSent |
number |
已发送包数 |
本地流音频统计数据
Type:
- object
LocalAudioStatsMap
本地流音频统计数据Map对象,一个 userId
对应一个 LocalAudioStats
。
Type:
- object
LocalVideoStats
Properties:
Name | Type | Description |
---|---|---|
bytesSent |
number |
已发送字节数 |
packetsSent |
number |
已发送包数 |
framesEncoded |
number |
已编码帧数 |
framesSent |
number |
已发送帧数 |
frameWidth |
number |
视频宽度 |
frameHeight |
number |
视频高度 |
本地流视频统计数据
Type:
- object
LocalVideoStatsMap
本地流视频统计数据Map对象,一个 userId
对应一个 LocalVideoStats
。
Type:
- object
RemoteAudioStats
Properties:
Name | Type | Description |
---|---|---|
bytesReceived |
number |
已接收字节数 |
packetsReceived |
number |
已接收包数 |
packetsLost |
number |
丢包数 |
远端流音频统计数据
Type:
- object
RemoteAudioStatsMap
远端流音频统计数据Map对象,一个 userId
对应一个 RemoteAudioStats
。
Type:
- object
RemoteVideoStats
Properties:
Name | Type | Description |
---|---|---|
bytesReceived |
number |
已接收字节数 |
packetsReceived |
number |
已接收包数 |
packetsLost |
number |
丢包数 |
framesDecoded |
number |
已解码帧数 |
frameWidth |
number |
视频宽度 |
frameHeight |
number |
视频高度 |
远端视频统计数据
Type:
- object
RemoteVideoStatsMap
远端流视频统计数据Map对象,一个 userId
对应一个 RemoteVideoStats
。
Type:
- object
MixUser
Properties:
Name | Type | Description |
---|---|---|
userId |
string |
用户标识[必填],该用户的 userId |
pureAudio |
boolean |
只混入该用户的音频流, 若该值为true, 则以下视频相关参数不需要传入 |
width |
number |
该用户流在混流中的宽度(px),必须大于等于0,默认值为 0 |
height |
number |
该用户流在混流中的高度(px),必须大于等于0,默认值为 0 |
locationX |
number |
以混流左上角为起点,该用户流在混流中的 X 坐标(px),必须大于等于 0,默认值为 0 |
locationY |
number |
以混流左上角为起点,该用户流在混流中的 Y 坐标(px),必须大于等于 0,默认值为 0 |
zOrder |
number |
该用户流在混流中的图层层次,取值范围为[1, 15];若 pureAudio 的值为 false, 则 zOrder 必传,且各混入流的 zOrder 不可重复 |
混入流的用户信息
Type:
- object