@realsee/live 0.7.3-alpha.0 → 0.7.3

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 (119) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +44 -44
  4. package/docs/.nojekyll +1 -0
  5. package/docs/assets/highlight.css +99 -0
  6. package/docs/assets/icons.js +18 -0
  7. package/docs/assets/icons.svg +1 -0
  8. package/docs/assets/main.js +60 -0
  9. package/docs/assets/navigation.js +1 -0
  10. package/docs/assets/search.js +1 -0
  11. package/docs/assets/style.css +1493 -0
  12. package/docs/classes/BrowserRTC.html +60 -0
  13. package/docs/classes/BrowserRTC4Chime.html +72 -0
  14. package/docs/classes/CoreRTC.html +60 -0
  15. package/docs/classes/Live.html +93 -0
  16. package/docs/classes/VRWebViewRTC.html +53 -0
  17. package/docs/enums/BuiltInRTCType.html +3 -0
  18. package/docs/enums/BuiltinActionType.html +14 -0
  19. package/docs/enums/BuiltinEventType.html +6 -0
  20. package/docs/enums/Command.html +22 -0
  21. package/docs/enums/LiveState.html +8 -0
  22. package/docs/enums/MemUserStatus.html +7 -0
  23. package/docs/enums/MicroStatus.html +6 -0
  24. package/docs/enums/RTCJoinedInfoCodeEnum.html +12 -0
  25. package/docs/enums/RTCType.html +5 -0
  26. package/docs/enums/UserStatus.html +8 -0
  27. package/docs/enums/WebSocketCloseError.html +20 -0
  28. package/docs/enums/WebSocketErrorType.html +8 -0
  29. package/docs/enums/WebSocketState.html +12 -0
  30. package/docs/functions/GetVoiceSignFn.html +4 -0
  31. package/docs/functions/_clearLiveInstanceIfNeed.html +1 -0
  32. package/docs/functions/createLive.html +2 -0
  33. package/docs/functions/createLiveReact.html +17 -0
  34. package/docs/functions/parseLiveMsg.html +4 -0
  35. package/docs/functions/parseWSClsErr.html +1 -0
  36. package/docs/hierarchy.html +1 -0
  37. package/docs/index.html +349 -0
  38. package/docs/interfaces/AttendeeResponse.html +4 -0
  39. package/docs/interfaces/LiveOptions.html +40 -0
  40. package/docs/interfaces/MeetingResponse.html +3 -0
  41. package/docs/interfaces/MeetingSessionConfigurationOptions.html +8 -0
  42. package/docs/interfaces/Permission.html +15 -0
  43. package/docs/interfaces/RTCJoinedInfo.html +7 -0
  44. package/docs/interfaces/RTCProtocol.html +65 -0
  45. package/docs/interfaces/VRWebViewRTCOptions.html +6 -0
  46. package/docs/modules.html +52 -0
  47. package/docs/types/BuiltinMsg.html +2 -0
  48. package/docs/types/EventType.html +2 -0
  49. package/docs/types/GetVoiceSign.html +2 -0
  50. package/docs/types/GetVoiceSignParams.html +5 -0
  51. package/docs/types/GetVoiceSignReturnType.html +6 -0
  52. package/docs/types/KeyframeEventType.html +2 -0
  53. package/docs/types/LiveBuiltInData.html +1 -0
  54. package/docs/types/LiveConnectOptions.html +8 -0
  55. package/docs/types/LiveEventType.html +15 -0
  56. package/docs/types/LiveMsg.html +2 -0
  57. package/docs/types/LiveProviderPropTypes.html +1 -0
  58. package/docs/types/RTCActionReactCallback.html +1 -0
  59. package/docs/types/RTCEventType.html +7 -0
  60. package/docs/types/ReqLiveMsg.html +6 -0
  61. package/docs/types/RoomInfo.html +1 -0
  62. package/docs/types/UserInfo.html +12 -0
  63. package/docs/types/UserInfoExt.html +5 -0
  64. package/docs/types/UserVolume.html +2 -0
  65. package/docs/types/WebSocketError.html +1 -0
  66. package/package.json +1 -2
  67. package/docs/README.md +0 -437
  68. package/docs/classes/BrowserRTC.md +0 -436
  69. package/docs/classes/BrowserRTC4Chime.md +0 -558
  70. package/docs/classes/CoreRTC.md +0 -448
  71. package/docs/classes/Live.md +0 -770
  72. package/docs/classes/VRWebViewRTC.md +0 -436
  73. package/docs/enumerations/BuiltInRTCType.md +0 -27
  74. package/docs/enumerations/BuiltinActionType.md +0 -81
  75. package/docs/enumerations/BuiltinEventType.md +0 -33
  76. package/docs/enumerations/Command.md +0 -107
  77. package/docs/enumerations/LiveState.md +0 -53
  78. package/docs/enumerations/MemUserStatus.md +0 -67
  79. package/docs/enumerations/MicroStatus.md +0 -33
  80. package/docs/enumerations/RTCJoinedInfoCodeEnum.md +0 -69
  81. package/docs/enumerations/RTCType.md +0 -39
  82. package/docs/enumerations/UserStatus.md +0 -45
  83. package/docs/enumerations/WebSocketCloseError.md +0 -117
  84. package/docs/enumerations/WebSocketErrorType.md +0 -77
  85. package/docs/enumerations/WebSocketState.md +0 -69
  86. package/docs/functions/GetVoiceSignFn.md +0 -27
  87. package/docs/functions/clearLiveInstanceIfNeed.md +0 -17
  88. package/docs/functions/createLive.md +0 -27
  89. package/docs/functions/createLiveReact.md +0 -449
  90. package/docs/functions/parseLiveMsg.md +0 -27
  91. package/docs/functions/parseWSClsErr.md +0 -21
  92. package/docs/globals.md +0 -71
  93. package/docs/interfaces/AttendeeResponse.md +0 -37
  94. package/docs/interfaces/LiveOptions.md +0 -246
  95. package/docs/interfaces/MeetingResponse.md +0 -55
  96. package/docs/interfaces/MeetingSessionConfigurationOptions.md +0 -93
  97. package/docs/interfaces/Permission.md +0 -147
  98. package/docs/interfaces/RTCJoinedInfo.md +0 -67
  99. package/docs/interfaces/RTCProtocol.md +0 -404
  100. package/docs/interfaces/VRWebViewRTCOptions.md +0 -41
  101. package/docs/type-aliases/BuiltinMsg.md +0 -41
  102. package/docs/type-aliases/EventType.md +0 -19
  103. package/docs/type-aliases/GetVoiceSign.md +0 -15
  104. package/docs/type-aliases/GetVoiceSignParams.md +0 -35
  105. package/docs/type-aliases/GetVoiceSignReturnType.md +0 -41
  106. package/docs/type-aliases/KeyframeEventType.md +0 -19
  107. package/docs/type-aliases/LiveBuiltInData.md +0 -47
  108. package/docs/type-aliases/LiveConnectOptions.md +0 -47
  109. package/docs/type-aliases/LiveEventType.md +0 -165
  110. package/docs/type-aliases/LiveMsg.md +0 -53
  111. package/docs/type-aliases/LiveProviderPropTypes.md +0 -27
  112. package/docs/type-aliases/RTCActionReactCallback.md +0 -13
  113. package/docs/type-aliases/RTCEventType.md +0 -65
  114. package/docs/type-aliases/ReqLiveMsg.md +0 -45
  115. package/docs/type-aliases/RoomInfo.md +0 -55
  116. package/docs/type-aliases/UserInfo.md +0 -77
  117. package/docs/type-aliases/UserInfoExt.md +0 -33
  118. package/docs/type-aliases/UserVolume.md +0 -25
  119. package/docs/type-aliases/WebSocketError.md +0 -31
@@ -1,448 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / CoreRTC
6
-
7
- # Class: `abstract` CoreRTC
8
-
9
- rtc 基础抽象类
10
-
11
- ## Extends
12
-
13
- - `Subscribe`\<[`RTCEventType`](../type-aliases/RTCEventType.md)\>
14
-
15
- ## Extended by
16
-
17
- - [`BrowserRTC`](BrowserRTC.md)
18
- - [`BrowserRTC4Chime`](BrowserRTC4Chime.md)
19
- - [`VRWebViewRTC`](VRWebViewRTC.md)
20
-
21
- ## Implements
22
-
23
- - [`RTCProtocol`](../interfaces/RTCProtocol.md)
24
-
25
- ## Constructors
26
-
27
- ### new CoreRTC()
28
-
29
- > **new CoreRTC**(): [`CoreRTC`](CoreRTC.md)
30
-
31
- #### Returns
32
-
33
- [`CoreRTC`](CoreRTC.md)
34
-
35
- #### Inherited from
36
-
37
- `Subscribe<RTCEventType>.constructor`
38
-
39
- ## Properties
40
-
41
- ### joined
42
-
43
- > `abstract` **joined**: `boolean`
44
-
45
- 是否已经加入房间
46
-
47
- #### Implementation of
48
-
49
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`joined`](../interfaces/RTCProtocol.md#joined)
50
-
51
- #### Defined in
52
-
53
- rtc/CoreRTC.ts:13
54
-
55
- ***
56
-
57
- ### micro
58
-
59
- > `abstract` **micro**: `boolean`
60
-
61
- 麦克风状态
62
-
63
- #### Implementation of
64
-
65
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`micro`](../interfaces/RTCProtocol.md#micro)
66
-
67
- #### Defined in
68
-
69
- rtc/CoreRTC.ts:15
70
-
71
- ***
72
-
73
- ### type
74
-
75
- > `abstract` **type**: [`RTCType`](../enumerations/RTCType.md)
76
-
77
- rtc 实现类型
78
-
79
- #### Implementation of
80
-
81
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`type`](../interfaces/RTCProtocol.md#type)
82
-
83
- #### Defined in
84
-
85
- rtc/CoreRTC.ts:19
86
-
87
- ***
88
-
89
- ### voiceId
90
-
91
- > `abstract` **voiceId**: `string`
92
-
93
- 语音房间ID
94
-
95
- #### Implementation of
96
-
97
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`voiceId`](../interfaces/RTCProtocol.md#voiceid)
98
-
99
- #### Defined in
100
-
101
- rtc/CoreRTC.ts:17
102
-
103
- ## Methods
104
-
105
- ### detectMicro()
106
-
107
- > `abstract` **detectMicro**(): `Promise`\<`boolean`\>
108
-
109
- 监测麦克风授权。
110
-
111
- #### Returns
112
-
113
- `Promise`\<`boolean`\>
114
-
115
- 返回一个Promise,表示麦克风是否被授权
116
-
117
- #### Implementation of
118
-
119
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`detectMicro`](../interfaces/RTCProtocol.md#detectmicro)
120
-
121
- #### Defined in
122
-
123
- rtc/CoreRTC.ts:30
124
-
125
- ***
126
-
127
- ### emit()
128
-
129
- > **emit**\<`K`\>(`name`, ...`data`): `boolean`
130
-
131
- 触发事件
132
-
133
- #### Type Parameters
134
-
135
- • **K** *extends* keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
136
-
137
- 预设的监听事件名称
138
-
139
- #### Parameters
140
-
141
- • **name**: `K`
142
-
143
- 事件类型
144
-
145
- • ...**data**: `Parameters`\<[`RTCEventType`](../type-aliases/RTCEventType.md)\[`K`\]\>
146
-
147
- 触发事件的数据
148
-
149
- #### Returns
150
-
151
- `boolean`
152
-
153
- canceled 是否被触发取消
154
-
155
- #### Implementation of
156
-
157
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`emit`](../interfaces/RTCProtocol.md#emit)
158
-
159
- #### Inherited from
160
-
161
- `Subscribe.emit`
162
-
163
- #### Defined in
164
-
165
- utils/subscribe.ts:115
166
-
167
- ***
168
-
169
- ### hasListener()
170
-
171
- > **hasListener**(`name`): `boolean`
172
-
173
- 判断是否注册了事件
174
-
175
- #### Parameters
176
-
177
- • **name**: keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
178
-
179
- 事件类型
180
-
181
- #### Returns
182
-
183
- `boolean`
184
-
185
- #### Implementation of
186
-
187
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`hasListener`](../interfaces/RTCProtocol.md#haslistener)
188
-
189
- #### Inherited from
190
-
191
- `Subscribe.hasListener`
192
-
193
- #### Defined in
194
-
195
- utils/subscribe.ts:41
196
-
197
- ***
198
-
199
- ### join()
200
-
201
- > `abstract` **join**(`options`): `Promise`\<`boolean`\>
202
-
203
- 加入房间。
204
-
205
- #### Parameters
206
-
207
- • **options**
208
-
209
- 加入房间的选项
210
-
211
- • **options.roomId**: `undefined` \| `string` \| `number`
212
-
213
- 房间ID
214
-
215
- • **options.type**: [`RTCType`](../enumerations/RTCType.md)
216
-
217
- RTC类型
218
-
219
- • **options.userId**: `string`
220
-
221
- 用户ID
222
-
223
- • **options.voiceId**: `string`
224
-
225
- 语音房间ID
226
-
227
- #### Returns
228
-
229
- `Promise`\<`boolean`\>
230
-
231
- 返回一个Promise,表示是否成功加入房间
232
-
233
- #### Implementation of
234
-
235
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`join`](../interfaces/RTCProtocol.md#join)
236
-
237
- #### Defined in
238
-
239
- rtc/CoreRTC.ts:21
240
-
241
- ***
242
-
243
- ### off()
244
-
245
- > **off**\<`K`\>(`name`?, `callback`?): `void`
246
-
247
- 解除事件
248
-
249
- 如果 name 不传的话解除对应所有事件
250
- 如果 name, callback 不传的话解除所有name的所有事件
251
-
252
- #### Type Parameters
253
-
254
- • **K** *extends* keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
255
-
256
- 预设的监听事件名称
257
-
258
- #### Parameters
259
-
260
- • **name?**: `K`
261
-
262
- 事件类型
263
-
264
- • **callback?**
265
-
266
- 事件回调函数
267
-
268
- #### Returns
269
-
270
- `void`
271
-
272
- #### Implementation of
273
-
274
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`off`](../interfaces/RTCProtocol.md#off)
275
-
276
- #### Inherited from
277
-
278
- `Subscribe.off`
279
-
280
- #### Defined in
281
-
282
- utils/subscribe.ts:87
283
-
284
- ***
285
-
286
- ### on()
287
-
288
- > **on**\<`K`\>(`name`, `callback`, `once`?): () => `void`
289
-
290
- 注册事件
291
-
292
- #### Type Parameters
293
-
294
- • **K** *extends* keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
295
-
296
- 预设的监听事件名称
297
-
298
- #### Parameters
299
-
300
- • **name**: `K`
301
-
302
- 事件类型
303
-
304
- • **callback**
305
-
306
- 事件回调函数
307
-
308
- • **once?**: `boolean`
309
-
310
- 是否只执行一次
311
-
312
- #### Returns
313
-
314
- `Function`
315
-
316
- 解除事件
317
-
318
- ##### Returns
319
-
320
- `void`
321
-
322
- #### Implementation of
323
-
324
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`on`](../interfaces/RTCProtocol.md#on)
325
-
326
- #### Inherited from
327
-
328
- `Subscribe.on`
329
-
330
- #### Defined in
331
-
332
- utils/subscribe.ts:55
333
-
334
- ***
335
-
336
- ### once()
337
-
338
- > **once**\<`K`\>(`name`, `callback`): () => `void`
339
-
340
- 注册事件(是否只执行一次)
341
-
342
- #### Type Parameters
343
-
344
- • **K** *extends* keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
345
-
346
- 预设的监听事件名称
347
-
348
- #### Parameters
349
-
350
- • **name**: `K`
351
-
352
- 事件类型
353
-
354
- • **callback**
355
-
356
- 事件回调函数
357
-
358
- #### Returns
359
-
360
- `Function`
361
-
362
- 解除事件
363
-
364
- ##### Returns
365
-
366
- `void`
367
-
368
- #### Implementation of
369
-
370
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`once`](../interfaces/RTCProtocol.md#once)
371
-
372
- #### Inherited from
373
-
374
- `Subscribe.once`
375
-
376
- #### Defined in
377
-
378
- utils/subscribe.ts:74
379
-
380
- ***
381
-
382
- ### quit()
383
-
384
- > `abstract` **quit**(): `Promise`\<`boolean`\>
385
-
386
- 离开房间。
387
-
388
- #### Returns
389
-
390
- `Promise`\<`boolean`\>
391
-
392
- 返回一个Promise,表示是否成功离开房间
393
-
394
- #### Implementation of
395
-
396
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`quit`](../interfaces/RTCProtocol.md#quit)
397
-
398
- #### Defined in
399
-
400
- rtc/CoreRTC.ts:28
401
-
402
- ***
403
-
404
- ### shock()
405
-
406
- > `abstract` **shock**(): `void`
407
-
408
- 震动。
409
-
410
- #### Returns
411
-
412
- `void`
413
-
414
- #### Implementation of
415
-
416
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`shock`](../interfaces/RTCProtocol.md#shock)
417
-
418
- #### Defined in
419
-
420
- rtc/CoreRTC.ts:34
421
-
422
- ***
423
-
424
- ### toggleMicro()
425
-
426
- > `abstract` **toggleMicro**(`flag`?): `Promise`\<`boolean`\>
427
-
428
- 关闭\开启 本地麦克风。
429
-
430
- #### Parameters
431
-
432
- • **flag?**: `boolean`
433
-
434
- 是否开启麦克风,默认为切换当前状态
435
-
436
- #### Returns
437
-
438
- `Promise`\<`boolean`\>
439
-
440
- 返回一个Promise,表示操作是否成功
441
-
442
- #### Implementation of
443
-
444
- [`RTCProtocol`](../interfaces/RTCProtocol.md).[`toggleMicro`](../interfaces/RTCProtocol.md#togglemicro)
445
-
446
- #### Defined in
447
-
448
- rtc/CoreRTC.ts:32