@realsee/live 0.7.3-alpha.0 → 0.7.4
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.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +687 -130
- package/dist/index.es.js.map +1 -1
- package/dist/live/controller.d.ts +163 -42
- package/dist/live/createLive.d.ts +35 -3
- package/dist/live/createLiveReact.d.ts +51 -3
- package/dist/live/live.d.ts +501 -50
- package/dist/rtc/BrowserRTC.d.ts +63 -0
- package/dist/rtc/BrowserRTC4Chime.d.ts +38 -2
- package/dist/rtc/CoreRTC.d.ts +65 -1
- package/dist/rtc/VRWebViewRTC.d.ts +56 -6
- package/dist/typings/live/EventType.d.ts +58 -10
- package/dist/typings/live/GetVoiceSign.d.ts +27 -7
- package/dist/typings/live/UserInfo.d.ts +70 -0
- package/dist/typings/rtc/eventType.d.ts +55 -8
- package/dist/utils/appendUri.d.ts +17 -0
- package/dist/utils/uuid.d.ts +11 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +127 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1493 -0
- package/docs/classes/BrowserRTC.html +88 -0
- package/docs/classes/BrowserRTC4Chime.html +100 -0
- package/docs/classes/CoreRTC.html +65 -0
- package/docs/classes/Live.html +249 -0
- package/docs/classes/Subscribe.html +36 -0
- package/docs/classes/VRWebViewRTC.html +72 -0
- package/docs/enums/BuiltInRTCType.html +3 -0
- package/docs/enums/BuiltinActionType.html +14 -0
- package/docs/enums/BuiltinEventType.html +6 -0
- package/docs/enums/Command.html +22 -0
- package/docs/enums/LiveState.html +8 -0
- package/docs/enums/MemUserStatus.html +15 -0
- package/docs/enums/MicroStatus.html +6 -0
- package/docs/enums/RTCJoinedInfoCodeEnum.html +12 -0
- package/docs/enums/RTCType.html +5 -0
- package/docs/enums/UserStatus.html +8 -0
- package/docs/enums/WebSocketCloseError.html +20 -0
- package/docs/enums/WebSocketErrorType.html +8 -0
- package/docs/enums/WebSocketState.html +12 -0
- package/docs/functions/GetVoiceSignFn.html +20 -0
- package/docs/functions/_clearLiveInstanceIfNeed.html +1 -0
- package/docs/functions/createLive.html +9 -0
- package/docs/functions/createLiveReact.html +110 -0
- package/docs/functions/parseLiveMsg.html +4 -0
- package/docs/functions/parseWSClsErr.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +336 -0
- package/docs/interfaces/AttendeeResponse.html +4 -0
- package/docs/interfaces/LiveOptions.html +56 -0
- package/docs/interfaces/MeetingResponse.html +3 -0
- package/docs/interfaces/MeetingSessionConfigurationOptions.html +8 -0
- package/docs/interfaces/Permission.html +31 -0
- package/docs/interfaces/RTCJoinedInfo.html +7 -0
- package/docs/interfaces/RTCProtocol.html +65 -0
- package/docs/interfaces/SubscribeMixinType.emit.html +1 -0
- package/docs/interfaces/SubscribeMixinType.hasListener.html +1 -0
- package/docs/interfaces/SubscribeMixinType.off.html +1 -0
- package/docs/interfaces/SubscribeMixinType.on.html +1 -0
- package/docs/interfaces/SubscribeMixinType.once.html +1 -0
- package/docs/interfaces/VRWebViewRTCOptions.html +22 -0
- package/docs/modules/SubscribeMixinType.html +6 -0
- package/docs/modules.html +55 -0
- package/docs/types/BuiltinMsg.html +2 -0
- package/docs/types/EventMap.html +1 -0
- package/docs/types/EventType.html +2 -0
- package/docs/types/GetVoiceSign.html +3 -0
- package/docs/types/GetVoiceSignParams.html +5 -0
- package/docs/types/GetVoiceSignReturnType.html +6 -0
- package/docs/types/KeyframeEventType.html +2 -0
- package/docs/types/LiveBuiltInData.html +1 -0
- package/docs/types/LiveConnectOptions.html +8 -0
- package/docs/types/LiveEventType.html +41 -0
- package/docs/types/LiveMsg.html +2 -0
- package/docs/types/LiveProviderPropTypes.html +5 -0
- package/docs/types/RTCActionReactCallback.html +1 -0
- package/docs/types/RTCEventType.html +29 -0
- package/docs/types/ReqLiveMsg.html +6 -0
- package/docs/types/RoomInfo.html +1 -0
- package/docs/types/UserInfo.html +12 -0
- package/docs/types/UserInfoExt.html +5 -0
- package/docs/types/UserVolume.html +2 -0
- package/docs/types/WebSocketError.html +1 -0
- package/package.json +1 -2
- package/docs/README.md +0 -437
- package/docs/classes/BrowserRTC.md +0 -436
- package/docs/classes/BrowserRTC4Chime.md +0 -558
- package/docs/classes/CoreRTC.md +0 -448
- package/docs/classes/Live.md +0 -770
- package/docs/classes/VRWebViewRTC.md +0 -436
- package/docs/enumerations/BuiltInRTCType.md +0 -27
- package/docs/enumerations/BuiltinActionType.md +0 -81
- package/docs/enumerations/BuiltinEventType.md +0 -33
- package/docs/enumerations/Command.md +0 -107
- package/docs/enumerations/LiveState.md +0 -53
- package/docs/enumerations/MemUserStatus.md +0 -67
- package/docs/enumerations/MicroStatus.md +0 -33
- package/docs/enumerations/RTCJoinedInfoCodeEnum.md +0 -69
- package/docs/enumerations/RTCType.md +0 -39
- package/docs/enumerations/UserStatus.md +0 -45
- package/docs/enumerations/WebSocketCloseError.md +0 -117
- package/docs/enumerations/WebSocketErrorType.md +0 -77
- package/docs/enumerations/WebSocketState.md +0 -69
- package/docs/functions/GetVoiceSignFn.md +0 -27
- package/docs/functions/clearLiveInstanceIfNeed.md +0 -17
- package/docs/functions/createLive.md +0 -27
- package/docs/functions/createLiveReact.md +0 -449
- package/docs/functions/parseLiveMsg.md +0 -27
- package/docs/functions/parseWSClsErr.md +0 -21
- package/docs/globals.md +0 -71
- package/docs/interfaces/AttendeeResponse.md +0 -37
- package/docs/interfaces/LiveOptions.md +0 -246
- package/docs/interfaces/MeetingResponse.md +0 -55
- package/docs/interfaces/MeetingSessionConfigurationOptions.md +0 -93
- package/docs/interfaces/Permission.md +0 -147
- package/docs/interfaces/RTCJoinedInfo.md +0 -67
- package/docs/interfaces/RTCProtocol.md +0 -404
- package/docs/interfaces/VRWebViewRTCOptions.md +0 -41
- package/docs/type-aliases/BuiltinMsg.md +0 -41
- package/docs/type-aliases/EventType.md +0 -19
- package/docs/type-aliases/GetVoiceSign.md +0 -15
- package/docs/type-aliases/GetVoiceSignParams.md +0 -35
- package/docs/type-aliases/GetVoiceSignReturnType.md +0 -41
- package/docs/type-aliases/KeyframeEventType.md +0 -19
- package/docs/type-aliases/LiveBuiltInData.md +0 -47
- package/docs/type-aliases/LiveConnectOptions.md +0 -47
- package/docs/type-aliases/LiveEventType.md +0 -165
- package/docs/type-aliases/LiveMsg.md +0 -53
- package/docs/type-aliases/LiveProviderPropTypes.md +0 -27
- package/docs/type-aliases/RTCActionReactCallback.md +0 -13
- package/docs/type-aliases/RTCEventType.md +0 -65
- package/docs/type-aliases/ReqLiveMsg.md +0 -45
- package/docs/type-aliases/RoomInfo.md +0 -55
- package/docs/type-aliases/UserInfo.md +0 -77
- package/docs/type-aliases/UserInfoExt.md +0 -33
- package/docs/type-aliases/UserVolume.md +0 -25
- package/docs/type-aliases/WebSocketError.md +0 -31
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
[**如视 Live SDK**](../README.md) • **Docs**
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[如视 Live SDK](../globals.md) / createLiveReact
|
|
6
|
-
|
|
7
|
-
# Function: createLiveReact()
|
|
8
|
-
|
|
9
|
-
> **createLiveReact**\<`KeyframesSnapshot`\>(`options`): `object`
|
|
10
|
-
|
|
11
|
-
创建 LiveReact 实例,并提供 `React` 技术栈相关工具链。
|
|
12
|
-
|
|
13
|
-
## Type Parameters
|
|
14
|
-
|
|
15
|
-
• **KeyframesSnapshot** *extends* `Record`\<`string`, `any`\>
|
|
16
|
-
|
|
17
|
-
## Parameters
|
|
18
|
-
|
|
19
|
-
• **options**: [`LiveOptions`](../interfaces/LiveOptions.md)
|
|
20
|
-
|
|
21
|
-
带看配置
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`object`
|
|
26
|
-
|
|
27
|
-
返回当前的带看上下文实例
|
|
28
|
-
|
|
29
|
-
### jsBridge
|
|
30
|
-
|
|
31
|
-
> **jsBridge**: `JSBridgeProtocol`
|
|
32
|
-
|
|
33
|
-
### live
|
|
34
|
-
|
|
35
|
-
> **live**: [`Live`](../classes/Live.md)\<`KeyframesSnapshot`\>
|
|
36
|
-
|
|
37
|
-
### LiveProvider()
|
|
38
|
-
|
|
39
|
-
> **LiveProvider**: (`props`) => `FunctionComponentElement`\<`ProviderProps`\<`null` \| [`Live`](../classes/Live.md)\<`KeyframesSnapshot`\>\>\>
|
|
40
|
-
|
|
41
|
-
#### Parameters
|
|
42
|
-
|
|
43
|
-
• **props**: [`LiveProviderPropTypes`](../type-aliases/LiveProviderPropTypes.md)\<`KeyframesSnapshot`\>
|
|
44
|
-
|
|
45
|
-
#### Returns
|
|
46
|
-
|
|
47
|
-
`FunctionComponentElement`\<`ProviderProps`\<`null` \| [`Live`](../classes/Live.md)\<`KeyframesSnapshot`\>\>\>
|
|
48
|
-
|
|
49
|
-
### unsafe\_\_useLiveInstance()
|
|
50
|
-
|
|
51
|
-
> **unsafe\_\_useLiveInstance**: () => [`Live`](../classes/Live.md)\<`KeyframesSnapshot`\>
|
|
52
|
-
|
|
53
|
-
不建议这样使用
|
|
54
|
-
|
|
55
|
-
#### Returns
|
|
56
|
-
|
|
57
|
-
[`Live`](../classes/Live.md)\<`KeyframesSnapshot`\>
|
|
58
|
-
|
|
59
|
-
#### Deprecated
|
|
60
|
-
|
|
61
|
-
### unsafe\_\_useRTCInstance()
|
|
62
|
-
|
|
63
|
-
> **unsafe\_\_useRTCInstance**: () => [`RTCProtocol`](../interfaces/RTCProtocol.md)
|
|
64
|
-
|
|
65
|
-
不建议这样使用
|
|
66
|
-
|
|
67
|
-
#### Returns
|
|
68
|
-
|
|
69
|
-
[`RTCProtocol`](../interfaces/RTCProtocol.md)
|
|
70
|
-
|
|
71
|
-
#### Deprecated
|
|
72
|
-
|
|
73
|
-
### useConnect()
|
|
74
|
-
|
|
75
|
-
> **useConnect**: () => (`options`) => `Promise`\<`true` \| `Error`\>
|
|
76
|
-
|
|
77
|
-
带看连接操作
|
|
78
|
-
|
|
79
|
-
#### Returns
|
|
80
|
-
|
|
81
|
-
`Function`
|
|
82
|
-
|
|
83
|
-
##### Parameters
|
|
84
|
-
|
|
85
|
-
• **options**: [`LiveConnectOptions`](../type-aliases/LiveConnectOptions.md)
|
|
86
|
-
|
|
87
|
-
##### Returns
|
|
88
|
-
|
|
89
|
-
`Promise`\<`true` \| `Error`\>
|
|
90
|
-
|
|
91
|
-
### useKeyframe()
|
|
92
|
-
|
|
93
|
-
> **useKeyframe**: \<`K`\>(`key`) => (`undefined` \| `KeyframesSnapshot`\[`K`\] \| (`frame`) => `boolean` \| `Error`)[]
|
|
94
|
-
|
|
95
|
-
#### Type Parameters
|
|
96
|
-
|
|
97
|
-
• **K** *extends* `string` \| `number` \| `symbol`
|
|
98
|
-
|
|
99
|
-
#### Parameters
|
|
100
|
-
|
|
101
|
-
• **key**: `K`
|
|
102
|
-
|
|
103
|
-
#### Returns
|
|
104
|
-
|
|
105
|
-
(`undefined` \| `KeyframesSnapshot`\[`K`\] \| (`frame`) => `boolean` \| `Error`)[]
|
|
106
|
-
|
|
107
|
-
### useKeyframesSnapshot()
|
|
108
|
-
|
|
109
|
-
> **useKeyframesSnapshot**: () => `Partial`\<`KeyframesSnapshot`\>
|
|
110
|
-
|
|
111
|
-
使用帧数据
|
|
112
|
-
|
|
113
|
-
#### Returns
|
|
114
|
-
|
|
115
|
-
`Partial`\<`KeyframesSnapshot`\>
|
|
116
|
-
|
|
117
|
-
返回当前的帧数据
|
|
118
|
-
|
|
119
|
-
### useKeyframeUpdateCallback()
|
|
120
|
-
|
|
121
|
-
> **useKeyframeUpdateCallback**: \<`KeyOfKeyframe`\>(`key`, `callback`, `deps`) => () => `void`
|
|
122
|
-
|
|
123
|
-
使用帧数据更新回调
|
|
124
|
-
|
|
125
|
-
#### Type Parameters
|
|
126
|
-
|
|
127
|
-
• **KeyOfKeyframe** *extends* `string` \| `number` \| `symbol`
|
|
128
|
-
|
|
129
|
-
#### Parameters
|
|
130
|
-
|
|
131
|
-
• **key**: `KeyOfKeyframe`
|
|
132
|
-
|
|
133
|
-
帧数据的键
|
|
134
|
-
|
|
135
|
-
• **callback**
|
|
136
|
-
|
|
137
|
-
回调函数
|
|
138
|
-
|
|
139
|
-
• **deps**: `DependencyList` = `[]`
|
|
140
|
-
|
|
141
|
-
依赖项
|
|
142
|
-
|
|
143
|
-
#### Returns
|
|
144
|
-
|
|
145
|
-
`Function`
|
|
146
|
-
|
|
147
|
-
返回一个清理函数
|
|
148
|
-
|
|
149
|
-
##### Returns
|
|
150
|
-
|
|
151
|
-
`void`
|
|
152
|
-
|
|
153
|
-
### useLiveAction()
|
|
154
|
-
|
|
155
|
-
> **useLiveAction**: () => `object`
|
|
156
|
-
|
|
157
|
-
带看的一些操作
|
|
158
|
-
|
|
159
|
-
#### Returns
|
|
160
|
-
|
|
161
|
-
`object`
|
|
162
|
-
|
|
163
|
-
返回一组与带看相关的操作函数
|
|
164
|
-
|
|
165
|
-
##### broadcast()
|
|
166
|
-
|
|
167
|
-
> **broadcast**: (`data`, `toUserIds`, `timeout`) => `Promise`\<`void`\>
|
|
168
|
-
|
|
169
|
-
###### Parameters
|
|
170
|
-
|
|
171
|
-
• **data**: `Record`\<`string`, `any`\>
|
|
172
|
-
|
|
173
|
-
• **toUserIds**: `string` \| `string`[]
|
|
174
|
-
|
|
175
|
-
• **timeout**: `number` = `0`
|
|
176
|
-
|
|
177
|
-
###### Returns
|
|
178
|
-
|
|
179
|
-
`Promise`\<`void`\>
|
|
180
|
-
|
|
181
|
-
##### connect()
|
|
182
|
-
|
|
183
|
-
> **connect**: (`options`) => `Promise`\<`void`\>
|
|
184
|
-
|
|
185
|
-
###### Parameters
|
|
186
|
-
|
|
187
|
-
• **options**: [`LiveConnectOptions`](../type-aliases/LiveConnectOptions.md)
|
|
188
|
-
|
|
189
|
-
###### Returns
|
|
190
|
-
|
|
191
|
-
`Promise`\<`void`\>
|
|
192
|
-
|
|
193
|
-
##### exit()
|
|
194
|
-
|
|
195
|
-
> **exit**: () => `Promise`\<`void`\>
|
|
196
|
-
|
|
197
|
-
###### Returns
|
|
198
|
-
|
|
199
|
-
`Promise`\<`void`\>
|
|
200
|
-
|
|
201
|
-
##### forbidMicro()
|
|
202
|
-
|
|
203
|
-
> **forbidMicro**: (`micro`, `toUserIds`) => `Promise`\<`void`\>
|
|
204
|
-
|
|
205
|
-
###### Parameters
|
|
206
|
-
|
|
207
|
-
• **micro**: [`MicroStatus`](../enumerations/MicroStatus.md)
|
|
208
|
-
|
|
209
|
-
• **toUserIds**: `string` \| `string`[] = `[]`
|
|
210
|
-
|
|
211
|
-
###### Returns
|
|
212
|
-
|
|
213
|
-
`Promise`\<`void`\>
|
|
214
|
-
|
|
215
|
-
##### forbidSync()
|
|
216
|
-
|
|
217
|
-
> **forbidSync**: (`sync`, `toUserIds`) => `void`
|
|
218
|
-
|
|
219
|
-
###### Parameters
|
|
220
|
-
|
|
221
|
-
• **sync**: `boolean`
|
|
222
|
-
|
|
223
|
-
• **toUserIds**: `string` \| `string`[] = `[]`
|
|
224
|
-
|
|
225
|
-
###### Returns
|
|
226
|
-
|
|
227
|
-
`void`
|
|
228
|
-
|
|
229
|
-
##### getFramesByKey()
|
|
230
|
-
|
|
231
|
-
> **getFramesByKey**: (`key`) => `undefined` \| `Partial`\<`KeyframesSnapshot`\>\[keyof `KeyframesSnapshot`\]
|
|
232
|
-
|
|
233
|
-
###### Parameters
|
|
234
|
-
|
|
235
|
-
• **key**: keyof `KeyframesSnapshot`
|
|
236
|
-
|
|
237
|
-
###### Returns
|
|
238
|
-
|
|
239
|
-
`undefined` \| `Partial`\<`KeyframesSnapshot`\>\[keyof `KeyframesSnapshot`\]
|
|
240
|
-
|
|
241
|
-
##### kick()
|
|
242
|
-
|
|
243
|
-
> **kick**: (`toUserIds`) => `Promise`\<`void`\>
|
|
244
|
-
|
|
245
|
-
###### Parameters
|
|
246
|
-
|
|
247
|
-
• **toUserIds**: `string` \| `string`[]
|
|
248
|
-
|
|
249
|
-
###### Returns
|
|
250
|
-
|
|
251
|
-
`Promise`\<`void`\>
|
|
252
|
-
|
|
253
|
-
##### sendKeyframe()
|
|
254
|
-
|
|
255
|
-
> **sendKeyframe**: (`key`, `frame`) => `void`
|
|
256
|
-
|
|
257
|
-
###### Parameters
|
|
258
|
-
|
|
259
|
-
• **key**: keyof `KeyframesSnapshot`
|
|
260
|
-
|
|
261
|
-
• **frame**: `KeyframesSnapshot`\[keyof `KeyframesSnapshot`\]
|
|
262
|
-
|
|
263
|
-
###### Returns
|
|
264
|
-
|
|
265
|
-
`void`
|
|
266
|
-
|
|
267
|
-
##### setSelfInfo()
|
|
268
|
-
|
|
269
|
-
> **setSelfInfo**: (`userInfo`) => `void`
|
|
270
|
-
|
|
271
|
-
###### Parameters
|
|
272
|
-
|
|
273
|
-
• **userInfo**: `Partial`\<[`UserInfo`](../type-aliases/UserInfo.md)\>
|
|
274
|
-
|
|
275
|
-
###### Returns
|
|
276
|
-
|
|
277
|
-
`void`
|
|
278
|
-
|
|
279
|
-
##### toggleMicro()
|
|
280
|
-
|
|
281
|
-
> **toggleMicro**: (`microStatus`) => `void`
|
|
282
|
-
|
|
283
|
-
###### Parameters
|
|
284
|
-
|
|
285
|
-
• **microStatus**: `boolean`
|
|
286
|
-
|
|
287
|
-
###### Returns
|
|
288
|
-
|
|
289
|
-
`void`
|
|
290
|
-
|
|
291
|
-
##### updateStatus()
|
|
292
|
-
|
|
293
|
-
> **updateStatus**: (`evtType`, `atnType`, `status`, `toUserIds`?) => `void`
|
|
294
|
-
|
|
295
|
-
###### Parameters
|
|
296
|
-
|
|
297
|
-
• **evtType**: [`BuiltinEventType`](../enumerations/BuiltinEventType.md)
|
|
298
|
-
|
|
299
|
-
• **atnType**: [`BuiltinActionType`](../enumerations/BuiltinActionType.md)
|
|
300
|
-
|
|
301
|
-
• **status**: `Record`\<`string`, `any`\>
|
|
302
|
-
|
|
303
|
-
• **toUserIds?**: `string` \| `string`[]
|
|
304
|
-
|
|
305
|
-
###### Returns
|
|
306
|
-
|
|
307
|
-
`void`
|
|
308
|
-
|
|
309
|
-
### useLiveEventCallback()
|
|
310
|
-
|
|
311
|
-
> **useLiveEventCallback**: \<`K`\>(`name`, `callback`, `deps`) => () => `void`
|
|
312
|
-
|
|
313
|
-
#### Type Parameters
|
|
314
|
-
|
|
315
|
-
• **K** *extends* keyof [`LiveEventType`](../type-aliases/LiveEventType.md)\<`KeyframesSnapshot`\>
|
|
316
|
-
|
|
317
|
-
#### Parameters
|
|
318
|
-
|
|
319
|
-
• **name**: `K`
|
|
320
|
-
|
|
321
|
-
• **callback**
|
|
322
|
-
|
|
323
|
-
• **deps**: `DependencyList` = `[]`
|
|
324
|
-
|
|
325
|
-
#### Returns
|
|
326
|
-
|
|
327
|
-
`Function`
|
|
328
|
-
|
|
329
|
-
##### Returns
|
|
330
|
-
|
|
331
|
-
`void`
|
|
332
|
-
|
|
333
|
-
### useLiveState()
|
|
334
|
-
|
|
335
|
-
> **useLiveState**: () => [`LiveState`](../enumerations/LiveState.md)
|
|
336
|
-
|
|
337
|
-
带看状态
|
|
338
|
-
|
|
339
|
-
#### Returns
|
|
340
|
-
|
|
341
|
-
[`LiveState`](../enumerations/LiveState.md)
|
|
342
|
-
|
|
343
|
-
### useRTCAction()
|
|
344
|
-
|
|
345
|
-
> **useRTCAction**: () => `object`
|
|
346
|
-
|
|
347
|
-
#### Returns
|
|
348
|
-
|
|
349
|
-
`object`
|
|
350
|
-
|
|
351
|
-
##### detectMicro()
|
|
352
|
-
|
|
353
|
-
> **detectMicro**: () => `Promise`\<`boolean`\>
|
|
354
|
-
|
|
355
|
-
###### Returns
|
|
356
|
-
|
|
357
|
-
`Promise`\<`boolean`\>
|
|
358
|
-
|
|
359
|
-
##### join()
|
|
360
|
-
|
|
361
|
-
> **join**: (`options`) => `Promise`\<`boolean`\>
|
|
362
|
-
|
|
363
|
-
###### Parameters
|
|
364
|
-
|
|
365
|
-
• **options**
|
|
366
|
-
|
|
367
|
-
• **options.roomId**: `string`
|
|
368
|
-
|
|
369
|
-
• **options.type**: [`RTCType`](../enumerations/RTCType.md)
|
|
370
|
-
|
|
371
|
-
• **options.userId**: `string`
|
|
372
|
-
|
|
373
|
-
• **options.voiceId**: `string`
|
|
374
|
-
|
|
375
|
-
###### Returns
|
|
376
|
-
|
|
377
|
-
`Promise`\<`boolean`\>
|
|
378
|
-
|
|
379
|
-
##### quit()
|
|
380
|
-
|
|
381
|
-
> **quit**: () => `Promise`\<`boolean`\>
|
|
382
|
-
|
|
383
|
-
###### Returns
|
|
384
|
-
|
|
385
|
-
`Promise`\<`boolean`\>
|
|
386
|
-
|
|
387
|
-
##### shock()
|
|
388
|
-
|
|
389
|
-
> **shock**: () => `undefined` \| `void`
|
|
390
|
-
|
|
391
|
-
###### Returns
|
|
392
|
-
|
|
393
|
-
`undefined` \| `void`
|
|
394
|
-
|
|
395
|
-
##### toggleMicro()
|
|
396
|
-
|
|
397
|
-
> **toggleMicro**: (`flag`?) => `Promise`\<`boolean`\>
|
|
398
|
-
|
|
399
|
-
###### Parameters
|
|
400
|
-
|
|
401
|
-
• **flag?**: `boolean`
|
|
402
|
-
|
|
403
|
-
###### Returns
|
|
404
|
-
|
|
405
|
-
`Promise`\<`boolean`\>
|
|
406
|
-
|
|
407
|
-
### useRTCEventCallback()
|
|
408
|
-
|
|
409
|
-
> **useRTCEventCallback**: \<`K`\>(`name`, `callback`, `deps`) => () => `void`
|
|
410
|
-
|
|
411
|
-
#### Type Parameters
|
|
412
|
-
|
|
413
|
-
• **K** *extends* keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
|
|
414
|
-
|
|
415
|
-
#### Parameters
|
|
416
|
-
|
|
417
|
-
• **name**: `K`
|
|
418
|
-
|
|
419
|
-
• **callback**
|
|
420
|
-
|
|
421
|
-
• **deps**: `DependencyList` = `[]`
|
|
422
|
-
|
|
423
|
-
#### Returns
|
|
424
|
-
|
|
425
|
-
`Function`
|
|
426
|
-
|
|
427
|
-
##### Returns
|
|
428
|
-
|
|
429
|
-
`void`
|
|
430
|
-
|
|
431
|
-
### useSelfInfo()
|
|
432
|
-
|
|
433
|
-
> **useSelfInfo**: () => (`Partial`\<[`UserInfo`](../type-aliases/UserInfo.md)\> \| (`userInfo`) => `Promise`\<`boolean`\>)[]
|
|
434
|
-
|
|
435
|
-
#### Returns
|
|
436
|
-
|
|
437
|
-
(`Partial`\<[`UserInfo`](../type-aliases/UserInfo.md)\> \| (`userInfo`) => `Promise`\<`boolean`\>)[]
|
|
438
|
-
|
|
439
|
-
### useUserList()
|
|
440
|
-
|
|
441
|
-
> **useUserList**: () => [`UserInfo`](../type-aliases/UserInfo.md)[]
|
|
442
|
-
|
|
443
|
-
#### Returns
|
|
444
|
-
|
|
445
|
-
[`UserInfo`](../type-aliases/UserInfo.md)[]
|
|
446
|
-
|
|
447
|
-
## Defined in
|
|
448
|
-
|
|
449
|
-
live/createLiveReact.ts:29
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[**如视 Live SDK**](../README.md) • **Docs**
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[如视 Live SDK](../globals.md) / parseLiveMsg
|
|
6
|
-
|
|
7
|
-
# Function: parseLiveMsg()
|
|
8
|
-
|
|
9
|
-
> **parseLiveMsg**(`jsonTxt`): [`LiveMsg`](../type-aliases/LiveMsg.md) \| `boolean`
|
|
10
|
-
|
|
11
|
-
解析下后端数据格式。
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
• **jsonTxt**: `string`
|
|
16
|
-
|
|
17
|
-
JSON序列化后的文本。
|
|
18
|
-
|
|
19
|
-
## Returns
|
|
20
|
-
|
|
21
|
-
[`LiveMsg`](../type-aliases/LiveMsg.md) \| `boolean`
|
|
22
|
-
|
|
23
|
-
false 标识解析失败;解析成功返回 [LiveMsg](../type-aliases/LiveMsg.md) 实例。
|
|
24
|
-
|
|
25
|
-
## Defined in
|
|
26
|
-
|
|
27
|
-
typings/live/LiveMsg.ts:139
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
[**如视 Live SDK**](../README.md) • **Docs**
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[如视 Live SDK](../globals.md) / parseWSClsErr
|
|
6
|
-
|
|
7
|
-
# Function: parseWSClsErr()
|
|
8
|
-
|
|
9
|
-
> **parseWSClsErr**(`code`): [`WebSocketCloseError`](../enumerations/WebSocketCloseError.md)
|
|
10
|
-
|
|
11
|
-
## Parameters
|
|
12
|
-
|
|
13
|
-
• **code**: `number`
|
|
14
|
-
|
|
15
|
-
## Returns
|
|
16
|
-
|
|
17
|
-
[`WebSocketCloseError`](../enumerations/WebSocketCloseError.md)
|
|
18
|
-
|
|
19
|
-
## Defined in
|
|
20
|
-
|
|
21
|
-
typings/live/WebSocket.ts:94
|
package/docs/globals.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
[**如视 Live SDK**](README.md) • **Docs**
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
# 如视 Live SDK
|
|
6
|
-
|
|
7
|
-
## Enumerations
|
|
8
|
-
|
|
9
|
-
- [BuiltinActionType](enumerations/BuiltinActionType.md)
|
|
10
|
-
- [BuiltinEventType](enumerations/BuiltinEventType.md)
|
|
11
|
-
- [BuiltInRTCType](enumerations/BuiltInRTCType.md)
|
|
12
|
-
- [Command](enumerations/Command.md)
|
|
13
|
-
- [LiveState](enumerations/LiveState.md)
|
|
14
|
-
- [MemUserStatus](enumerations/MemUserStatus.md)
|
|
15
|
-
- [MicroStatus](enumerations/MicroStatus.md)
|
|
16
|
-
- [RTCJoinedInfoCodeEnum](enumerations/RTCJoinedInfoCodeEnum.md)
|
|
17
|
-
- [RTCType](enumerations/RTCType.md)
|
|
18
|
-
- [UserStatus](enumerations/UserStatus.md)
|
|
19
|
-
- [WebSocketCloseError](enumerations/WebSocketCloseError.md)
|
|
20
|
-
- [WebSocketErrorType](enumerations/WebSocketErrorType.md)
|
|
21
|
-
- [WebSocketState](enumerations/WebSocketState.md)
|
|
22
|
-
|
|
23
|
-
## Classes
|
|
24
|
-
|
|
25
|
-
- [BrowserRTC](classes/BrowserRTC.md)
|
|
26
|
-
- [BrowserRTC4Chime](classes/BrowserRTC4Chime.md)
|
|
27
|
-
- [CoreRTC](classes/CoreRTC.md)
|
|
28
|
-
- [Live](classes/Live.md)
|
|
29
|
-
- [VRWebViewRTC](classes/VRWebViewRTC.md)
|
|
30
|
-
|
|
31
|
-
## Interfaces
|
|
32
|
-
|
|
33
|
-
- [AttendeeResponse](interfaces/AttendeeResponse.md)
|
|
34
|
-
- [LiveOptions](interfaces/LiveOptions.md)
|
|
35
|
-
- [MeetingResponse](interfaces/MeetingResponse.md)
|
|
36
|
-
- [MeetingSessionConfigurationOptions](interfaces/MeetingSessionConfigurationOptions.md)
|
|
37
|
-
- [Permission](interfaces/Permission.md)
|
|
38
|
-
- [RTCJoinedInfo](interfaces/RTCJoinedInfo.md)
|
|
39
|
-
- [RTCProtocol](interfaces/RTCProtocol.md)
|
|
40
|
-
- [VRWebViewRTCOptions](interfaces/VRWebViewRTCOptions.md)
|
|
41
|
-
|
|
42
|
-
## Type Aliases
|
|
43
|
-
|
|
44
|
-
- [BuiltinMsg](type-aliases/BuiltinMsg.md)
|
|
45
|
-
- [EventType](type-aliases/EventType.md)
|
|
46
|
-
- [GetVoiceSign](type-aliases/GetVoiceSign.md)
|
|
47
|
-
- [GetVoiceSignParams](type-aliases/GetVoiceSignParams.md)
|
|
48
|
-
- [GetVoiceSignReturnType](type-aliases/GetVoiceSignReturnType.md)
|
|
49
|
-
- [KeyframeEventType](type-aliases/KeyframeEventType.md)
|
|
50
|
-
- [LiveBuiltInData](type-aliases/LiveBuiltInData.md)
|
|
51
|
-
- [LiveConnectOptions](type-aliases/LiveConnectOptions.md)
|
|
52
|
-
- [LiveEventType](type-aliases/LiveEventType.md)
|
|
53
|
-
- [LiveMsg](type-aliases/LiveMsg.md)
|
|
54
|
-
- [LiveProviderPropTypes](type-aliases/LiveProviderPropTypes.md)
|
|
55
|
-
- [ReqLiveMsg](type-aliases/ReqLiveMsg.md)
|
|
56
|
-
- [RoomInfo](type-aliases/RoomInfo.md)
|
|
57
|
-
- [RTCActionReactCallback](type-aliases/RTCActionReactCallback.md)
|
|
58
|
-
- [RTCEventType](type-aliases/RTCEventType.md)
|
|
59
|
-
- [UserInfo](type-aliases/UserInfo.md)
|
|
60
|
-
- [UserInfoExt](type-aliases/UserInfoExt.md)
|
|
61
|
-
- [UserVolume](type-aliases/UserVolume.md)
|
|
62
|
-
- [WebSocketError](type-aliases/WebSocketError.md)
|
|
63
|
-
|
|
64
|
-
## Functions
|
|
65
|
-
|
|
66
|
-
- [\_clearLiveInstanceIfNeed](functions/clearLiveInstanceIfNeed.md)
|
|
67
|
-
- [createLive](functions/createLive.md)
|
|
68
|
-
- [createLiveReact](functions/createLiveReact.md)
|
|
69
|
-
- [GetVoiceSignFn](functions/GetVoiceSignFn.md)
|
|
70
|
-
- [parseLiveMsg](functions/parseLiveMsg.md)
|
|
71
|
-
- [parseWSClsErr](functions/parseWSClsErr.md)
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[**如视 Live SDK**](../README.md) • **Docs**
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[如视 Live SDK](../globals.md) / AttendeeResponse
|
|
6
|
-
|
|
7
|
-
# Interface: AttendeeResponse
|
|
8
|
-
|
|
9
|
-
## Properties
|
|
10
|
-
|
|
11
|
-
### attendee\_id
|
|
12
|
-
|
|
13
|
-
> **attendee\_id**: `string`
|
|
14
|
-
|
|
15
|
-
#### Defined in
|
|
16
|
-
|
|
17
|
-
typings/chime/AttendeeResponse.ts:2
|
|
18
|
-
|
|
19
|
-
***
|
|
20
|
-
|
|
21
|
-
### external\_user\_id
|
|
22
|
-
|
|
23
|
-
> **external\_user\_id**: `string`
|
|
24
|
-
|
|
25
|
-
#### Defined in
|
|
26
|
-
|
|
27
|
-
typings/chime/AttendeeResponse.ts:3
|
|
28
|
-
|
|
29
|
-
***
|
|
30
|
-
|
|
31
|
-
### join\_token
|
|
32
|
-
|
|
33
|
-
> **join\_token**: `string`
|
|
34
|
-
|
|
35
|
-
#### Defined in
|
|
36
|
-
|
|
37
|
-
typings/chime/AttendeeResponse.ts:4
|