@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,404 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / RTCProtocol
6
-
7
- # Interface: RTCProtocol
8
-
9
- rtc 协议接口
10
-
11
- ## Extends
12
-
13
- - `Subscribe`\<[`RTCEventType`](../type-aliases/RTCEventType.md)\>
14
-
15
- ## Properties
16
-
17
- ### joined
18
-
19
- > **joined**: `boolean`
20
-
21
- 是否已经加入房间
22
-
23
- #### Defined in
24
-
25
- typings/rtc/protocol.ts:16
26
-
27
- ***
28
-
29
- ### micro
30
-
31
- > **micro**: `boolean`
32
-
33
- 麦克风状态
34
-
35
- #### Defined in
36
-
37
- typings/rtc/protocol.ts:22
38
-
39
- ***
40
-
41
- ### type
42
-
43
- > **type**: [`RTCType`](../enumerations/RTCType.md)
44
-
45
- rtc 实现类型
46
-
47
- #### Defined in
48
-
49
- typings/rtc/protocol.ts:34
50
-
51
- ***
52
-
53
- ### voiceId
54
-
55
- > **voiceId**: `string`
56
-
57
- 语音房间ID
58
-
59
- #### Defined in
60
-
61
- typings/rtc/protocol.ts:28
62
-
63
- ## Methods
64
-
65
- ### checkRequirement()?
66
-
67
- > `optional` **checkRequirement**(): `Promise`\<`CheckResult`\>
68
-
69
- 检查rtc的系统依赖是否满足
70
-
71
- #### Returns
72
-
73
- `Promise`\<`CheckResult`\>
74
-
75
- 返回一个Promise,表示检查结果
76
-
77
- #### Defined in
78
-
79
- typings/rtc/protocol.ts:40
80
-
81
- ***
82
-
83
- ### detectMicro()
84
-
85
- > **detectMicro**(): `Promise`\<`boolean`\>
86
-
87
- 监测麦克风授权。
88
-
89
- #### Returns
90
-
91
- `Promise`\<`boolean`\>
92
-
93
- 返回一个Promise,表示麦克风是否被授权
94
-
95
- #### Defined in
96
-
97
- typings/rtc/protocol.ts:74
98
-
99
- ***
100
-
101
- ### emit()
102
-
103
- > **emit**\<`K`\>(`name`, ...`data`): `boolean`
104
-
105
- 触发事件
106
-
107
- #### Type Parameters
108
-
109
- • **K** *extends* keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
110
-
111
- 预设的监听事件名称
112
-
113
- #### Parameters
114
-
115
- • **name**: `K`
116
-
117
- 事件类型
118
-
119
- • ...**data**: `Parameters`\<[`RTCEventType`](../type-aliases/RTCEventType.md)\[`K`\]\>
120
-
121
- 触发事件的数据
122
-
123
- #### Returns
124
-
125
- `boolean`
126
-
127
- canceled 是否被触发取消
128
-
129
- #### Inherited from
130
-
131
- `Subscribe.emit`
132
-
133
- #### Defined in
134
-
135
- utils/subscribe.ts:115
136
-
137
- ***
138
-
139
- ### hasListener()
140
-
141
- > **hasListener**(`name`): `boolean`
142
-
143
- 判断是否注册了事件
144
-
145
- #### Parameters
146
-
147
- • **name**: keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
148
-
149
- 事件类型
150
-
151
- #### Returns
152
-
153
- `boolean`
154
-
155
- #### Inherited from
156
-
157
- `Subscribe.hasListener`
158
-
159
- #### Defined in
160
-
161
- utils/subscribe.ts:41
162
-
163
- ***
164
-
165
- ### join()
166
-
167
- > **join**(`options`): `Promise`\<`boolean`\>
168
-
169
- 加入房间。
170
-
171
- #### Parameters
172
-
173
- • **options**
174
-
175
- 加入房间的选项
176
-
177
- • **options.roomId**: `undefined` \| `string` \| `number`
178
-
179
- 房间ID
180
-
181
- • **options.type**: [`RTCType`](../enumerations/RTCType.md)
182
-
183
- RTC类型
184
-
185
- • **options.userId**: `string`
186
-
187
- 用户ID
188
-
189
- • **options.voiceId**: `string`
190
-
191
- 语音房间ID
192
-
193
- #### Returns
194
-
195
- `Promise`\<`boolean`\>
196
-
197
- 返回一个Promise,表示是否成功加入房间
198
-
199
- #### Defined in
200
-
201
- typings/rtc/protocol.ts:51
202
-
203
- ***
204
-
205
- ### off()
206
-
207
- > **off**\<`K`\>(`name`?, `callback`?): `void`
208
-
209
- 解除事件
210
-
211
- 如果 name 不传的话解除对应所有事件
212
- 如果 name, callback 不传的话解除所有name的所有事件
213
-
214
- #### Type Parameters
215
-
216
- • **K** *extends* keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
217
-
218
- 预设的监听事件名称
219
-
220
- #### Parameters
221
-
222
- • **name?**: `K`
223
-
224
- 事件类型
225
-
226
- • **callback?**
227
-
228
- 事件回调函数
229
-
230
- #### Returns
231
-
232
- `void`
233
-
234
- #### Inherited from
235
-
236
- `Subscribe.off`
237
-
238
- #### Defined in
239
-
240
- utils/subscribe.ts:87
241
-
242
- ***
243
-
244
- ### on()
245
-
246
- > **on**\<`K`\>(`name`, `callback`, `once`?): () => `void`
247
-
248
- 注册事件
249
-
250
- #### Type Parameters
251
-
252
- • **K** *extends* keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
253
-
254
- 预设的监听事件名称
255
-
256
- #### Parameters
257
-
258
- • **name**: `K`
259
-
260
- 事件类型
261
-
262
- • **callback**
263
-
264
- 事件回调函数
265
-
266
- • **once?**: `boolean`
267
-
268
- 是否只执行一次
269
-
270
- #### Returns
271
-
272
- `Function`
273
-
274
- 解除事件
275
-
276
- ##### Returns
277
-
278
- `void`
279
-
280
- #### Inherited from
281
-
282
- `Subscribe.on`
283
-
284
- #### Defined in
285
-
286
- utils/subscribe.ts:55
287
-
288
- ***
289
-
290
- ### once()
291
-
292
- > **once**\<`K`\>(`name`, `callback`): () => `void`
293
-
294
- 注册事件(是否只执行一次)
295
-
296
- #### Type Parameters
297
-
298
- • **K** *extends* keyof [`RTCEventType`](../type-aliases/RTCEventType.md)
299
-
300
- 预设的监听事件名称
301
-
302
- #### Parameters
303
-
304
- • **name**: `K`
305
-
306
- 事件类型
307
-
308
- • **callback**
309
-
310
- 事件回调函数
311
-
312
- #### Returns
313
-
314
- `Function`
315
-
316
- 解除事件
317
-
318
- ##### Returns
319
-
320
- `void`
321
-
322
- #### Inherited from
323
-
324
- `Subscribe.once`
325
-
326
- #### Defined in
327
-
328
- utils/subscribe.ts:74
329
-
330
- ***
331
-
332
- ### quit()
333
-
334
- > **quit**(): `Promise`\<`boolean`\>
335
-
336
- 离开房间。
337
-
338
- #### Returns
339
-
340
- `Promise`\<`boolean`\>
341
-
342
- 返回一个Promise,表示是否成功离开房间
343
-
344
- #### Defined in
345
-
346
- typings/rtc/protocol.ts:68
347
-
348
- ***
349
-
350
- ### reJoin()?
351
-
352
- > `optional` **reJoin**(): `Promise`\<`boolean`\>
353
-
354
- 重新加入房间。
355
-
356
- #### Returns
357
-
358
- `Promise`\<`boolean`\>
359
-
360
- 返回一个Promise,表示是否成功重新加入房间
361
-
362
- #### Defined in
363
-
364
- typings/rtc/protocol.ts:62
365
-
366
- ***
367
-
368
- ### shock()?
369
-
370
- > `optional` **shock**(): `void`
371
-
372
- 震动。
373
-
374
- #### Returns
375
-
376
- `void`
377
-
378
- #### Defined in
379
-
380
- typings/rtc/protocol.ts:87
381
-
382
- ***
383
-
384
- ### toggleMicro()
385
-
386
- > **toggleMicro**(`flag`?): `Promise`\<`boolean`\>
387
-
388
- 关闭\开启 本地麦克风。
389
-
390
- #### Parameters
391
-
392
- • **flag?**: `boolean`
393
-
394
- 是否开启麦克风,默认为切换当前状态
395
-
396
- #### Returns
397
-
398
- `Promise`\<`boolean`\>
399
-
400
- 返回一个Promise,表示操作是否成功
401
-
402
- #### Defined in
403
-
404
- typings/rtc/protocol.ts:81
@@ -1,41 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / VRWebViewRTCOptions
6
-
7
- # Interface: VRWebViewRTCOptions
8
-
9
- ## Properties
10
-
11
- ### getVoiceSign()
12
-
13
- > **getVoiceSign**: (`params`) => `Promise`\<[`GetVoiceSignReturnType`](../type-aliases/GetVoiceSignReturnType.md)\>
14
-
15
- 获取用户语音签名的方法
16
-
17
- #### Parameters
18
-
19
- • **params**: [`GetVoiceSignParams`](../type-aliases/GetVoiceSignParams.md)
20
-
21
- 获取语音签名所需的参数
22
-
23
- #### Returns
24
-
25
- `Promise`\<[`GetVoiceSignReturnType`](../type-aliases/GetVoiceSignReturnType.md)\>
26
-
27
- 返回一个Promise,解析为语音签名的相关信息
28
-
29
- #### Defined in
30
-
31
- typings/rtc/VRWebViewRTCOptions.ts:6
32
-
33
- ***
34
-
35
- ### jsBridge
36
-
37
- > **jsBridge**: `JSBridgeProtocol`
38
-
39
- #### Defined in
40
-
41
- typings/rtc/VRWebViewRTCOptions.ts:5
@@ -1,41 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / BuiltinMsg
6
-
7
- # Type Alias: BuiltinMsg
8
-
9
- > **BuiltinMsg**: `object`
10
-
11
- 内置事件数据结构体。
12
-
13
- ## Type declaration
14
-
15
- ### action
16
-
17
- > **action**: [`BuiltinActionType`](../enumerations/BuiltinActionType.md)
18
-
19
- ### data
20
-
21
- > **data**: `object`
22
-
23
- #### Index Signature
24
-
25
- \[`key`: `string`\]: `any`
26
-
27
- ### data.extension?
28
-
29
- > `optional` **extension**: `Record`\<`string`, `any`\>
30
-
31
- ### event\_type
32
-
33
- > **event\_type**: [`BuiltinEventType`](../enumerations/BuiltinEventType.md)
34
-
35
- ### to\_user\_ids
36
-
37
- > **to\_user\_ids**: `string`[]
38
-
39
- ## Defined in
40
-
41
- typings/live/LiveMsg.ts:96
@@ -1,19 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / EventType
6
-
7
- # Type Alias: EventType\<KeyframesSnapshot\>
8
-
9
- > **EventType**\<`KeyframesSnapshot`\>: [`LiveEventType`](LiveEventType.md)\<`KeyframesSnapshot`\>
10
-
11
- 事件解析
12
-
13
- ## Type Parameters
14
-
15
- • **KeyframesSnapshot**
16
-
17
- ## Defined in
18
-
19
- typings/live/EventType.ts:86
@@ -1,15 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / GetVoiceSign
6
-
7
- # Type Alias: GetVoiceSign
8
-
9
- > **GetVoiceSign**: *typeof* [`GetVoiceSignFn`](../functions/GetVoiceSignFn.md)
10
-
11
- 获取用户语音签名的方法类型
12
-
13
- ## Defined in
14
-
15
- typings/live/GetVoiceSign.ts:55
@@ -1,35 +0,0 @@
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
@@ -1,41 +0,0 @@
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
@@ -1,19 +0,0 @@
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
@@ -1,47 +0,0 @@
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:34
@@ -1,47 +0,0 @@
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