@realsee/live 0.6.15 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +50 -55
  2. package/dist/index.cjs.js +89 -24
  3. package/dist/index.d.cts +1336 -0
  4. package/dist/index.d.ts +1336 -5
  5. package/dist/index.esm.js +30 -0
  6. package/docs/README.md +435 -0
  7. package/docs/classes/BrowserRTC.md +436 -0
  8. package/docs/classes/BrowserRTC4Chime.md +558 -0
  9. package/docs/classes/CoreRTC.md +448 -0
  10. package/docs/classes/Live.md +797 -0
  11. package/docs/classes/Subscribe.md +211 -0
  12. package/docs/classes/VRWebViewRTC.md +436 -0
  13. package/docs/enumerations/BuiltInRTCType.md +27 -0
  14. package/docs/enumerations/BuiltinActionType.md +81 -0
  15. package/docs/enumerations/BuiltinEventType.md +33 -0
  16. package/docs/enumerations/Command.md +107 -0
  17. package/docs/enumerations/LiveState.md +53 -0
  18. package/docs/enumerations/MemUserStatus.md +67 -0
  19. package/docs/enumerations/MicroStatus.md +33 -0
  20. package/docs/enumerations/RTCJoinedInfoCodeEnum.md +69 -0
  21. package/docs/enumerations/RTCType.md +39 -0
  22. package/docs/enumerations/UserStatus.md +45 -0
  23. package/docs/enumerations/WebSocketCloseError.md +117 -0
  24. package/docs/enumerations/WebSocketErrorType.md +77 -0
  25. package/docs/enumerations/WebSocketState.md +69 -0
  26. package/docs/functions/GetVoiceSignFn.md +27 -0
  27. package/docs/functions/clearLiveInstanceIfNeed.md +17 -0
  28. package/docs/functions/createLive.md +27 -0
  29. package/docs/functions/createLiveReact.md +449 -0
  30. package/docs/functions/parseLiveMsg.md +27 -0
  31. package/docs/functions/parseWSClsErr.md +21 -0
  32. package/docs/globals.md +77 -0
  33. package/docs/interfaces/AttendeeResponse.md +37 -0
  34. package/docs/interfaces/LiveOptions.md +246 -0
  35. package/docs/interfaces/MeetingResponse.md +55 -0
  36. package/docs/interfaces/MeetingSessionConfigurationOptions.md +93 -0
  37. package/docs/interfaces/Permission.md +147 -0
  38. package/docs/interfaces/RTCJoinedInfo.md +67 -0
  39. package/docs/interfaces/RTCProtocol.md +404 -0
  40. package/docs/interfaces/VRWebViewRTCOptions.md +41 -0
  41. package/docs/namespaces/SubscribeMixinType/README.md +17 -0
  42. package/docs/namespaces/SubscribeMixinType/interfaces/emit.md +31 -0
  43. package/docs/namespaces/SubscribeMixinType/interfaces/hasListener.md +25 -0
  44. package/docs/namespaces/SubscribeMixinType/interfaces/off.md +31 -0
  45. package/docs/namespaces/SubscribeMixinType/interfaces/on.md +37 -0
  46. package/docs/namespaces/SubscribeMixinType/interfaces/once.md +35 -0
  47. package/docs/type-aliases/BuiltinMsg.md +41 -0
  48. package/docs/type-aliases/EventMap.md +17 -0
  49. package/docs/type-aliases/EventType.md +19 -0
  50. package/docs/type-aliases/GetVoiceSign.md +15 -0
  51. package/docs/type-aliases/GetVoiceSignParams.md +35 -0
  52. package/docs/type-aliases/GetVoiceSignReturnType.md +41 -0
  53. package/docs/type-aliases/KeyframeEventType.md +19 -0
  54. package/docs/type-aliases/LiveBuiltInData.md +47 -0
  55. package/docs/type-aliases/LiveConnectOptions.md +47 -0
  56. package/docs/type-aliases/LiveEventType.md +165 -0
  57. package/docs/type-aliases/LiveMsg.md +53 -0
  58. package/docs/type-aliases/LiveProviderPropTypes.md +27 -0
  59. package/docs/type-aliases/RTCActionReactCallback.md +13 -0
  60. package/docs/type-aliases/RTCEventType.md +65 -0
  61. package/docs/type-aliases/ReqLiveMsg.md +45 -0
  62. package/docs/type-aliases/RoomInfo.md +55 -0
  63. package/docs/type-aliases/UserInfo.md +77 -0
  64. package/docs/type-aliases/UserInfoExt.md +33 -0
  65. package/docs/type-aliases/UserVolume.md +25 -0
  66. package/docs/type-aliases/WebSocketError.md +31 -0
  67. package/package.json +41 -31
  68. package/dist/index.cjs.js.map +0 -1
  69. package/dist/index.es.js +0 -2328
  70. package/dist/index.es.js.map +0 -1
  71. package/dist/live/controller.d.ts +0 -118
  72. package/dist/live/createLive.d.ts +0 -8
  73. package/dist/live/createLiveReact.d.ts +0 -52
  74. package/dist/live/live.d.ts +0 -182
  75. package/dist/rtc/BrowserRTC.d.ts +0 -39
  76. package/dist/rtc/BrowserRTC4Chime.d.ts +0 -60
  77. package/dist/rtc/CoreRTC.d.ts +0 -23
  78. package/dist/rtc/VRWebViewRTC.d.ts +0 -97
  79. package/dist/rtc/index.d.ts +0 -5
  80. package/dist/typings/chime/AttendeeResponse.d.ts +0 -5
  81. package/dist/typings/chime/MeetingResponse.d.ts +0 -12
  82. package/dist/typings/chime/MeetingSessionConfigurationOptions.d.ts +0 -16
  83. package/dist/typings/chime/index.d.ts +0 -3
  84. package/dist/typings/index.d.ts +0 -4
  85. package/dist/typings/live/EventType.d.ts +0 -74
  86. package/dist/typings/live/GetVoiceSign.d.ts +0 -45
  87. package/dist/typings/live/LiveConnectOptions.d.ts +0 -24
  88. package/dist/typings/live/LiveMsg.d.ts +0 -133
  89. package/dist/typings/live/LiveOptions.d.ts +0 -79
  90. package/dist/typings/live/LiveState.d.ts +0 -15
  91. package/dist/typings/live/RoomInfo.d.ts +0 -13
  92. package/dist/typings/live/UserInfo.d.ts +0 -103
  93. package/dist/typings/live/UserVolume.d.ts +0 -7
  94. package/dist/typings/live/WebSocket.d.ts +0 -82
  95. package/dist/typings/live/index.d.ts +0 -10
  96. package/dist/typings/react/RTCActionReactCallback.d.ts +0 -2
  97. package/dist/typings/react/index.d.ts +0 -1
  98. package/dist/typings/rtc/VRWebViewRTCOptions.d.ts +0 -6
  99. package/dist/typings/rtc/eventType.d.ts +0 -44
  100. package/dist/typings/rtc/index.d.ts +0 -5
  101. package/dist/typings/rtc/joinedInfo.d.ts +0 -38
  102. package/dist/typings/rtc/protocol.d.ts +0 -62
  103. package/dist/typings/rtc/type.d.ts +0 -12
  104. package/dist/utils/RobustWebSocket.d.ts +0 -160
  105. package/dist/utils/appendUri.d.ts +0 -1
  106. package/dist/utils/clientDetector.d.ts +0 -4
  107. package/dist/utils/equal.d.ts +0 -10
  108. package/dist/utils/logger.d.ts +0 -16
  109. package/dist/utils/subscribe.d.ts +0 -75
  110. package/dist/utils/uuid.d.ts +0 -4
  111. package/docs/.nojekyll +0 -1
  112. package/docs/assets/highlight.css +0 -120
  113. package/docs/assets/main.js +0 -58
  114. package/docs/assets/search.js +0 -1
  115. package/docs/assets/style.css +0 -1280
  116. package/docs/classes/BrowserRTC.html +0 -561
  117. package/docs/classes/BrowserRTC4Chime.html +0 -602
  118. package/docs/classes/CoreRTC.html +0 -432
  119. package/docs/classes/Live.html +0 -812
  120. package/docs/classes/VRWebViewRTC.html +0 -639
  121. package/docs/enums/BuiltInRTCType.html +0 -69
  122. package/docs/enums/BuiltinActionType.html +0 -112
  123. package/docs/enums/BuiltinEventType.html +0 -76
  124. package/docs/enums/Command.html +0 -134
  125. package/docs/enums/LiveState.html +0 -89
  126. package/docs/enums/MemUserStatus.html +0 -97
  127. package/docs/enums/MicroStatus.html +0 -76
  128. package/docs/enums/RTCJoinedInfoCodeEnum.html +0 -103
  129. package/docs/enums/RTCType.html +0 -79
  130. package/docs/enums/UserStatus.html +0 -85
  131. package/docs/enums/WebSocketCloseError.html +0 -139
  132. package/docs/enums/WebSocketErrorType.html +0 -104
  133. package/docs/enums/WebSocketState.html +0 -103
  134. package/docs/functions/_clearLiveInstanceIfNeed.html +0 -98
  135. package/docs/functions/createLive.html +0 -111
  136. package/docs/functions/createLiveReact.html +0 -579
  137. package/docs/functions/parseLiveMsg.html +0 -109
  138. package/docs/functions/parseWSClsErr.html +0 -103
  139. package/docs/index.html +0 -474
  140. package/docs/interfaces/AttendeeResponse.html +0 -80
  141. package/docs/interfaces/LiveOptions.html +0 -272
  142. package/docs/interfaces/MeetingResponse.html +0 -90
  143. package/docs/interfaces/MeetingSessionConfigurationOptions.html +0 -119
  144. package/docs/interfaces/Permission.html +0 -157
  145. package/docs/interfaces/RTCJoinedInfo.html +0 -104
  146. package/docs/interfaces/RTCProtocol.html +0 -424
  147. package/docs/interfaces/VRWebViewRTCOptions.html +0 -73
  148. package/docs/modules.html +0 -156
  149. package/docs/types/BuiltinMsg.html +0 -112
  150. package/docs/types/EventType.html +0 -101
  151. package/docs/types/GetVoiceSign.html +0 -109
  152. package/docs/types/GetVoiceSignParams.html +0 -111
  153. package/docs/types/GetVoiceSignReturnType.html +0 -115
  154. package/docs/types/KeyframeTypes.html +0 -101
  155. package/docs/types/LiveBuiltInData.html +0 -117
  156. package/docs/types/LiveConnectOptions.html +0 -123
  157. package/docs/types/LiveEventType.html +0 -276
  158. package/docs/types/LiveMsg.html +0 -117
  159. package/docs/types/LiveProviderPropTypes.html +0 -106
  160. package/docs/types/RTCActionReactCallback.html +0 -94
  161. package/docs/types/RTCEventType.html +0 -210
  162. package/docs/types/ReqLiveMsg.html +0 -118
  163. package/docs/types/RoomInfo.html +0 -118
  164. package/docs/types/UserInfo.html +0 -139
  165. package/docs/types/UserInfoExt.html +0 -109
  166. package/docs/types/UserVolume.html +0 -103
  167. package/docs/types/WebSocketError.html +0 -105
@@ -0,0 +1,35 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / GetVoiceSignParams
6
+
7
+ # Type Alias: GetVoiceSignParams
8
+
9
+ > **GetVoiceSignParams**: `object`
10
+
11
+ 获取用户语音签名的参数
12
+
13
+ ## Type declaration
14
+
15
+ ### roomId
16
+
17
+ > **roomId**: `string` \| `number`
18
+
19
+ 房间 id
20
+
21
+ ### userId
22
+
23
+ > **userId**: `string`
24
+
25
+ 用户 id
26
+
27
+ ### voiceId
28
+
29
+ > **voiceId**: `string`
30
+
31
+ 语音房间号
32
+
33
+ ## Defined in
34
+
35
+ typings/live/GetVoiceSign.ts:26
@@ -0,0 +1,41 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / GetVoiceSignReturnType
6
+
7
+ # Type Alias: GetVoiceSignReturnType
8
+
9
+ > **GetVoiceSignReturnType**: `object`
10
+
11
+ 语音签名的返回值
12
+
13
+ ## Type declaration
14
+
15
+ ### roomId
16
+
17
+ > **roomId**: `string` \| `number`
18
+
19
+ rtc 的 语音房间号
20
+
21
+ ### sdkAppId
22
+
23
+ > **sdkAppId**: `number`
24
+
25
+ rtc 的 sdkAppId
26
+
27
+ ### userId
28
+
29
+ > **userId**: `string`
30
+
31
+ rtc 的 用户 id
32
+
33
+ ### userSig
34
+
35
+ > **userSig**: `string`
36
+
37
+ rtc 的 用户签名
38
+
39
+ ## Defined in
40
+
41
+ typings/live/GetVoiceSign.ts:4
@@ -0,0 +1,19 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / KeyframeEventType
6
+
7
+ # Type Alias: KeyframeEventType\<KeyframesSnapshot\>
8
+
9
+ > **KeyframeEventType**\<`KeyframesSnapshot`\>: `{ [key in keyof KeyframesSnapshot]: Function }`
10
+
11
+ 帧数据订阅发布的事件描述
12
+
13
+ ## Type Parameters
14
+
15
+ • **KeyframesSnapshot**
16
+
17
+ ## Defined in
18
+
19
+ typings/live/EventType.ts:75
@@ -0,0 +1,47 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / LiveBuiltInData
6
+
7
+ # Type Alias: LiveBuiltInData\<KeyframesSnapshot\>
8
+
9
+ > **LiveBuiltInData**\<`KeyframesSnapshot`\>: `object`
10
+
11
+ ## Type Parameters
12
+
13
+ • **KeyframesSnapshot**
14
+
15
+ ## Type declaration
16
+
17
+ ### keyframes
18
+
19
+ > **keyframes**: `Y.Map`\<`KeyframesSnapshot`\>
20
+
21
+ ### roomInfo?
22
+
23
+ > `optional` **roomInfo**: [`RoomInfo`](RoomInfo.md)
24
+
25
+ ### rtcInfo?
26
+
27
+ > `optional` **rtcInfo**: `object`
28
+
29
+ ### rtcInfo.type
30
+
31
+ > **type**: [`RTCType`](../enumerations/RTCType.md)
32
+
33
+ ### rtcInfo.voiceId
34
+
35
+ > **voiceId**: `string`
36
+
37
+ ### selfInfo?
38
+
39
+ > `optional` **selfInfo**: [`UserInfo`](UserInfo.md)
40
+
41
+ ### userList?
42
+
43
+ > `optional` **userList**: [`UserInfo`](UserInfo.md)[]
44
+
45
+ ## Defined in
46
+
47
+ live/live.ts:33
@@ -0,0 +1,47 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / LiveConnectOptions
6
+
7
+ # Type Alias: LiveConnectOptions
8
+
9
+ > **LiveConnectOptions**: `object`
10
+
11
+ 带看连接配置项
12
+
13
+ ## Type declaration
14
+
15
+ ### force?
16
+
17
+ > `optional` **force**: `boolean`
18
+
19
+ 是否强制加入
20
+ 如果为 true,会强制加入房间,不管之前是否已经加入,会把之前的连接断开
21
+ 如果为 false,会检查是否已经加入房间,如果已经加入,不会再次加入
22
+
23
+ ### getTicket()?
24
+
25
+ > `optional` **getTicket**: () => `Promise`\<`string`\>
26
+
27
+ 获取带看房间 ticket 的方法
28
+
29
+ #### Returns
30
+
31
+ `Promise`\<`string`\>
32
+
33
+ ### rtcMicStatus?
34
+
35
+ > `optional` **rtcMicStatus**: [`MicroStatus`](../enumerations/MicroStatus.md)
36
+
37
+ 初始的麦克风状态
38
+
39
+ ### url?
40
+
41
+ > `optional` **url**: `string`
42
+
43
+ 这个是带看房间的 ws 地址
44
+
45
+ ## Defined in
46
+
47
+ typings/live/LiveConnectOptions.ts:6
@@ -0,0 +1,165 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / LiveEventType
6
+
7
+ # Type Alias: LiveEventType\<KeyframesSnapshot\>
8
+
9
+ > **LiveEventType**\<`KeyframesSnapshot`\>: `object`
10
+
11
+ 带看事件列表
12
+
13
+ ## Type Parameters
14
+
15
+ • **KeyframesSnapshot**
16
+
17
+ ## Type declaration
18
+
19
+ ### broadcast()
20
+
21
+ 收到其他用户的广播消息。
22
+
23
+ #### Parameters
24
+
25
+ • **evtMsg**: `Record`\<`string`, `any`\>
26
+
27
+ • **frontRequestId**: `string`
28
+
29
+ #### Returns
30
+
31
+ `void`
32
+
33
+ ### builtinEvent()
34
+
35
+ 内置消息事件
36
+
37
+ #### Parameters
38
+
39
+ • **builtinMsg**: [`BuiltinMsg`](BuiltinMsg.md)
40
+
41
+ #### Returns
42
+
43
+ `void`
44
+
45
+ ### error()
46
+
47
+ 异常消息:不符合规范。
48
+
49
+ #### Parameters
50
+
51
+ • **liveMsg**: [`LiveMsg`](LiveMsg.md)
52
+
53
+ #### Returns
54
+
55
+ `void`
56
+
57
+ ### keyframes()
58
+
59
+ 获取其他用户输送的帧数据:根据此帧数据更新UI状态。
60
+
61
+ #### Parameters
62
+
63
+ • **keyframes**: `Partial`\<`KeyframesSnapshot`\>
64
+
65
+ • **frontRequestId**: `string`
66
+
67
+ #### Returns
68
+
69
+ `void`
70
+
71
+ ### kickOut()
72
+
73
+ 被踢出房间
74
+
75
+ #### Returns
76
+
77
+ `void`
78
+
79
+ ### ~~readyKeyframeSync()~~
80
+
81
+ 带看已经就绪,可以发送帧数据。
82
+
83
+ #### Parameters
84
+
85
+ • **lastKeyframe**: `Partial`\<`KeyframesSnapshot`\>
86
+
87
+ 带看最后一帧数据(链接切换、断网等重连恢复上次会话帧状态),你可以通过此数据拉齐当前UI状态。
88
+
89
+ #### Returns
90
+
91
+ `void`
92
+
93
+ #### Deprecated
94
+
95
+ 此事件已废弃,请使用 `keyframes` 事件替代,最后的帧数据会通过 `keyframes` 事件发送,同时 keyframes 对象在 ready 后会自动更新。
96
+
97
+ ### roomChange()
98
+
99
+ 内置消息事件:房间信息改变
100
+
101
+ #### Parameters
102
+
103
+ • **builtinMsg**: [`BuiltinMsg`](BuiltinMsg.md)
104
+
105
+ #### Returns
106
+
107
+ `void`
108
+
109
+ ### selfInfoUpdate()
110
+
111
+ 个人信息发生更新。
112
+
113
+ #### Parameters
114
+
115
+ • **userInfo**: [`UserInfo`](UserInfo.md)
116
+
117
+ • **frontRequestId**: `string`
118
+
119
+ #### Returns
120
+
121
+ `void`
122
+
123
+ ### stateChange()
124
+
125
+ 带看状态变化
126
+
127
+ #### Parameters
128
+
129
+ • **state**: [`LiveState`](../enumerations/LiveState.md)
130
+
131
+ • **prevState?**: [`LiveState`](../enumerations/LiveState.md)
132
+
133
+ #### Returns
134
+
135
+ `void`
136
+
137
+ ### userChange()
138
+
139
+ 内置消息事件: 用户信息改变
140
+
141
+ #### Parameters
142
+
143
+ • **builtinMsg**: [`BuiltinMsg`](BuiltinMsg.md)
144
+
145
+ #### Returns
146
+
147
+ `void`
148
+
149
+ ### userListUpdate()
150
+
151
+ 用户列表更新。
152
+
153
+ #### Parameters
154
+
155
+ • **userList**: [`UserInfo`](UserInfo.md)[]
156
+
157
+ • **frontRequestId**: `string`
158
+
159
+ #### Returns
160
+
161
+ `void`
162
+
163
+ ## Defined in
164
+
165
+ typings/live/EventType.ts:8
@@ -0,0 +1,53 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / LiveMsg
6
+
7
+ # Type Alias: LiveMsg
8
+
9
+ > **LiveMsg**: `object`
10
+
11
+ 响应的信息结构体。
12
+
13
+ ## Type declaration
14
+
15
+ ### appId
16
+
17
+ > **appId**: `string`
18
+
19
+ ### code
20
+
21
+ > **code**: `string`
22
+
23
+ ### command
24
+
25
+ > **command**: [`Command`](../enumerations/Command.md)
26
+
27
+ ### data
28
+
29
+ > **data**: `Record`\<`string`, `any`\> \| `Record`\<`string`, `any`\>[]
30
+
31
+ ### frontRequestId
32
+
33
+ > **frontRequestId**: `string`
34
+
35
+ ### message
36
+
37
+ > **message**: `string`
38
+
39
+ ### requestId
40
+
41
+ > **requestId**: `string`
42
+
43
+ ### roomCode
44
+
45
+ > **roomCode**: `string`
46
+
47
+ ### triggerUserId
48
+
49
+ > **triggerUserId**: `string`
50
+
51
+ ## Defined in
52
+
53
+ typings/live/LiveMsg.ts:122
@@ -0,0 +1,27 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / LiveProviderPropTypes
6
+
7
+ # Type Alias: LiveProviderPropTypes\<KeyframesSnapshot\>
8
+
9
+ > **LiveProviderPropTypes**\<`KeyframesSnapshot`\>: `object`
10
+
11
+ ## Type Parameters
12
+
13
+ • **KeyframesSnapshot** *extends* `Record`\<`string`, `any`\>
14
+
15
+ ## Type declaration
16
+
17
+ ### children?
18
+
19
+ > `optional` **children**: `React.ReactNode`
20
+
21
+ ### live?
22
+
23
+ > `optional` **live**: [`Live`](../classes/Live.md)\<`KeyframesSnapshot`\>
24
+
25
+ ## Defined in
26
+
27
+ live/createLiveReact.ts:19
@@ -0,0 +1,13 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / RTCActionReactCallback
6
+
7
+ # Type Alias: RTCActionReactCallback
8
+
9
+ > **RTCActionReactCallback**: `Pick`\<[`RTCProtocol`](../interfaces/RTCProtocol.md), `"join"` \| `"quit"` \| `"shock"` \| `"toggleMicro"` \| `"detectMicro"`\>
10
+
11
+ ## Defined in
12
+
13
+ typings/react/RTCActionReactCallback.ts:3
@@ -0,0 +1,65 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / RTCEventType
6
+
7
+ # Type Alias: RTCEventType
8
+
9
+ > **RTCEventType**: `object`
10
+
11
+ RTC 异步事件类型。
12
+
13
+ ## Type declaration
14
+
15
+ ### error()
16
+
17
+ 错误\异常
18
+
19
+ #### Parameters
20
+
21
+ • **error**: [`RTCJoinedInfo`](../interfaces/RTCJoinedInfo.md) \| `Error`
22
+
23
+ #### Returns
24
+
25
+ `void`
26
+
27
+ ### joined()
28
+
29
+ 成功加入语音房间。
30
+
31
+ #### Returns
32
+
33
+ `void`
34
+
35
+ ### joinWillStart()
36
+
37
+ 即将加入房间。
38
+
39
+ #### Returns
40
+
41
+ `void`
42
+
43
+ ### userVolumes()
44
+
45
+ 每个用户的音量。
46
+
47
+ #### Parameters
48
+
49
+ • **userVolumes**: [`UserVolume`](UserVolume.md)[]
50
+
51
+ #### Returns
52
+
53
+ `void`
54
+
55
+ ### weakNetwork()
56
+
57
+ 弱网提醒事件。
58
+
59
+ #### Returns
60
+
61
+ `void`
62
+
63
+ ## Defined in
64
+
65
+ typings/rtc/eventType.ts:7
@@ -0,0 +1,45 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / ReqLiveMsg
6
+
7
+ # Type Alias: ReqLiveMsg
8
+
9
+ > **ReqLiveMsg**: `object`
10
+
11
+ 向服务端请求数据时的数据格式。
12
+
13
+ ## Type declaration
14
+
15
+ ### command
16
+
17
+ > **command**: [`Command`](../enumerations/Command.md)
18
+
19
+ 请求指令。
20
+
21
+ ### data
22
+
23
+ > **data**: `object`
24
+
25
+ 数据内容
26
+
27
+ #### Index Signature
28
+
29
+ \[`key`: `string`\]: `any`
30
+
31
+ ### data.to\_user\_ids?
32
+
33
+ > `optional` **to\_user\_ids**: `string`[]
34
+
35
+ 如果此数据仅发送给某些用户,请提供这些用户的ucid。
36
+
37
+ ### front\_request\_id
38
+
39
+ > **front\_request\_id**: `string` \| `number`
40
+
41
+ 前端请求时生成的uuid()。
42
+
43
+ ## Defined in
44
+
45
+ typings/live/LiveMsg.ts:28
@@ -0,0 +1,55 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / RoomInfo
6
+
7
+ # Type Alias: RoomInfo
8
+
9
+ > **RoomInfo**: `object`
10
+
11
+ ## Type declaration
12
+
13
+ ### info
14
+
15
+ > **info**: `object`
16
+
17
+ ### info.app\_id
18
+
19
+ > **app\_id**: `string`
20
+
21
+ ### info.create\_time
22
+
23
+ > **create\_time**: `string`
24
+
25
+ ### info.create\_user\_id
26
+
27
+ > **create\_user\_id**: `string`
28
+
29
+ ### info.extension
30
+
31
+ > **extension**: `Record`\<`string`, `any`\>
32
+
33
+ ### info.id
34
+
35
+ > **id**: `string` \| `number`
36
+
37
+ ### info.room\_code
38
+
39
+ > **room\_code**: `string`
40
+
41
+ ### info.status
42
+
43
+ > **status**: `string` \| `number`
44
+
45
+ ### init\_timestamp
46
+
47
+ > **init\_timestamp**: `string`
48
+
49
+ ### last\_frame
50
+
51
+ > **last\_frame**: `Record`\<`string`, `any`\>
52
+
53
+ ## Defined in
54
+
55
+ typings/live/RoomInfo.ts:1
@@ -0,0 +1,77 @@
1
+ [**如视 Live SDK**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [如视 Live SDK](../globals.md) / UserInfo
6
+
7
+ # Type Alias: UserInfo
8
+
9
+ > **UserInfo**: `object`
10
+
11
+ 带看会话房间用户的信息格式。
12
+
13
+ ## Type declaration
14
+
15
+ ### current\_ws\_online?
16
+
17
+ > `optional` **current\_ws\_online**: `boolean`
18
+
19
+ 用户当前是否在线。
20
+
21
+ ### extension?
22
+
23
+ > `optional` **extension**: [`UserInfoExt`](UserInfoExt.md)
24
+
25
+ 用户信息扩展字段。
26
+
27
+ ### id
28
+
29
+ > **id**: `string`
30
+
31
+ 用户唯一标识ID。
32
+
33
+ ### mem\_user\_status?
34
+
35
+ > `optional` **mem\_user\_status**: [`MemUserStatus`](../enumerations/MemUserStatus.md)
36
+
37
+ 内存中的用户状态。
38
+
39
+ ### micro\_status
40
+
41
+ > **micro\_status**: `boolean`
42
+
43
+ 用户当前是否开启麦克风。
44
+
45
+ ### once\_ws\_online?
46
+
47
+ > `optional` **once\_ws\_online**: `boolean`
48
+
49
+ 用户曾经是否在线过,即进入房间后又由于某种原因离开后重新进入。
50
+
51
+ ### permission?
52
+
53
+ > `optional` **permission**: `Partial`\<[`Permission`](../interfaces/Permission.md)\>
54
+
55
+ 当前用户的权限配置。(UI层面理解)。
56
+
57
+ ### rtc
58
+
59
+ > **rtc**: `boolean`
60
+
61
+ RTC 环境是否就绪,即当前语音是否联通。
62
+
63
+ ### status?
64
+
65
+ > `optional` **status**: [`UserStatus`](../enumerations/UserStatus.md)
66
+
67
+ 用户当前的状态。
68
+
69
+ ### user\_role?
70
+
71
+ > `optional` **user\_role**: `number` \| `string`
72
+
73
+ 用户角色定义。(前端不关注此字段)。
74
+
75
+ ## Defined in
76
+
77
+ typings/live/UserInfo.ts:49