@realsee/live 0.7.2 → 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 (121) hide show
  1. package/README.md +5 -3
  2. package/dist/index.cjs.js +3 -3
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.es.js +1774 -1770
  5. package/dist/index.es.js.map +1 -1
  6. package/docs/.nojekyll +1 -0
  7. package/docs/assets/highlight.css +99 -0
  8. package/docs/assets/icons.js +18 -0
  9. package/docs/assets/icons.svg +1 -0
  10. package/docs/assets/main.js +60 -0
  11. package/docs/assets/navigation.js +1 -0
  12. package/docs/assets/search.js +1 -0
  13. package/docs/assets/style.css +1493 -0
  14. package/docs/classes/BrowserRTC.html +60 -0
  15. package/docs/classes/BrowserRTC4Chime.html +72 -0
  16. package/docs/classes/CoreRTC.html +60 -0
  17. package/docs/classes/Live.html +93 -0
  18. package/docs/classes/VRWebViewRTC.html +53 -0
  19. package/docs/enums/BuiltInRTCType.html +3 -0
  20. package/docs/enums/BuiltinActionType.html +14 -0
  21. package/docs/enums/BuiltinEventType.html +6 -0
  22. package/docs/enums/Command.html +22 -0
  23. package/docs/enums/LiveState.html +8 -0
  24. package/docs/enums/MemUserStatus.html +7 -0
  25. package/docs/enums/MicroStatus.html +6 -0
  26. package/docs/enums/RTCJoinedInfoCodeEnum.html +12 -0
  27. package/docs/enums/RTCType.html +5 -0
  28. package/docs/enums/UserStatus.html +8 -0
  29. package/docs/enums/WebSocketCloseError.html +20 -0
  30. package/docs/enums/WebSocketErrorType.html +8 -0
  31. package/docs/enums/WebSocketState.html +12 -0
  32. package/docs/functions/GetVoiceSignFn.html +4 -0
  33. package/docs/functions/_clearLiveInstanceIfNeed.html +1 -0
  34. package/docs/functions/createLive.html +2 -0
  35. package/docs/functions/createLiveReact.html +17 -0
  36. package/docs/functions/parseLiveMsg.html +4 -0
  37. package/docs/functions/parseWSClsErr.html +1 -0
  38. package/docs/hierarchy.html +1 -0
  39. package/docs/index.html +349 -0
  40. package/docs/interfaces/AttendeeResponse.html +4 -0
  41. package/docs/interfaces/LiveOptions.html +40 -0
  42. package/docs/interfaces/MeetingResponse.html +3 -0
  43. package/docs/interfaces/MeetingSessionConfigurationOptions.html +8 -0
  44. package/docs/interfaces/Permission.html +15 -0
  45. package/docs/interfaces/RTCJoinedInfo.html +7 -0
  46. package/docs/interfaces/RTCProtocol.html +65 -0
  47. package/docs/interfaces/VRWebViewRTCOptions.html +6 -0
  48. package/docs/modules.html +52 -0
  49. package/docs/types/BuiltinMsg.html +2 -0
  50. package/docs/types/EventType.html +2 -0
  51. package/docs/types/GetVoiceSign.html +2 -0
  52. package/docs/types/GetVoiceSignParams.html +5 -0
  53. package/docs/types/GetVoiceSignReturnType.html +6 -0
  54. package/docs/types/KeyframeEventType.html +2 -0
  55. package/docs/types/LiveBuiltInData.html +1 -0
  56. package/docs/types/LiveConnectOptions.html +8 -0
  57. package/docs/types/LiveEventType.html +15 -0
  58. package/docs/types/LiveMsg.html +2 -0
  59. package/docs/types/LiveProviderPropTypes.html +1 -0
  60. package/docs/types/RTCActionReactCallback.html +1 -0
  61. package/docs/types/RTCEventType.html +7 -0
  62. package/docs/types/ReqLiveMsg.html +6 -0
  63. package/docs/types/RoomInfo.html +1 -0
  64. package/docs/types/UserInfo.html +12 -0
  65. package/docs/types/UserInfoExt.html +5 -0
  66. package/docs/types/UserVolume.html +2 -0
  67. package/docs/types/WebSocketError.html +1 -0
  68. package/package.json +1 -2
  69. package/docs/README.md +0 -435
  70. package/docs/classes/BrowserRTC.md +0 -436
  71. package/docs/classes/BrowserRTC4Chime.md +0 -558
  72. package/docs/classes/CoreRTC.md +0 -448
  73. package/docs/classes/Live.md +0 -770
  74. package/docs/classes/VRWebViewRTC.md +0 -436
  75. package/docs/enumerations/BuiltInRTCType.md +0 -27
  76. package/docs/enumerations/BuiltinActionType.md +0 -81
  77. package/docs/enumerations/BuiltinEventType.md +0 -33
  78. package/docs/enumerations/Command.md +0 -107
  79. package/docs/enumerations/LiveState.md +0 -53
  80. package/docs/enumerations/MemUserStatus.md +0 -67
  81. package/docs/enumerations/MicroStatus.md +0 -33
  82. package/docs/enumerations/RTCJoinedInfoCodeEnum.md +0 -69
  83. package/docs/enumerations/RTCType.md +0 -39
  84. package/docs/enumerations/UserStatus.md +0 -45
  85. package/docs/enumerations/WebSocketCloseError.md +0 -117
  86. package/docs/enumerations/WebSocketErrorType.md +0 -77
  87. package/docs/enumerations/WebSocketState.md +0 -69
  88. package/docs/functions/GetVoiceSignFn.md +0 -27
  89. package/docs/functions/clearLiveInstanceIfNeed.md +0 -17
  90. package/docs/functions/createLive.md +0 -27
  91. package/docs/functions/createLiveReact.md +0 -449
  92. package/docs/functions/parseLiveMsg.md +0 -27
  93. package/docs/functions/parseWSClsErr.md +0 -21
  94. package/docs/globals.md +0 -71
  95. package/docs/interfaces/AttendeeResponse.md +0 -37
  96. package/docs/interfaces/LiveOptions.md +0 -246
  97. package/docs/interfaces/MeetingResponse.md +0 -55
  98. package/docs/interfaces/MeetingSessionConfigurationOptions.md +0 -93
  99. package/docs/interfaces/Permission.md +0 -147
  100. package/docs/interfaces/RTCJoinedInfo.md +0 -67
  101. package/docs/interfaces/RTCProtocol.md +0 -404
  102. package/docs/interfaces/VRWebViewRTCOptions.md +0 -41
  103. package/docs/type-aliases/BuiltinMsg.md +0 -41
  104. package/docs/type-aliases/EventType.md +0 -19
  105. package/docs/type-aliases/GetVoiceSign.md +0 -15
  106. package/docs/type-aliases/GetVoiceSignParams.md +0 -35
  107. package/docs/type-aliases/GetVoiceSignReturnType.md +0 -41
  108. package/docs/type-aliases/KeyframeEventType.md +0 -19
  109. package/docs/type-aliases/LiveBuiltInData.md +0 -47
  110. package/docs/type-aliases/LiveConnectOptions.md +0 -47
  111. package/docs/type-aliases/LiveEventType.md +0 -165
  112. package/docs/type-aliases/LiveMsg.md +0 -53
  113. package/docs/type-aliases/LiveProviderPropTypes.md +0 -27
  114. package/docs/type-aliases/RTCActionReactCallback.md +0 -13
  115. package/docs/type-aliases/RTCEventType.md +0 -65
  116. package/docs/type-aliases/ReqLiveMsg.md +0 -45
  117. package/docs/type-aliases/RoomInfo.md +0 -55
  118. package/docs/type-aliases/UserInfo.md +0 -77
  119. package/docs/type-aliases/UserInfoExt.md +0 -33
  120. package/docs/type-aliases/UserVolume.md +0 -25
  121. package/docs/type-aliases/WebSocketError.md +0 -31
@@ -1,246 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / LiveOptions
6
-
7
- # Interface: LiveOptions
8
-
9
- 依赖配置。
10
-
11
- ## Properties
12
-
13
- ### \_\_debug\_\_?
14
-
15
- > `optional` **\_\_debug\_\_**: `boolean`
16
-
17
- 是否开启调试模式:此模式下会在终端打印日志方便调试。
18
-
19
- #### Defined in
20
-
21
- typings/live/LiveOptions.ts:86
22
-
23
- ***
24
-
25
- ### autoPlayConfirm()?
26
-
27
- > `optional` **autoPlayConfirm**: (`options`) => `void`
28
-
29
- 使用webRTC时会有自动播放的安全策略限制,用户有交互
30
-
31
- #### Parameters
32
-
33
- • **options**
34
-
35
- • **options.onConfirm**
36
-
37
- #### Returns
38
-
39
- `void`
40
-
41
- #### Defined in
42
-
43
- typings/live/LiveOptions.ts:54
44
-
45
- ***
46
-
47
- ### builtInRTCType?
48
-
49
- > `optional` **builtInRTCType**: [`BuiltInRTCType`](../enumerations/BuiltInRTCType.md)
50
-
51
- 内置的rtc通道类型
52
- trtc or chime , default trtc
53
-
54
- #### Defined in
55
-
56
- typings/live/LiveOptions.ts:65
57
-
58
- ***
59
-
60
- ### canForbidUserKick()?
61
-
62
- > `optional` **canForbidUserKick**: (`users`) => `boolean`
63
-
64
- 能否强制"踢掉"某个/些用户。
65
-
66
- #### Parameters
67
-
68
- • **users**: `string` \| `string`[]
69
-
70
- #### Returns
71
-
72
- `boolean`
73
-
74
- #### Defined in
75
-
76
- typings/live/LiveOptions.ts:82
77
-
78
- ***
79
-
80
- ### canForbidUserMicro()?
81
-
82
- > `optional` **canForbidUserMicro**: (`users`) => `boolean`
83
-
84
- 能否禁用某个/些用户的麦克风
85
-
86
- #### Parameters
87
-
88
- • **users**: `string` \| `string`[]
89
-
90
- #### Returns
91
-
92
- `boolean`
93
-
94
- #### Defined in
95
-
96
- typings/live/LiveOptions.ts:74
97
-
98
- ***
99
-
100
- ### canForbidUserSync()?
101
-
102
- > `optional` **canForbidUserSync**: (`users`) => `boolean`
103
-
104
- 能否限制某个/些用户的帧数据同步
105
-
106
- #### Parameters
107
-
108
- • **users**: `string` \| `string`[]
109
-
110
- #### Returns
111
-
112
- `boolean`
113
-
114
- #### Defined in
115
-
116
- typings/live/LiveOptions.ts:78
117
-
118
- ***
119
-
120
- ### getTicket()?
121
-
122
- > `optional` **getTicket**: () => `Promise`\<`string`\>
123
-
124
- 获取建立 WebSocket 连接的依赖Tick
125
-
126
- #### Returns
127
-
128
- `Promise`\<`string`\>
129
-
130
- #### Defined in
131
-
132
- typings/live/LiveOptions.ts:35
133
-
134
- ***
135
-
136
- ### getVoiceSign()?
137
-
138
- > `optional` **getVoiceSign**: (`params`) => `Promise`\<[`GetVoiceSignReturnType`](../type-aliases/GetVoiceSignReturnType.md)\>
139
-
140
- 获取语音签名的接口
141
- 使用内置rtc时提供给rtc实例使用
142
-
143
- 获取用户语音签名的方法
144
-
145
- #### Parameters
146
-
147
- • **params**: [`GetVoiceSignParams`](../type-aliases/GetVoiceSignParams.md)
148
-
149
- 获取语音签名所需的参数
150
-
151
- #### Returns
152
-
153
- `Promise`\<[`GetVoiceSignReturnType`](../type-aliases/GetVoiceSignReturnType.md)\>
154
-
155
- 返回一个Promise,解析为语音签名的相关信息
156
-
157
- #### Defined in
158
-
159
- typings/live/LiveOptions.ts:47
160
-
161
- ***
162
-
163
- ### initialMicroStatus?
164
-
165
- > `optional` **initialMicroStatus**: [`MicroStatus`](../enumerations/MicroStatus.md)
166
-
167
- 麦克风初始状态
168
-
169
- #### Defined in
170
-
171
- typings/live/LiveOptions.ts:30
172
-
173
- ***
174
-
175
- ### jsBridge?
176
-
177
- > `optional` **jsBridge**: `JSBridgeProtocol`
178
-
179
- jsBridge实例
180
- 使用内置rtc时提供给rtc实例使用
181
-
182
- #### Defined in
183
-
184
- typings/live/LiveOptions.ts:41
185
-
186
- ***
187
-
188
- ### rtc?
189
-
190
- > `optional` **rtc**: [`RTCProtocol`](RTCProtocol.md)
191
-
192
- RTC实例。
193
- 优先使用该实例。
194
-
195
- #### Defined in
196
-
197
- typings/live/LiveOptions.ts:19
198
-
199
- ***
200
-
201
- ### rtcType?
202
-
203
- > `optional` **rtcType**: [`RTCType`](../enumerations/RTCType.md)
204
-
205
- RTC类型
206
- rtc 为空时使用内置的rtc实例类型
207
-
208
- #### Defined in
209
-
210
- typings/live/LiveOptions.ts:25
211
-
212
- ***
213
-
214
- ### url?
215
-
216
- > `optional` **url**: `string`
217
-
218
- 创建`WebSocket`所依赖的URL。
219
-
220
- #### Defined in
221
-
222
- typings/live/LiveOptions.ts:14
223
-
224
- ***
225
-
226
- ### useBuiltInJsBridge?
227
-
228
- > `optional` **useBuiltInJsBridge**: `boolean`
229
-
230
- 使用内置的jsBridge实例
231
-
232
- #### Defined in
233
-
234
- typings/live/LiveOptions.ts:70
235
-
236
- ***
237
-
238
- ### useBuiltInRTC?
239
-
240
- > `optional` **useBuiltInRTC**: `boolean`
241
-
242
- 使用内置的rtc实例
243
-
244
- #### Defined in
245
-
246
- typings/live/LiveOptions.ts:59
@@ -1,55 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / MeetingResponse
6
-
7
- # Interface: MeetingResponse
8
-
9
- ## Properties
10
-
11
- ### MediaPlacement
12
-
13
- > **MediaPlacement**: `object`
14
-
15
- #### AudioFallbackUrl
16
-
17
- > **AudioFallbackUrl**: `string`
18
-
19
- #### AudioHostUrl
20
-
21
- > **AudioHostUrl**: `string`
22
-
23
- #### ScreenDataUrl
24
-
25
- > **ScreenDataUrl**: `string`
26
-
27
- #### ScreenSharingUrl
28
-
29
- > **ScreenSharingUrl**: `string`
30
-
31
- #### ScreenViewingUrl
32
-
33
- > **ScreenViewingUrl**: `string`
34
-
35
- #### SignalingUrl
36
-
37
- > **SignalingUrl**: `string`
38
-
39
- #### TurnControlUrl
40
-
41
- > **TurnControlUrl**: `string`
42
-
43
- #### Defined in
44
-
45
- typings/chime/MeetingResponse.ts:2
46
-
47
- ***
48
-
49
- ### MeetingId
50
-
51
- > **MeetingId**: `string`
52
-
53
- #### Defined in
54
-
55
- typings/chime/MeetingResponse.ts:11
@@ -1,93 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / MeetingSessionConfigurationOptions
6
-
7
- # Interface: MeetingSessionConfigurationOptions
8
-
9
- ## Properties
10
-
11
- ### attendence
12
-
13
- > **attendence**: [`AttendeeResponse`](AttendeeResponse.md)
14
-
15
- #### Defined in
16
-
17
- typings/chime/MeetingSessionConfigurationOptions.ts:5
18
-
19
- ***
20
-
21
- ### config
22
-
23
- > **config**: `object`
24
-
25
- #### app\_id
26
-
27
- > **app\_id**: `string`
28
-
29
- #### bypass
30
-
31
- > **bypass**: `any`
32
-
33
- #### passport
34
-
35
- > **passport**: `string`
36
-
37
- #### vendor
38
-
39
- > **vendor**: `string`
40
-
41
- #### Defined in
42
-
43
- typings/chime/MeetingSessionConfigurationOptions.ts:6
44
-
45
- ***
46
-
47
- ### expire\_time
48
-
49
- > **expire\_time**: `number`
50
-
51
- #### Defined in
52
-
53
- typings/chime/MeetingSessionConfigurationOptions.ts:7
54
-
55
- ***
56
-
57
- ### identifier
58
-
59
- > **identifier**: `string`
60
-
61
- #### Defined in
62
-
63
- typings/chime/MeetingSessionConfigurationOptions.ts:8
64
-
65
- ***
66
-
67
- ### user\_id
68
-
69
- > **user\_id**: `string`
70
-
71
- #### Defined in
72
-
73
- typings/chime/MeetingSessionConfigurationOptions.ts:9
74
-
75
- ***
76
-
77
- ### user\_sig
78
-
79
- > **user\_sig**: `string`
80
-
81
- #### Defined in
82
-
83
- typings/chime/MeetingSessionConfigurationOptions.ts:10
84
-
85
- ***
86
-
87
- ### vendor\_wrapper
88
-
89
- > **vendor\_wrapper**: [`MeetingResponse`](MeetingResponse.md)
90
-
91
- #### Defined in
92
-
93
- typings/chime/MeetingSessionConfigurationOptions.ts:11
@@ -1,147 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / Permission
6
-
7
- # Interface: Permission
8
-
9
- ## Properties
10
-
11
- ### apply\_other\_phone
12
-
13
- > **apply\_other\_phone**: `boolean`
14
-
15
- #### Defined in
16
-
17
- typings/live/UserInfo.ts:108
18
-
19
- ***
20
-
21
- ### change\_other\_status
22
-
23
- > **change\_other\_status**: `boolean`
24
-
25
- #### Defined in
26
-
27
- typings/live/UserInfo.ts:116
28
-
29
- ***
30
-
31
- ### close\_live\_room
32
-
33
- > **close\_live\_room**: `boolean`
34
-
35
- #### Defined in
36
-
37
- typings/live/UserInfo.ts:106
38
-
39
- ***
40
-
41
- ### control\_other\_micro
42
-
43
- > **control\_other\_micro**: `boolean`
44
-
45
- #### Defined in
46
-
47
- typings/live/UserInfo.ts:100
48
-
49
- ***
50
-
51
- ### control\_other\_sync
52
-
53
- > **control\_other\_sync**: `boolean`
54
-
55
- #### Defined in
56
-
57
- typings/live/UserInfo.ts:118
58
-
59
- ***
60
-
61
- ### control\_own\_micro
62
-
63
- > **control\_own\_micro**: `boolean`
64
-
65
- #### Defined in
66
-
67
- typings/live/UserInfo.ts:98
68
-
69
- ***
70
-
71
- ### dynamic\_enter
72
-
73
- > **dynamic\_enter**: `boolean`
74
-
75
- #### Defined in
76
-
77
- typings/live/UserInfo.ts:110
78
-
79
- ***
80
-
81
- ### extension
82
-
83
- > **extension**: `Record`\<`string`, `boolean`\>
84
-
85
- #### Defined in
86
-
87
- typings/live/UserInfo.ts:120
88
-
89
- ***
90
-
91
- ### invite\_other
92
-
93
- > **invite\_other**: `boolean`
94
-
95
- #### Defined in
96
-
97
- typings/live/UserInfo.ts:96
98
-
99
- ***
100
-
101
- ### more\_vr\_scene
102
-
103
- > **more\_vr\_scene**: `boolean`
104
-
105
- #### Defined in
106
-
107
- typings/live/UserInfo.ts:94
108
-
109
- ***
110
-
111
- ### sync\_frame
112
-
113
- > **sync\_frame**: `boolean`
114
-
115
- #### Defined in
116
-
117
- typings/live/UserInfo.ts:112
118
-
119
- ***
120
-
121
- ### transfer\_role
122
-
123
- > **transfer\_role**: `boolean`
124
-
125
- #### Defined in
126
-
127
- typings/live/UserInfo.ts:114
128
-
129
- ***
130
-
131
- ### view\_other\_micro\_status
132
-
133
- > **view\_other\_micro\_status**: `boolean`
134
-
135
- #### Defined in
136
-
137
- typings/live/UserInfo.ts:104
138
-
139
- ***
140
-
141
- ### view\_own\_micro\_status
142
-
143
- > **view\_own\_micro\_status**: `boolean`
144
-
145
- #### Defined in
146
-
147
- typings/live/UserInfo.ts:102
@@ -1,67 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / RTCJoinedInfo
6
-
7
- # Interface: RTCJoinedInfo
8
-
9
- 进入rtc房间的回调信息
10
-
11
- ## Properties
12
-
13
- ### code
14
-
15
- > **code**: [`RTCJoinedInfoCodeEnum`](../enumerations/RTCJoinedInfoCodeEnum.md)
16
-
17
- #### Defined in
18
-
19
- typings/rtc/joinedInfo.ts:32
20
-
21
- ***
22
-
23
- ### errInfo?
24
-
25
- > `optional` **errInfo**: `object`
26
-
27
- #### errCode
28
-
29
- > **errCode**: `number`
30
-
31
- #### errMsg
32
-
33
- > **errMsg**: `string`
34
-
35
- #### Defined in
36
-
37
- typings/rtc/joinedInfo.ts:36
38
-
39
- ***
40
-
41
- ### message
42
-
43
- > **message**: `string`
44
-
45
- #### Defined in
46
-
47
- typings/rtc/joinedInfo.ts:33
48
-
49
- ***
50
-
51
- ### roomId?
52
-
53
- > `optional` **roomId**: `number`
54
-
55
- #### Defined in
56
-
57
- typings/rtc/joinedInfo.ts:35
58
-
59
- ***
60
-
61
- ### userId?
62
-
63
- > `optional` **userId**: `string`
64
-
65
- #### Defined in
66
-
67
- typings/rtc/joinedInfo.ts:34