@realsee/live 0.7.1 → 0.7.3-alpha.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.
- package/README.md +5 -3
- package/dist/index.cjs.js +3 -41
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +5 -1336
- package/dist/index.es.js +6169 -0
- package/dist/index.es.js.map +1 -0
- package/dist/live/controller.d.ts +118 -0
- package/dist/live/createLive.d.ts +8 -0
- package/dist/live/createLiveReact.d.ts +54 -0
- package/dist/live/live.d.ts +200 -0
- package/dist/rtc/BrowserRTC.d.ts +39 -0
- package/dist/rtc/BrowserRTC4Chime.d.ts +60 -0
- package/dist/rtc/CoreRTC.d.ts +23 -0
- package/dist/rtc/VRWebViewRTC.d.ts +97 -0
- package/dist/rtc/index.d.ts +5 -0
- package/dist/typings/chime/AttendeeResponse.d.ts +5 -0
- package/dist/typings/chime/MeetingResponse.d.ts +12 -0
- package/dist/typings/chime/MeetingSessionConfigurationOptions.d.ts +16 -0
- package/dist/typings/chime/index.d.ts +3 -0
- package/dist/typings/index.d.ts +4 -0
- package/dist/typings/live/EventType.d.ts +74 -0
- package/dist/typings/live/GetVoiceSign.d.ts +52 -0
- package/dist/typings/live/LiveConnectOptions.d.ts +24 -0
- package/dist/typings/live/LiveErrorType.d.ts +9 -0
- package/dist/typings/live/LiveMsg.d.ts +133 -0
- package/dist/typings/live/LiveOptions.d.ts +79 -0
- package/dist/typings/live/LiveState.d.ts +15 -0
- package/dist/typings/live/RoomInfo.d.ts +13 -0
- package/dist/typings/live/UserInfo.d.ts +103 -0
- package/dist/typings/live/UserVolume.d.ts +7 -0
- package/dist/typings/live/WebSocket.d.ts +82 -0
- package/dist/typings/live/index.d.ts +10 -0
- package/dist/typings/react/RTCActionReactCallback.d.ts +2 -0
- package/dist/typings/react/index.d.ts +1 -0
- package/dist/typings/rtc/VRWebViewRTCOptions.d.ts +6 -0
- package/dist/typings/rtc/eventType.d.ts +44 -0
- package/dist/typings/rtc/index.d.ts +5 -0
- package/dist/typings/rtc/joinedInfo.d.ts +38 -0
- package/dist/typings/rtc/protocol.d.ts +77 -0
- package/dist/typings/rtc/type.d.ts +12 -0
- package/dist/utils/RobustWebSocket.d.ts +160 -0
- package/dist/utils/appendUri.d.ts +1 -0
- package/dist/utils/clientDetector.d.ts +4 -0
- package/dist/utils/equal.d.ts +10 -0
- package/dist/utils/isServer.d.ts +5 -0
- package/dist/utils/logger.d.ts +19 -0
- package/dist/utils/subscribe.d.ts +75 -0
- package/dist/utils/uuid.d.ts +4 -0
- package/docs/README.md +5 -3
- package/docs/classes/BrowserRTC.md +2 -2
- package/docs/classes/BrowserRTC4Chime.md +1 -1
- package/docs/classes/CoreRTC.md +8 -8
- package/docs/classes/Live.md +30 -57
- package/docs/classes/VRWebViewRTC.md +1 -1
- package/docs/functions/clearLiveInstanceIfNeed.md +1 -1
- package/docs/globals.md +0 -6
- package/docs/interfaces/RTCProtocol.md +7 -7
- package/docs/type-aliases/LiveBuiltInData.md +1 -1
- package/package.json +16 -21
- package/dist/index.d.cts +0 -1336
- package/dist/index.esm.js +0 -10
- package/docs/classes/Subscribe.md +0 -211
- package/docs/namespaces/SubscribeMixinType/README.md +0 -17
- package/docs/namespaces/SubscribeMixinType/interfaces/emit.md +0 -31
- package/docs/namespaces/SubscribeMixinType/interfaces/hasListener.md +0 -25
- package/docs/namespaces/SubscribeMixinType/interfaces/off.md +0 -31
- package/docs/namespaces/SubscribeMixinType/interfaces/on.md +0 -37
- package/docs/namespaces/SubscribeMixinType/interfaces/once.md +0 -35
- package/docs/type-aliases/EventMap.md +0 -17
package/docs/classes/Live.md
CHANGED
|
@@ -6,27 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: Live\<KeyframesSnapshot\>
|
|
8
8
|
|
|
9
|
-
监听者模式
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
new Subscribe<{
|
|
15
|
-
"foo": [arg1: number, arg2: string],
|
|
16
|
-
"bar": [arg: boolean],
|
|
17
|
-
}>()
|
|
18
|
-
```
|
|
19
|
-
|
|
20
9
|
## Extends
|
|
21
10
|
|
|
22
|
-
-
|
|
11
|
+
- `Subscribe`\<[`EventType`](../type-aliases/EventType.md)\<`KeyframesSnapshot`\>\>
|
|
23
12
|
|
|
24
13
|
## Type Parameters
|
|
25
14
|
|
|
26
15
|
• **KeyframesSnapshot** *extends* `Record`\<`string`, `any`\>
|
|
27
16
|
|
|
28
|
-
预设的监听回调类型
|
|
29
|
-
|
|
30
17
|
## Constructors
|
|
31
18
|
|
|
32
19
|
### new Live()
|
|
@@ -43,40 +30,26 @@ new Subscribe<{
|
|
|
43
30
|
|
|
44
31
|
#### Overrides
|
|
45
32
|
|
|
46
|
-
|
|
33
|
+
`Subscribe<EventType<KeyframesSnapshot>>.constructor`
|
|
47
34
|
|
|
48
35
|
#### Defined in
|
|
49
36
|
|
|
50
|
-
live/live.ts:
|
|
37
|
+
live/live.ts:124
|
|
51
38
|
|
|
52
39
|
## Properties
|
|
53
40
|
|
|
54
41
|
### keyframes
|
|
55
42
|
|
|
56
|
-
> **keyframes**:
|
|
43
|
+
> **keyframes**: `Subscribe`\<[`KeyframeEventType`](../type-aliases/KeyframeEventType.md)\<`KeyframesSnapshot`\>\>
|
|
57
44
|
|
|
58
45
|
帧数据监听
|
|
59
46
|
|
|
60
47
|
#### Defined in
|
|
61
48
|
|
|
62
|
-
live/live.ts:
|
|
49
|
+
live/live.ts:112
|
|
63
50
|
|
|
64
51
|
## Accessors
|
|
65
52
|
|
|
66
|
-
### \_buildInKeyframes
|
|
67
|
-
|
|
68
|
-
> `get` **\_buildInKeyframes**(): `YMap`\<`KeyframesSnapshot`\>
|
|
69
|
-
|
|
70
|
-
#### Returns
|
|
71
|
-
|
|
72
|
-
`YMap`\<`KeyframesSnapshot`\>
|
|
73
|
-
|
|
74
|
-
#### Defined in
|
|
75
|
-
|
|
76
|
-
live/live.ts:139
|
|
77
|
-
|
|
78
|
-
***
|
|
79
|
-
|
|
80
53
|
### $RTC
|
|
81
54
|
|
|
82
55
|
> `get` **$RTC**(): [`RTCProtocol`](../interfaces/RTCProtocol.md)
|
|
@@ -89,7 +62,7 @@ live/live.ts:139
|
|
|
89
62
|
|
|
90
63
|
#### Defined in
|
|
91
64
|
|
|
92
|
-
live/live.ts:
|
|
65
|
+
live/live.ts:98
|
|
93
66
|
|
|
94
67
|
***
|
|
95
68
|
|
|
@@ -105,7 +78,7 @@ live/live.ts:97
|
|
|
105
78
|
|
|
106
79
|
#### Defined in
|
|
107
80
|
|
|
108
|
-
live/live.ts:
|
|
81
|
+
live/live.ts:105
|
|
109
82
|
|
|
110
83
|
***
|
|
111
84
|
|
|
@@ -119,7 +92,7 @@ live/live.ts:104
|
|
|
119
92
|
|
|
120
93
|
#### Defined in
|
|
121
94
|
|
|
122
|
-
live/live.ts:
|
|
95
|
+
live/live.ts:68
|
|
123
96
|
|
|
124
97
|
***
|
|
125
98
|
|
|
@@ -139,7 +112,7 @@ live/live.ts:67
|
|
|
139
112
|
|
|
140
113
|
#### Defined in
|
|
141
114
|
|
|
142
|
-
live/live.ts:
|
|
115
|
+
live/live.ts:83
|
|
143
116
|
|
|
144
117
|
***
|
|
145
118
|
|
|
@@ -155,7 +128,7 @@ live/live.ts:82
|
|
|
155
128
|
|
|
156
129
|
#### Defined in
|
|
157
130
|
|
|
158
|
-
live/live.ts:
|
|
131
|
+
live/live.ts:234
|
|
159
132
|
|
|
160
133
|
***
|
|
161
134
|
|
|
@@ -171,7 +144,7 @@ live/live.ts:238
|
|
|
171
144
|
|
|
172
145
|
#### Defined in
|
|
173
146
|
|
|
174
|
-
live/live.ts:
|
|
147
|
+
live/live.ts:220
|
|
175
148
|
|
|
176
149
|
***
|
|
177
150
|
|
|
@@ -187,7 +160,7 @@ live/live.ts:224
|
|
|
187
160
|
|
|
188
161
|
#### Defined in
|
|
189
162
|
|
|
190
|
-
live/live.ts:
|
|
163
|
+
live/live.ts:142
|
|
191
164
|
|
|
192
165
|
***
|
|
193
166
|
|
|
@@ -203,7 +176,7 @@ live/live.ts:146
|
|
|
203
176
|
|
|
204
177
|
#### Defined in
|
|
205
178
|
|
|
206
|
-
live/live.ts:
|
|
179
|
+
live/live.ts:75
|
|
207
180
|
|
|
208
181
|
***
|
|
209
182
|
|
|
@@ -223,7 +196,7 @@ live/live.ts:74
|
|
|
223
196
|
|
|
224
197
|
#### Defined in
|
|
225
198
|
|
|
226
|
-
live/live.ts:
|
|
199
|
+
live/live.ts:91
|
|
227
200
|
|
|
228
201
|
***
|
|
229
202
|
|
|
@@ -239,7 +212,7 @@ live/live.ts:90
|
|
|
239
212
|
|
|
240
213
|
#### Defined in
|
|
241
214
|
|
|
242
|
-
live/live.ts:
|
|
215
|
+
live/live.ts:227
|
|
243
216
|
|
|
244
217
|
## Methods
|
|
245
218
|
|
|
@@ -255,7 +228,7 @@ live/live.ts:231
|
|
|
255
228
|
|
|
256
229
|
#### Defined in
|
|
257
230
|
|
|
258
|
-
live/live.ts:
|
|
231
|
+
live/live.ts:602
|
|
259
232
|
|
|
260
233
|
***
|
|
261
234
|
|
|
@@ -273,7 +246,7 @@ live/live.ts:609
|
|
|
273
246
|
|
|
274
247
|
#### Defined in
|
|
275
248
|
|
|
276
|
-
live/live.ts:
|
|
249
|
+
live/live.ts:150
|
|
277
250
|
|
|
278
251
|
***
|
|
279
252
|
|
|
@@ -287,7 +260,7 @@ live/live.ts:154
|
|
|
287
260
|
|
|
288
261
|
#### Defined in
|
|
289
262
|
|
|
290
|
-
live/live.ts:
|
|
263
|
+
live/live.ts:146
|
|
291
264
|
|
|
292
265
|
***
|
|
293
266
|
|
|
@@ -337,7 +310,7 @@ live/live.ts:693
|
|
|
337
310
|
|
|
338
311
|
#### Defined in
|
|
339
312
|
|
|
340
|
-
live/live.ts:
|
|
313
|
+
live/live.ts:624
|
|
341
314
|
|
|
342
315
|
***
|
|
343
316
|
|
|
@@ -361,7 +334,7 @@ live/live.ts:631
|
|
|
361
334
|
|
|
362
335
|
#### Defined in
|
|
363
336
|
|
|
364
|
-
live/live.ts:
|
|
337
|
+
live/live.ts:552
|
|
365
338
|
|
|
366
339
|
***
|
|
367
340
|
|
|
@@ -377,7 +350,7 @@ live/live.ts:559
|
|
|
377
350
|
|
|
378
351
|
#### Defined in
|
|
379
352
|
|
|
380
|
-
live/live.ts:
|
|
353
|
+
live/live.ts:639
|
|
381
354
|
|
|
382
355
|
***
|
|
383
356
|
|
|
@@ -411,11 +384,11 @@ canceled 是否被触发取消
|
|
|
411
384
|
|
|
412
385
|
#### Inherited from
|
|
413
386
|
|
|
414
|
-
|
|
387
|
+
`Subscribe.emit`
|
|
415
388
|
|
|
416
389
|
#### Defined in
|
|
417
390
|
|
|
418
|
-
utils/subscribe.ts:
|
|
391
|
+
utils/subscribe.ts:115
|
|
419
392
|
|
|
420
393
|
***
|
|
421
394
|
|
|
@@ -431,7 +404,7 @@ utils/subscribe.ts:113
|
|
|
431
404
|
|
|
432
405
|
#### Defined in
|
|
433
406
|
|
|
434
|
-
live/live.ts:
|
|
407
|
+
live/live.ts:618
|
|
435
408
|
|
|
436
409
|
***
|
|
437
410
|
|
|
@@ -501,7 +474,7 @@ live/live.ts:777
|
|
|
501
474
|
|
|
502
475
|
#### Defined in
|
|
503
476
|
|
|
504
|
-
live/live.ts:
|
|
477
|
+
live/live.ts:189
|
|
505
478
|
|
|
506
479
|
***
|
|
507
480
|
|
|
@@ -547,7 +520,7 @@ live/live.ts:821
|
|
|
547
520
|
|
|
548
521
|
#### Inherited from
|
|
549
522
|
|
|
550
|
-
|
|
523
|
+
`Subscribe.hasListener`
|
|
551
524
|
|
|
552
525
|
#### Defined in
|
|
553
526
|
|
|
@@ -606,7 +579,7 @@ live/live.ts:799
|
|
|
606
579
|
|
|
607
580
|
#### Inherited from
|
|
608
581
|
|
|
609
|
-
|
|
582
|
+
`Subscribe.off`
|
|
610
583
|
|
|
611
584
|
#### Defined in
|
|
612
585
|
|
|
@@ -652,7 +625,7 @@ utils/subscribe.ts:87
|
|
|
652
625
|
|
|
653
626
|
#### Inherited from
|
|
654
627
|
|
|
655
|
-
|
|
628
|
+
`Subscribe.on`
|
|
656
629
|
|
|
657
630
|
#### Defined in
|
|
658
631
|
|
|
@@ -694,7 +667,7 @@ utils/subscribe.ts:55
|
|
|
694
667
|
|
|
695
668
|
#### Inherited from
|
|
696
669
|
|
|
697
|
-
|
|
670
|
+
`Subscribe.once`
|
|
698
671
|
|
|
699
672
|
#### Defined in
|
|
700
673
|
|
|
@@ -730,7 +703,7 @@ utils/subscribe.ts:74
|
|
|
730
703
|
|
|
731
704
|
#### Defined in
|
|
732
705
|
|
|
733
|
-
live/live.ts:
|
|
706
|
+
live/live.ts:198
|
|
734
707
|
|
|
735
708
|
***
|
|
736
709
|
|
package/docs/globals.md
CHANGED
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
# 如视 Live SDK
|
|
6
6
|
|
|
7
|
-
## Namespaces
|
|
8
|
-
|
|
9
|
-
- [SubscribeMixinType](namespaces/SubscribeMixinType/README.md)
|
|
10
|
-
|
|
11
7
|
## Enumerations
|
|
12
8
|
|
|
13
9
|
- [BuiltinActionType](enumerations/BuiltinActionType.md)
|
|
@@ -30,7 +26,6 @@
|
|
|
30
26
|
- [BrowserRTC4Chime](classes/BrowserRTC4Chime.md)
|
|
31
27
|
- [CoreRTC](classes/CoreRTC.md)
|
|
32
28
|
- [Live](classes/Live.md)
|
|
33
|
-
- [Subscribe](classes/Subscribe.md)
|
|
34
29
|
- [VRWebViewRTC](classes/VRWebViewRTC.md)
|
|
35
30
|
|
|
36
31
|
## Interfaces
|
|
@@ -47,7 +42,6 @@
|
|
|
47
42
|
## Type Aliases
|
|
48
43
|
|
|
49
44
|
- [BuiltinMsg](type-aliases/BuiltinMsg.md)
|
|
50
|
-
- [EventMap](type-aliases/EventMap.md)
|
|
51
45
|
- [EventType](type-aliases/EventType.md)
|
|
52
46
|
- [GetVoiceSign](type-aliases/GetVoiceSign.md)
|
|
53
47
|
- [GetVoiceSignParams](type-aliases/GetVoiceSignParams.md)
|
|
@@ -10,7 +10,7 @@ rtc 协议接口
|
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- `Subscribe`\<[`RTCEventType`](../type-aliases/RTCEventType.md)\>
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
@@ -128,11 +128,11 @@ canceled 是否被触发取消
|
|
|
128
128
|
|
|
129
129
|
#### Inherited from
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
`Subscribe.emit`
|
|
132
132
|
|
|
133
133
|
#### Defined in
|
|
134
134
|
|
|
135
|
-
utils/subscribe.ts:
|
|
135
|
+
utils/subscribe.ts:115
|
|
136
136
|
|
|
137
137
|
***
|
|
138
138
|
|
|
@@ -154,7 +154,7 @@ utils/subscribe.ts:113
|
|
|
154
154
|
|
|
155
155
|
#### Inherited from
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
`Subscribe.hasListener`
|
|
158
158
|
|
|
159
159
|
#### Defined in
|
|
160
160
|
|
|
@@ -233,7 +233,7 @@ typings/rtc/protocol.ts:51
|
|
|
233
233
|
|
|
234
234
|
#### Inherited from
|
|
235
235
|
|
|
236
|
-
|
|
236
|
+
`Subscribe.off`
|
|
237
237
|
|
|
238
238
|
#### Defined in
|
|
239
239
|
|
|
@@ -279,7 +279,7 @@ utils/subscribe.ts:87
|
|
|
279
279
|
|
|
280
280
|
#### Inherited from
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
`Subscribe.on`
|
|
283
283
|
|
|
284
284
|
#### Defined in
|
|
285
285
|
|
|
@@ -321,7 +321,7 @@ utils/subscribe.ts:55
|
|
|
321
321
|
|
|
322
322
|
#### Inherited from
|
|
323
323
|
|
|
324
|
-
|
|
324
|
+
`Subscribe.once`
|
|
325
325
|
|
|
326
326
|
#### Defined in
|
|
327
327
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/live",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3-alpha.0",
|
|
4
4
|
"description": "如视 Live SDK:基于如视 WebSocket 长链双工通信能力的前端封装,借助此 SDK 您可以快捷地实现具备同屏连线、实时语音的 VR 带看业务能力。",
|
|
5
5
|
"author": "BEIKE REALSEE TECHNOLOGY (HK) LIMITED",
|
|
6
6
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
@@ -8,30 +8,21 @@
|
|
|
8
8
|
"access": "public",
|
|
9
9
|
"registry": "https://registry.npmjs.org/"
|
|
10
10
|
},
|
|
11
|
-
"type": "module",
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
13
|
-
"main": "./dist/index.cjs.js",
|
|
14
|
-
"import": "./dist/index.esm.js",
|
|
15
|
-
"sideEffects": false,
|
|
16
|
-
"files": [
|
|
17
|
-
"dist",
|
|
18
|
-
"docs",
|
|
19
|
-
"TERMS.txt"
|
|
20
|
-
],
|
|
21
|
-
"exports": {
|
|
22
|
-
".": {
|
|
23
|
-
"types": "./dist/index.d.ts",
|
|
24
|
-
"import": "./dist/index.esm.js",
|
|
25
|
-
"default": "./dist/index.cjs.js"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
11
|
"scripts": {
|
|
29
|
-
"dev": "
|
|
30
|
-
"build": "
|
|
12
|
+
"dev": "tsc && vite build --mode development --watch",
|
|
13
|
+
"build": "tsc && vite build",
|
|
31
14
|
"docs": "npx typedoc",
|
|
32
15
|
"prepublishOnly": "npm run build && npm run docs",
|
|
33
16
|
"prepack": "npm run build && npm run docs"
|
|
34
17
|
},
|
|
18
|
+
"main": "dist/index.cjs.js",
|
|
19
|
+
"module": "dist/index.es.js",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
21
|
+
"files": [
|
|
22
|
+
"docs",
|
|
23
|
+
"dist",
|
|
24
|
+
"TERMS.txt"
|
|
25
|
+
],
|
|
35
26
|
"devDependencies": {
|
|
36
27
|
"@realsee/jsbridge-x": "0.2.11",
|
|
37
28
|
"@types/react": "^18",
|
|
@@ -43,7 +34,8 @@
|
|
|
43
34
|
"typedoc": "0.26.9",
|
|
44
35
|
"typedoc-plugin-markdown": "4.2.9",
|
|
45
36
|
"typescript": "5.6.3",
|
|
46
|
-
"
|
|
37
|
+
"vite": "5.4.10",
|
|
38
|
+
"vite-plugin-dts": "4.3.0"
|
|
47
39
|
},
|
|
48
40
|
"peerDependencies": {
|
|
49
41
|
"@realsee/jsbridge-x": ">=0.2.6",
|
|
@@ -52,5 +44,8 @@
|
|
|
52
44
|
"amazon-chime-sdk-js": ">=3.0.0",
|
|
53
45
|
"react": "^18",
|
|
54
46
|
"trtc-js-sdk": ">=4.15.3"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"yjs": "13.6.20"
|
|
55
50
|
}
|
|
56
51
|
}
|