@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,165 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / LiveEventType
6
-
7
- # Type Alias: LiveEventType\<KeyframesSnapshot\>
8
-
9
- > **LiveEventType**\<`KeyframesSnapshot`\>: `object`
10
-
11
- 带看事件列表
12
-
13
- ## Type Parameters
14
-
15
- • **KeyframesSnapshot**
16
-
17
- ## Type declaration
18
-
19
- ### broadcast()
20
-
21
- 收到其他用户的广播消息。
22
-
23
- #### Parameters
24
-
25
- • **evtMsg**: `Record`\<`string`, `any`\>
26
-
27
- • **frontRequestId**: `string`
28
-
29
- #### Returns
30
-
31
- `void`
32
-
33
- ### builtinEvent()
34
-
35
- 内置消息事件
36
-
37
- #### Parameters
38
-
39
- • **builtinMsg**: [`BuiltinMsg`](BuiltinMsg.md)
40
-
41
- #### Returns
42
-
43
- `void`
44
-
45
- ### error()
46
-
47
- 异常消息:不符合规范。
48
-
49
- #### Parameters
50
-
51
- • **liveMsg**: [`LiveMsg`](LiveMsg.md)
52
-
53
- #### Returns
54
-
55
- `void`
56
-
57
- ### keyframes()
58
-
59
- 获取其他用户输送的帧数据:根据此帧数据更新UI状态。
60
-
61
- #### Parameters
62
-
63
- • **keyframes**: `Partial`\<`KeyframesSnapshot`\>
64
-
65
- • **frontRequestId**: `string`
66
-
67
- #### Returns
68
-
69
- `void`
70
-
71
- ### kickOut()
72
-
73
- 被踢出房间
74
-
75
- #### Returns
76
-
77
- `void`
78
-
79
- ### ~~readyKeyframeSync()~~
80
-
81
- 带看已经就绪,可以发送帧数据。
82
-
83
- #### Parameters
84
-
85
- • **lastKeyframe**: `Partial`\<`KeyframesSnapshot`\>
86
-
87
- 带看最后一帧数据(链接切换、断网等重连恢复上次会话帧状态),你可以通过此数据拉齐当前UI状态。
88
-
89
- #### Returns
90
-
91
- `void`
92
-
93
- #### Deprecated
94
-
95
- 此事件已废弃,请使用 `keyframes` 事件替代,最后的帧数据会通过 `keyframes` 事件发送,同时 keyframes 对象在 ready 后会自动更新。
96
-
97
- ### roomChange()
98
-
99
- 内置消息事件:房间信息改变
100
-
101
- #### Parameters
102
-
103
- • **builtinMsg**: [`BuiltinMsg`](BuiltinMsg.md)
104
-
105
- #### Returns
106
-
107
- `void`
108
-
109
- ### selfInfoUpdate()
110
-
111
- 个人信息发生更新。
112
-
113
- #### Parameters
114
-
115
- • **userInfo**: [`UserInfo`](UserInfo.md)
116
-
117
- • **frontRequestId**: `string`
118
-
119
- #### Returns
120
-
121
- `void`
122
-
123
- ### stateChange()
124
-
125
- 带看状态变化
126
-
127
- #### Parameters
128
-
129
- • **state**: [`LiveState`](../enumerations/LiveState.md)
130
-
131
- • **prevState?**: [`LiveState`](../enumerations/LiveState.md)
132
-
133
- #### Returns
134
-
135
- `void`
136
-
137
- ### userChange()
138
-
139
- 内置消息事件: 用户信息改变
140
-
141
- #### Parameters
142
-
143
- • **builtinMsg**: [`BuiltinMsg`](BuiltinMsg.md)
144
-
145
- #### Returns
146
-
147
- `void`
148
-
149
- ### userListUpdate()
150
-
151
- 用户列表更新。
152
-
153
- #### Parameters
154
-
155
- • **userList**: [`UserInfo`](UserInfo.md)[]
156
-
157
- • **frontRequestId**: `string`
158
-
159
- #### Returns
160
-
161
- `void`
162
-
163
- ## Defined in
164
-
165
- typings/live/EventType.ts:8
@@ -1,53 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / LiveMsg
6
-
7
- # Type Alias: LiveMsg
8
-
9
- > **LiveMsg**: `object`
10
-
11
- 响应的信息结构体。
12
-
13
- ## Type declaration
14
-
15
- ### appId
16
-
17
- > **appId**: `string`
18
-
19
- ### code
20
-
21
- > **code**: `string`
22
-
23
- ### command
24
-
25
- > **command**: [`Command`](../enumerations/Command.md)
26
-
27
- ### data
28
-
29
- > **data**: `Record`\<`string`, `any`\> \| `Record`\<`string`, `any`\>[]
30
-
31
- ### frontRequestId
32
-
33
- > **frontRequestId**: `string`
34
-
35
- ### message
36
-
37
- > **message**: `string`
38
-
39
- ### requestId
40
-
41
- > **requestId**: `string`
42
-
43
- ### roomCode
44
-
45
- > **roomCode**: `string`
46
-
47
- ### triggerUserId
48
-
49
- > **triggerUserId**: `string`
50
-
51
- ## Defined in
52
-
53
- typings/live/LiveMsg.ts:122
@@ -1,27 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / LiveProviderPropTypes
6
-
7
- # Type Alias: LiveProviderPropTypes\<KeyframesSnapshot\>
8
-
9
- > **LiveProviderPropTypes**\<`KeyframesSnapshot`\>: `object`
10
-
11
- ## Type Parameters
12
-
13
- • **KeyframesSnapshot** *extends* `Record`\<`string`, `any`\>
14
-
15
- ## Type declaration
16
-
17
- ### children?
18
-
19
- > `optional` **children**: `React.ReactNode`
20
-
21
- ### live?
22
-
23
- > `optional` **live**: [`Live`](../classes/Live.md)\<`KeyframesSnapshot`\>
24
-
25
- ## Defined in
26
-
27
- live/createLiveReact.ts:19
@@ -1,13 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / RTCActionReactCallback
6
-
7
- # Type Alias: RTCActionReactCallback
8
-
9
- > **RTCActionReactCallback**: `Pick`\<[`RTCProtocol`](../interfaces/RTCProtocol.md), `"join"` \| `"quit"` \| `"shock"` \| `"toggleMicro"` \| `"detectMicro"`\>
10
-
11
- ## Defined in
12
-
13
- typings/react/RTCActionReactCallback.ts:3
@@ -1,65 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / RTCEventType
6
-
7
- # Type Alias: RTCEventType
8
-
9
- > **RTCEventType**: `object`
10
-
11
- RTC 异步事件类型。
12
-
13
- ## Type declaration
14
-
15
- ### error()
16
-
17
- 错误\异常
18
-
19
- #### Parameters
20
-
21
- • **error**: [`RTCJoinedInfo`](../interfaces/RTCJoinedInfo.md) \| `Error`
22
-
23
- #### Returns
24
-
25
- `void`
26
-
27
- ### joined()
28
-
29
- 成功加入语音房间。
30
-
31
- #### Returns
32
-
33
- `void`
34
-
35
- ### joinWillStart()
36
-
37
- 即将加入房间。
38
-
39
- #### Returns
40
-
41
- `void`
42
-
43
- ### userVolumes()
44
-
45
- 每个用户的音量。
46
-
47
- #### Parameters
48
-
49
- • **userVolumes**: [`UserVolume`](UserVolume.md)[]
50
-
51
- #### Returns
52
-
53
- `void`
54
-
55
- ### weakNetwork()
56
-
57
- 弱网提醒事件。
58
-
59
- #### Returns
60
-
61
- `void`
62
-
63
- ## Defined in
64
-
65
- typings/rtc/eventType.ts:7
@@ -1,45 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / ReqLiveMsg
6
-
7
- # Type Alias: ReqLiveMsg
8
-
9
- > **ReqLiveMsg**: `object`
10
-
11
- 向服务端请求数据时的数据格式。
12
-
13
- ## Type declaration
14
-
15
- ### command
16
-
17
- > **command**: [`Command`](../enumerations/Command.md)
18
-
19
- 请求指令。
20
-
21
- ### data
22
-
23
- > **data**: `object`
24
-
25
- 数据内容
26
-
27
- #### Index Signature
28
-
29
- \[`key`: `string`\]: `any`
30
-
31
- ### data.to\_user\_ids?
32
-
33
- > `optional` **to\_user\_ids**: `string`[]
34
-
35
- 如果此数据仅发送给某些用户,请提供这些用户的ucid。
36
-
37
- ### front\_request\_id
38
-
39
- > **front\_request\_id**: `string` \| `number`
40
-
41
- 前端请求时生成的uuid()。
42
-
43
- ## Defined in
44
-
45
- typings/live/LiveMsg.ts:28
@@ -1,55 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / RoomInfo
6
-
7
- # Type Alias: RoomInfo
8
-
9
- > **RoomInfo**: `object`
10
-
11
- ## Type declaration
12
-
13
- ### info
14
-
15
- > **info**: `object`
16
-
17
- ### info.app\_id
18
-
19
- > **app\_id**: `string`
20
-
21
- ### info.create\_time
22
-
23
- > **create\_time**: `string`
24
-
25
- ### info.create\_user\_id
26
-
27
- > **create\_user\_id**: `string`
28
-
29
- ### info.extension
30
-
31
- > **extension**: `Record`\<`string`, `any`\>
32
-
33
- ### info.id
34
-
35
- > **id**: `string` \| `number`
36
-
37
- ### info.room\_code
38
-
39
- > **room\_code**: `string`
40
-
41
- ### info.status
42
-
43
- > **status**: `string` \| `number`
44
-
45
- ### init\_timestamp
46
-
47
- > **init\_timestamp**: `string`
48
-
49
- ### last\_frame
50
-
51
- > **last\_frame**: `Record`\<`string`, `any`\>
52
-
53
- ## Defined in
54
-
55
- typings/live/RoomInfo.ts:1
@@ -1,77 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / UserInfo
6
-
7
- # Type Alias: UserInfo
8
-
9
- > **UserInfo**: `object`
10
-
11
- 带看会话房间用户的信息格式。
12
-
13
- ## Type declaration
14
-
15
- ### current\_ws\_online?
16
-
17
- > `optional` **current\_ws\_online**: `boolean`
18
-
19
- 用户当前是否在线。
20
-
21
- ### extension?
22
-
23
- > `optional` **extension**: [`UserInfoExt`](UserInfoExt.md)
24
-
25
- 用户信息扩展字段。
26
-
27
- ### id
28
-
29
- > **id**: `string`
30
-
31
- 用户唯一标识ID。
32
-
33
- ### mem\_user\_status?
34
-
35
- > `optional` **mem\_user\_status**: [`MemUserStatus`](../enumerations/MemUserStatus.md)
36
-
37
- 内存中的用户状态。
38
-
39
- ### micro\_status
40
-
41
- > **micro\_status**: `boolean`
42
-
43
- 用户当前是否开启麦克风。
44
-
45
- ### once\_ws\_online?
46
-
47
- > `optional` **once\_ws\_online**: `boolean`
48
-
49
- 用户曾经是否在线过,即进入房间后又由于某种原因离开后重新进入。
50
-
51
- ### permission?
52
-
53
- > `optional` **permission**: `Partial`\<[`Permission`](../interfaces/Permission.md)\>
54
-
55
- 当前用户的权限配置。(UI层面理解)。
56
-
57
- ### rtc
58
-
59
- > **rtc**: `boolean`
60
-
61
- RTC 环境是否就绪,即当前语音是否联通。
62
-
63
- ### status?
64
-
65
- > `optional` **status**: [`UserStatus`](../enumerations/UserStatus.md)
66
-
67
- 用户当前的状态。
68
-
69
- ### user\_role?
70
-
71
- > `optional` **user\_role**: `number` \| `string`
72
-
73
- 用户角色定义。(前端不关注此字段)。
74
-
75
- ## Defined in
76
-
77
- typings/live/UserInfo.ts:49
@@ -1,33 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / UserInfoExt
6
-
7
- # Type Alias: UserInfoExt
8
-
9
- > **UserInfoExt**: `object`
10
-
11
- 用户信息扩展字段:比如提供用户画像相关的数据。
12
-
13
- ## Index Signature
14
-
15
- \[`key`: `string`\]: `any`
16
-
17
- ## Type declaration
18
-
19
- ### avatar?
20
-
21
- > `optional` **avatar**: `string`
22
-
23
- 用户头像。
24
-
25
- ### nickname?
26
-
27
- > `optional` **nickname**: `string`
28
-
29
- 用户昵称。
30
-
31
- ## Defined in
32
-
33
- typings/live/UserInfo.ts:31
@@ -1,25 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / UserVolume
6
-
7
- # Type Alias: UserVolume
8
-
9
- > **UserVolume**: `object`
10
-
11
- 用户的音量信息。
12
-
13
- ## Type declaration
14
-
15
- ### audioVolume
16
-
17
- > **audioVolume**: `number`
18
-
19
- ### userId
20
-
21
- > **userId**: `string`
22
-
23
- ## Defined in
24
-
25
- typings/live/UserVolume.ts:4
@@ -1,31 +0,0 @@
1
- [**如视 Live SDK**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [如视 Live SDK](../globals.md) / WebSocketError
6
-
7
- # Type Alias: WebSocketError
8
-
9
- > **WebSocketError**: `object`
10
-
11
- ## Type declaration
12
-
13
- ### closeError?
14
-
15
- > `optional` **closeError**: [`WebSocketCloseError`](../enumerations/WebSocketCloseError.md)
16
-
17
- ### error?
18
-
19
- > `optional` **error**: `any`
20
-
21
- ### target?
22
-
23
- > `optional` **target**: `Event` \| `CloseEvent`
24
-
25
- ### type
26
-
27
- > **type**: [`WebSocketErrorType`](../enumerations/WebSocketErrorType.md)
28
-
29
- ## Defined in
30
-
31
- typings/live/WebSocket.ts:31