@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,770 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / Live
6
-
7
- # Class: Live\<KeyframesSnapshot\>
8
-
9
- ## Extends
10
-
11
- - `Subscribe`\<[`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>\>
12
-
13
- ## Type Parameters
14
-
15
- • **KeyframesSnapshot** *extends* `Record`\<`string`, `any`\>
16
-
17
- ## Constructors
18
-
19
- ### new Live()
20
-
21
- > **new Live**\<`KeyframesSnapshot`\>(`opts`): [`Live`](Live.md)\<`KeyframesSnapshot`\>
22
-
23
- #### Parameters
24
-
25
- • **opts**: [`LiveOptions`](../interfaces/LiveOptions.md)
26
-
27
- #### Returns
28
-
29
- [`Live`](Live.md)\<`KeyframesSnapshot`\>
30
-
31
- #### Overrides
32
-
33
- `Subscribe<EventType<KeyframesSnapshot>>.constructor`
34
-
35
- #### Defined in
36
-
37
- live/live.ts:124
38
-
39
- ## Properties
40
-
41
- ### keyframes
42
-
43
- > **keyframes**: `Subscribe`\<[`KeyframeEventType`](../type-aliases/KeyframeEventType.md)\<`KeyframesSnapshot`\>\>
44
-
45
- 帧数据监听
46
-
47
- #### Defined in
48
-
49
- live/live.ts:112
50
-
51
- ## Accessors
52
-
53
- ### $RTC
54
-
55
- > `get` **$RTC**(): [`RTCProtocol`](../interfaces/RTCProtocol.md)
56
-
57
- 获取当前live使用的RTC实例
58
-
59
- #### Returns
60
-
61
- [`RTCProtocol`](../interfaces/RTCProtocol.md)
62
-
63
- #### Defined in
64
-
65
- live/live.ts:98
66
-
67
- ***
68
-
69
- ### jsBridge
70
-
71
- > `get` **jsBridge**(): `JSBridgeProtocol`
72
-
73
- 获取当前live使用的jsBridge实例
74
-
75
- #### Returns
76
-
77
- `JSBridgeProtocol`
78
-
79
- #### Defined in
80
-
81
- live/live.ts:105
82
-
83
- ***
84
-
85
- ### options
86
-
87
- > `get` **options**(): [`LiveOptions`](../interfaces/LiveOptions.md)
88
-
89
- #### Returns
90
-
91
- [`LiveOptions`](../interfaces/LiveOptions.md)
92
-
93
- #### Defined in
94
-
95
- live/live.ts:68
96
-
97
- ***
98
-
99
- ### readyState
100
-
101
- > `get` **readyState**(): [`LiveState`](../enumerations/LiveState.md)
102
-
103
- 兼容老逻辑
104
-
105
- #### Deprecated
106
-
107
- 请直接读取 state 属性字段,未来将移除该属性
108
-
109
- #### Returns
110
-
111
- [`LiveState`](../enumerations/LiveState.md)
112
-
113
- #### Defined in
114
-
115
- live/live.ts:83
116
-
117
- ***
118
-
119
- ### roomInfo
120
-
121
- > `get` **roomInfo**(): `undefined` \| [`RoomInfo`](../type-aliases/RoomInfo.md)
122
-
123
- 当前带看房间信息
124
-
125
- #### Returns
126
-
127
- `undefined` \| [`RoomInfo`](../type-aliases/RoomInfo.md)
128
-
129
- #### Defined in
130
-
131
- live/live.ts:234
132
-
133
- ***
134
-
135
- ### selfInfo
136
-
137
- > `get` **selfInfo**(): `undefined` \| [`UserInfo`](../type-aliases/UserInfo.md)
138
-
139
- 当前用户信息
140
-
141
- #### Returns
142
-
143
- `undefined` \| [`UserInfo`](../type-aliases/UserInfo.md)
144
-
145
- #### Defined in
146
-
147
- live/live.ts:220
148
-
149
- ***
150
-
151
- ### snapshot
152
-
153
- > `get` **snapshot**(): `Partial`\<`KeyframesSnapshot`\>
154
-
155
- 当前帧数据快照
156
-
157
- #### Returns
158
-
159
- `Partial`\<`KeyframesSnapshot`\>
160
-
161
- #### Defined in
162
-
163
- live/live.ts:142
164
-
165
- ***
166
-
167
- ### state
168
-
169
- > `get` **state**(): [`LiveState`](../enumerations/LiveState.md)
170
-
171
- 带看状态
172
-
173
- #### Returns
174
-
175
- [`LiveState`](../enumerations/LiveState.md)
176
-
177
- #### Defined in
178
-
179
- live/live.ts:75
180
-
181
- ***
182
-
183
- ### url
184
-
185
- > `get` **url**(): `undefined` \| `string`
186
-
187
- 获取当前WebSocket连接的URL。(注意:这个是WebSocket连接的完整连接,附带一些query参数)。
188
-
189
- #### Deprecated
190
-
191
- 带看不需要关注底层ws的相关信息,未来将移除
192
-
193
- #### Returns
194
-
195
- `undefined` \| `string`
196
-
197
- #### Defined in
198
-
199
- live/live.ts:91
200
-
201
- ***
202
-
203
- ### userList
204
-
205
- > `get` **userList**(): [`UserInfo`](../type-aliases/UserInfo.md)[]
206
-
207
- 当前用户列表
208
-
209
- #### Returns
210
-
211
- [`UserInfo`](../type-aliases/UserInfo.md)[]
212
-
213
- #### Defined in
214
-
215
- live/live.ts:227
216
-
217
- ## Methods
218
-
219
- ### \_exit()
220
-
221
- > **\_exit**(): `Promise`\<`boolean`\>
222
-
223
- 退出带看
224
-
225
- #### Returns
226
-
227
- `Promise`\<`boolean`\>
228
-
229
- #### Defined in
230
-
231
- live/live.ts:602
232
-
233
- ***
234
-
235
- ### \_handleKeyframesChange()
236
-
237
- > **\_handleKeyframesChange**(`event`): `void`
238
-
239
- #### Parameters
240
-
241
- • **event**: `YMapEvent`\<`KeyframesSnapshot`\>
242
-
243
- #### Returns
244
-
245
- `void`
246
-
247
- #### Defined in
248
-
249
- live/live.ts:150
250
-
251
- ***
252
-
253
- ### \_initializeKeyframesObservers()
254
-
255
- > **\_initializeKeyframesObservers**(): `void`
256
-
257
- #### Returns
258
-
259
- `void`
260
-
261
- #### Defined in
262
-
263
- live/live.ts:146
264
-
265
- ***
266
-
267
- ### broadcast()
268
-
269
- > **broadcast**\<`Request`, `Response`\>(`request`, `toUserIds`, `timeout`): `false` \| `Error` \| `Promise`\<`Response`\>
270
-
271
- 自定义广播
272
-
273
- #### Type Parameters
274
-
275
- • **Request** *extends* `Record`\<`string`, `any`\>
276
-
277
- • **Response**
278
-
279
- #### Parameters
280
-
281
- • **request**: `Request`
282
-
283
- 广播请求的数据
284
-
285
- • **toUserIds**: `string` \| `string`[]
286
-
287
- • **timeout**: `number`
288
-
289
- #### Returns
290
-
291
- `false` \| `Error` \| `Promise`\<`Response`\>
292
-
293
- #### Defined in
294
-
295
- live/live.ts:693
296
-
297
- ***
298
-
299
- ### close()
300
-
301
- > **close**(): `Promise`\<`void`\>
302
-
303
- 关闭带看房间
304
-
305
- #### Returns
306
-
307
- `Promise`\<`void`\>
308
-
309
- 关闭结果
310
-
311
- #### Defined in
312
-
313
- live/live.ts:624
314
-
315
- ***
316
-
317
- ### connect()
318
-
319
- > **connect**(`options`): `Promise`\<`true` \| `Error`\>
320
-
321
- 连接带看
322
-
323
- #### Parameters
324
-
325
- • **options**: [`LiveConnectOptions`](../type-aliases/LiveConnectOptions.md) = `{}`
326
-
327
- 连接选项
328
-
329
- #### Returns
330
-
331
- `Promise`\<`true` \| `Error`\>
332
-
333
- 连接结果,成功返回true,失败返回Error
334
-
335
- #### Defined in
336
-
337
- live/live.ts:552
338
-
339
- ***
340
-
341
- ### dispose()
342
-
343
- > **dispose**(): `Promise`\<`boolean`\>
344
-
345
- 销毁带看
346
-
347
- #### Returns
348
-
349
- `Promise`\<`boolean`\>
350
-
351
- #### Defined in
352
-
353
- live/live.ts:639
354
-
355
- ***
356
-
357
- ### emit()
358
-
359
- > **emit**\<`K`\>(`name`, ...`data`): `boolean`
360
-
361
- 触发事件
362
-
363
- #### Type Parameters
364
-
365
- • **K** *extends* keyof [`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>
366
-
367
- 预设的监听事件名称
368
-
369
- #### Parameters
370
-
371
- • **name**: `K`
372
-
373
- 事件类型
374
-
375
- • ...**data**: `Parameters`\<[`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>\[`K`\]\>
376
-
377
- 触发事件的数据
378
-
379
- #### Returns
380
-
381
- `boolean`
382
-
383
- canceled 是否被触发取消
384
-
385
- #### Inherited from
386
-
387
- `Subscribe.emit`
388
-
389
- #### Defined in
390
-
391
- utils/subscribe.ts:115
392
-
393
- ***
394
-
395
- ### exit()
396
-
397
- > **exit**(): `Promise`\<`void`\>
398
-
399
- 退出带看
400
-
401
- #### Returns
402
-
403
- `Promise`\<`void`\>
404
-
405
- #### Defined in
406
-
407
- live/live.ts:618
408
-
409
- ***
410
-
411
- ### forbidMicro()
412
-
413
- > **forbidMicro**(`microStatus`, `toUserIds`): `Promise`\<`boolean`\>
414
-
415
- 控制别人的麦
416
-
417
- #### Parameters
418
-
419
- • **microStatus**: [`MicroStatus`](../enumerations/MicroStatus.md)
420
-
421
- • **toUserIds**: `string` \| `string`[]
422
-
423
- #### Returns
424
-
425
- `Promise`\<`boolean`\>
426
-
427
- #### Defined in
428
-
429
- live/live.ts:752
430
-
431
- ***
432
-
433
- ### forbidSync()
434
-
435
- > **forbidSync**(`sync`, `toUserIds`): `Promise`\<`boolean`\>
436
-
437
- 控制别人的同步全量帧数据权限
438
-
439
- #### Parameters
440
-
441
- • **sync**: `boolean`
442
-
443
- • **toUserIds**: `string` \| `string`[]
444
-
445
- #### Returns
446
-
447
- `Promise`\<`boolean`\>
448
-
449
- #### Defined in
450
-
451
- live/live.ts:777
452
-
453
- ***
454
-
455
- ### getFramesByKey()
456
-
457
- > **getFramesByKey**\<`Key`\>(`key`): `undefined` \| `Partial`\<`KeyframesSnapshot`\>\[`Key`\]
458
-
459
- 根据键值取帧数据
460
-
461
- #### Type Parameters
462
-
463
- • **Key** *extends* `string` \| `number` \| `symbol`
464
-
465
- #### Parameters
466
-
467
- • **key**: `Key`
468
-
469
- 帧数据的键值
470
-
471
- #### Returns
472
-
473
- `undefined` \| `Partial`\<`KeyframesSnapshot`\>\[`Key`\]
474
-
475
- #### Defined in
476
-
477
- live/live.ts:189
478
-
479
- ***
480
-
481
- ### getSnapshotForKey()
482
-
483
- > **getSnapshotForKey**\<`Key`\>(`key`): `any`
484
-
485
- 获取当前某个 keyframe 的数据快照
486
-
487
- #### Type Parameters
488
-
489
- • **Key** *extends* `string` \| `number` \| `symbol`
490
-
491
- #### Parameters
492
-
493
- • **key**: `Key`
494
-
495
- #### Returns
496
-
497
- `any`
498
-
499
- #### Defined in
500
-
501
- live/live.ts:821
502
-
503
- ***
504
-
505
- ### hasListener()
506
-
507
- > **hasListener**(`name`): `boolean`
508
-
509
- 判断是否注册了事件
510
-
511
- #### Parameters
512
-
513
- • **name**: keyof [`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>
514
-
515
- 事件类型
516
-
517
- #### Returns
518
-
519
- `boolean`
520
-
521
- #### Inherited from
522
-
523
- `Subscribe.hasListener`
524
-
525
- #### Defined in
526
-
527
- utils/subscribe.ts:41
528
-
529
- ***
530
-
531
- ### kick()
532
-
533
- > **kick**(`toUserIds`): `Promise`\<`boolean`\>
534
-
535
- 把用户踢出带看
536
-
537
- #### Parameters
538
-
539
- • **toUserIds**: `string` \| `string`[]
540
-
541
- #### Returns
542
-
543
- `Promise`\<`boolean`\>
544
-
545
- #### Defined in
546
-
547
- live/live.ts:799
548
-
549
- ***
550
-
551
- ### off()
552
-
553
- > **off**\<`K`\>(`name`?, `callback`?): `void`
554
-
555
- 解除事件
556
-
557
- 如果 name 不传的话解除对应所有事件
558
- 如果 name, callback 不传的话解除所有name的所有事件
559
-
560
- #### Type Parameters
561
-
562
- • **K** *extends* keyof [`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>
563
-
564
- 预设的监听事件名称
565
-
566
- #### Parameters
567
-
568
- • **name?**: `K`
569
-
570
- 事件类型
571
-
572
- • **callback?**
573
-
574
- 事件回调函数
575
-
576
- #### Returns
577
-
578
- `void`
579
-
580
- #### Inherited from
581
-
582
- `Subscribe.off`
583
-
584
- #### Defined in
585
-
586
- utils/subscribe.ts:87
587
-
588
- ***
589
-
590
- ### on()
591
-
592
- > **on**\<`K`\>(`name`, `callback`, `once`?): () => `void`
593
-
594
- 注册事件
595
-
596
- #### Type Parameters
597
-
598
- • **K** *extends* keyof [`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>
599
-
600
- 预设的监听事件名称
601
-
602
- #### Parameters
603
-
604
- • **name**: `K`
605
-
606
- 事件类型
607
-
608
- • **callback**
609
-
610
- 事件回调函数
611
-
612
- • **once?**: `boolean`
613
-
614
- 是否只执行一次
615
-
616
- #### Returns
617
-
618
- `Function`
619
-
620
- 解除事件
621
-
622
- ##### Returns
623
-
624
- `void`
625
-
626
- #### Inherited from
627
-
628
- `Subscribe.on`
629
-
630
- #### Defined in
631
-
632
- utils/subscribe.ts:55
633
-
634
- ***
635
-
636
- ### once()
637
-
638
- > **once**\<`K`\>(`name`, `callback`): () => `void`
639
-
640
- 注册事件(是否只执行一次)
641
-
642
- #### Type Parameters
643
-
644
- • **K** *extends* keyof [`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>
645
-
646
- 预设的监听事件名称
647
-
648
- #### Parameters
649
-
650
- • **name**: `K`
651
-
652
- 事件类型
653
-
654
- • **callback**
655
-
656
- 事件回调函数
657
-
658
- #### Returns
659
-
660
- `Function`
661
-
662
- 解除事件
663
-
664
- ##### Returns
665
-
666
- `void`
667
-
668
- #### Inherited from
669
-
670
- `Subscribe.once`
671
-
672
- #### Defined in
673
-
674
- utils/subscribe.ts:74
675
-
676
- ***
677
-
678
- ### sendKeyframe()
679
-
680
- > **sendKeyframe**\<`Key`\>(`key`, `frame`): `boolean` \| `Error`
681
-
682
- 发送帧数据(需要能够被序列化)
683
-
684
- #### Type Parameters
685
-
686
- • **Key** *extends* `string` \| `number` \| `symbol`
687
-
688
- #### Parameters
689
-
690
- • **key**: `Key`
691
-
692
- 帧数据键值
693
-
694
- • **frame**: `KeyframesSnapshot`\[`Key`\]
695
-
696
- 帧数据本体
697
-
698
- #### Returns
699
-
700
- `boolean` \| `Error`
701
-
702
- 发送结果,成功返回true,失败返回false或Error
703
-
704
- #### Defined in
705
-
706
- live/live.ts:198
707
-
708
- ***
709
-
710
- ### setSelfInfo()
711
-
712
- > **setSelfInfo**(`userInfo`): `Promise`\<`boolean`\>
713
-
714
- 设置自己的用户信息
715
-
716
- #### Parameters
717
-
718
- • **userInfo**: `Partial`\<[`UserInfo`](../type-aliases/UserInfo.md)\>
719
-
720
- #### Returns
721
-
722
- `Promise`\<`boolean`\>
723
-
724
- #### Defined in
725
-
726
- live/live.ts:683
727
-
728
- ***
729
-
730
- ### toggleMicro()
731
-
732
- > **toggleMicro**(`microStatus`): `Promise`\<`boolean`\>
733
-
734
- #### Parameters
735
-
736
- • **microStatus**: `boolean`
737
-
738
- #### Returns
739
-
740
- `Promise`\<`boolean`\>
741
-
742
- #### Defined in
743
-
744
- live/live.ts:728
745
-
746
- ***
747
-
748
- ### updateStatus()
749
-
750
- > **updateStatus**(`evtType`, `atnType`, `status`, `toUserIds`?): `Promise`\<`boolean`\>
751
-
752
- 修改状态
753
-
754
- #### Parameters
755
-
756
- • **evtType**: [`BuiltinEventType`](../enumerations/BuiltinEventType.md)
757
-
758
- • **atnType**: [`BuiltinActionType`](../enumerations/BuiltinActionType.md)
759
-
760
- • **status**: `Record`\<`string`, `any`\>
761
-
762
- • **toUserIds?**: `string` \| `string`[]
763
-
764
- #### Returns
765
-
766
- `Promise`\<`boolean`\>
767
-
768
- #### Defined in
769
-
770
- live/live.ts:660