@tencent-rtc/mcp 1.0.9 → 1.1.8

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 (369) hide show
  1. package/README.md +5 -1
  2. package/index.js +2 -0
  3. package/index.js.map +1 -1
  4. package/libs/TLSSigAPIv2.d.ts +134 -0
  5. package/libs/TLSSigAPIv2.js +243 -0
  6. package/package.json +1 -1
  7. package/resource/doc/chatuikit/react/chat_window_integration.md +95 -0
  8. package/resource/doc/chatuikit/react/integration.md +30 -18
  9. package/resource/doc/chatuikit/vue/chat_window_integration.md +155 -0
  10. package/resource/doc/chatuikit/vue/components/chat.md +8 -0
  11. package/resource/doc/chatuikit/vue/components/chatheader.md +1 -1
  12. package/resource/doc/chatuikit/vue/components/conversation-list.md +5 -0
  13. package/resource/doc/chatuikit/vue/components/message-input.md +4 -1
  14. package/resource/doc/chatuikit/vue/init.md +40 -0
  15. package/resource/doc/chatuikit/vue/integration.md +34 -74
  16. package/resource/doc/livekit/vue/components/barrage.md +616 -0
  17. package/resource/doc/livekit/vue/components/broadcast.md +595 -0
  18. package/resource/doc/livekit/vue/components/co-guest-panel.md +130 -0
  19. package/resource/doc/livekit/vue/components/live-audience-list.md +282 -0
  20. package/resource/doc/livekit/vue/components/live-list.md +200 -0
  21. package/resource/doc/livekit/vue/components/live-player.md +269 -0
  22. package/resource/doc/livekit/vue/components/live-scene-panel.md +175 -0
  23. package/resource/doc/livekit/vue/components/live-view.md +398 -0
  24. package/resource/doc/livekit/vue/components/stream-mixer.md +446 -0
  25. package/resource/doc/livekit/vue/states/live-state.md +3591 -0
  26. package/resource/doc/roomkit/vue/states/device-state.md +369 -0
  27. package/resource/doc/roomkit/vue/states/login-state.md +59 -0
  28. package/resource/doc/roomkit/vue/states/room-list-state.md +355 -0
  29. package/resource/doc/roomkit/vue/states/room-participant-state.md +388 -0
  30. package/resource/doc/tuicallkit/react/api.md +1383 -0
  31. package/resource/doc/tuicallkit/react/integration.md +101 -0
  32. package/resource/doc/tuicallkit/vue/api.md +1385 -0
  33. package/resource/doc/tuicallkit/vue/integration.md +98 -0
  34. package/server-config.js +35 -0
  35. package/server-config.js.map +1 -0
  36. package/tools/call/get-web-call-api.js +31 -0
  37. package/tools/call/get-web-call-api.js.map +1 -0
  38. package/tools/call/get-web-call-integration.js +8 -10
  39. package/tools/call/get-web-call-integration.js.map +1 -1
  40. package/tools/chat/get-chat-faq.js +3 -3
  41. package/tools/chat/get-chat-faq.js.map +1 -1
  42. package/tools/chat/get-native-chat-integration.js +4 -4
  43. package/tools/chat/get-web-chat-component-detail.js +4 -3
  44. package/tools/chat/get-web-chat-component-detail.js.map +1 -1
  45. package/tools/chat/get-web-chat-integration.js +9 -9
  46. package/tools/chat/get-web-chat-integration.js.map +1 -1
  47. package/tools/chat/{get-web-chat-uikit-login.js → get-web-chat-uikit-init.js} +7 -7
  48. package/tools/chat/get-web-chat-uikit-init.js.map +1 -0
  49. package/tools/chat/get-web-chat-window-integration.js +37 -0
  50. package/tools/chat/get-web-chat-window-integration.js.map +1 -0
  51. package/tools/common/get-official-experience-account.js +52 -0
  52. package/tools/common/get-official-experience-account.js.map +1 -0
  53. package/tools/common/get-usersig.js +31 -26
  54. package/tools/common/get-usersig.js.map +1 -1
  55. package/tools/common/present-framework-choice.js +1 -1
  56. package/tools/common/record-prompt.js +5 -5
  57. package/tools/common/record-result.js +8 -7
  58. package/tools/common/record-result.js.map +1 -1
  59. package/tools/index.js +28 -9
  60. package/tools/index.js.map +1 -1
  61. package/tools/live/get-web-live-component-detail.js +34 -0
  62. package/tools/live/get-web-live-component-detail.js.map +1 -0
  63. package/tools/live/get-web-live-state-detail.js +34 -0
  64. package/tools/live/get-web-live-state-detail.js.map +1 -0
  65. package/tools/room/get-web-room-state-detail.js +34 -0
  66. package/tools/room/get-web-room-state-detail.js.map +1 -0
  67. package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js +35 -0
  68. package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js.map +1 -0
  69. package/tools/rtcengine/{get-rtcenigne-faq.js → get-trtc-web-sdk-faq.js} +5 -5
  70. package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +1 -0
  71. package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js +36 -0
  72. package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js.map +1 -0
  73. package/utils/generate-usersig.js +7 -9
  74. package/utils/generate-usersig.js.map +1 -1
  75. package/utils/handle-component-name.js +53 -8
  76. package/utils/handle-component-name.js.map +1 -1
  77. package/utils/handle-state-name.js +29 -0
  78. package/utils/handle-state-name.js.map +1 -0
  79. package/@tencent/aegis-node-sdk/CHANGELOG.md +0 -8
  80. package/@tencent/aegis-node-sdk/LICENSE +0 -21
  81. package/@tencent/aegis-node-sdk/README.md +0 -562
  82. package/@tencent/aegis-node-sdk/lib/aegis.min.js +0 -1
  83. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +0 -14
  84. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +0 -1
  85. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +0 -9
  86. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +0 -2
  87. package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +0 -85
  88. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +0 -3
  89. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +0 -9
  90. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +0 -3
  91. package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +0 -9
  92. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +0 -62
  93. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +0 -11
  94. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +0 -4
  95. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +0 -130
  96. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +0 -34
  97. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +0 -2
  98. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +0 -18
  99. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +0 -8
  100. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +0 -8
  101. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +0 -2
  102. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +0 -4
  103. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +0 -10
  104. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +0 -3
  105. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +0 -3
  106. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +0 -34
  107. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +0 -12
  108. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +0 -14
  109. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +0 -2
  110. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +0 -12
  111. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +0 -3
  112. package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +0 -33
  113. package/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
  114. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +0 -2
  115. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +0 -18
  116. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +0 -60
  117. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +0 -15
  118. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +0 -5
  119. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +0 -6
  120. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +0 -18
  121. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +0 -12
  122. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +0 -10
  123. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +0 -20
  124. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +0 -27
  125. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +0 -2
  126. package/@tencent/aegis-node-sdk/package.json +0 -19
  127. package/@tencent/polaris/README.md +0 -407
  128. package/@tencent/polaris/dist/consumer/health.d.ts +0 -126
  129. package/@tencent/polaris/dist/consumer/health.js +0 -283
  130. package/@tencent/polaris/dist/consumer/health.js.map +0 -1
  131. package/@tencent/polaris/dist/consumer/index.d.ts +0 -120
  132. package/@tencent/polaris/dist/consumer/index.js +0 -348
  133. package/@tencent/polaris/dist/consumer/index.js.map +0 -1
  134. package/@tencent/polaris/dist/consumer/monitor.d.ts +0 -145
  135. package/@tencent/polaris/dist/consumer/monitor.js +0 -343
  136. package/@tencent/polaris/dist/consumer/monitor.js.map +0 -1
  137. package/@tencent/polaris/dist/consumer/selector.d.ts +0 -73
  138. package/@tencent/polaris/dist/consumer/selector.js +0 -316
  139. package/@tencent/polaris/dist/consumer/selector.js.map +0 -1
  140. package/@tencent/polaris/dist/errors.d.ts +0 -373
  141. package/@tencent/polaris/dist/errors.js +0 -154
  142. package/@tencent/polaris/dist/errors.js.map +0 -1
  143. package/@tencent/polaris/dist/global.d.ts +0 -16
  144. package/@tencent/polaris/dist/global.js +0 -18
  145. package/@tencent/polaris/dist/global.js.map +0 -1
  146. package/@tencent/polaris/dist/index.d.ts +0 -62
  147. package/@tencent/polaris/dist/index.js +0 -145
  148. package/@tencent/polaris/dist/index.js.map +0 -1
  149. package/@tencent/polaris/dist/instance.d.ts +0 -109
  150. package/@tencent/polaris/dist/instance.js +0 -38
  151. package/@tencent/polaris/dist/instance.js.map +0 -1
  152. package/@tencent/polaris/dist/limiter/bucket.d.ts +0 -51
  153. package/@tencent/polaris/dist/limiter/bucket.js +0 -152
  154. package/@tencent/polaris/dist/limiter/bucket.js.map +0 -1
  155. package/@tencent/polaris/dist/limiter/index.d.ts +0 -73
  156. package/@tencent/polaris/dist/limiter/index.js +0 -149
  157. package/@tencent/polaris/dist/limiter/index.js.map +0 -1
  158. package/@tencent/polaris/dist/limiter/ratelimit.d.ts +0 -27
  159. package/@tencent/polaris/dist/limiter/ratelimit.js +0 -134
  160. package/@tencent/polaris/dist/limiter/ratelimit.js.map +0 -1
  161. package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +0 -17
  162. package/@tencent/polaris/dist/limiter/ratelimiter/base.js +0 -15
  163. package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +0 -1
  164. package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +0 -59
  165. package/@tencent/polaris/dist/limiter/ratelimiter/global.js +0 -397
  166. package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +0 -1
  167. package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +0 -3
  168. package/@tencent/polaris/dist/limiter/ratelimiter/index.js +0 -19
  169. package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +0 -1
  170. package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +0 -17
  171. package/@tencent/polaris/dist/limiter/ratelimiter/local.js +0 -52
  172. package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +0 -1
  173. package/@tencent/polaris/dist/location.d.ts +0 -48
  174. package/@tencent/polaris/dist/location.js +0 -67
  175. package/@tencent/polaris/dist/location.js.map +0 -1
  176. package/@tencent/polaris/dist/logging.d.ts +0 -106
  177. package/@tencent/polaris/dist/logging.js +0 -130
  178. package/@tencent/polaris/dist/logging.js.map +0 -1
  179. package/@tencent/polaris/dist/metadata.d.ts +0 -78
  180. package/@tencent/polaris/dist/metadata.js +0 -119
  181. package/@tencent/polaris/dist/metadata.js.map +0 -1
  182. package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +0 -47
  183. package/@tencent/polaris/dist/plugins/breaker/polaris.js +0 -162
  184. package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +0 -1
  185. package/@tencent/polaris/dist/plugins/lb/base.d.ts +0 -24
  186. package/@tencent/polaris/dist/plugins/lb/base.js +0 -32
  187. package/@tencent/polaris/dist/plugins/lb/base.js.map +0 -1
  188. package/@tencent/polaris/dist/plugins/lb/edf.d.ts +0 -24
  189. package/@tencent/polaris/dist/plugins/lb/edf.js +0 -77
  190. package/@tencent/polaris/dist/plugins/lb/edf.js.map +0 -1
  191. package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +0 -24
  192. package/@tencent/polaris/dist/plugins/lb/hashring.js +0 -53
  193. package/@tencent/polaris/dist/plugins/lb/hashring.js.map +0 -1
  194. package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +0 -31
  195. package/@tencent/polaris/dist/plugins/lb/sticky.js +0 -88
  196. package/@tencent/polaris/dist/plugins/lb/sticky.js.map +0 -1
  197. package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +0 -25
  198. package/@tencent/polaris/dist/plugins/lb/swrr.js +0 -72
  199. package/@tencent/polaris/dist/plugins/lb/swrr.js.map +0 -1
  200. package/@tencent/polaris/dist/plugins/lb/wr.d.ts +0 -17
  201. package/@tencent/polaris/dist/plugins/lb/wr.js +0 -50
  202. package/@tencent/polaris/dist/plugins/lb/wr.js.map +0 -1
  203. package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +0 -19
  204. package/@tencent/polaris/dist/plugins/lb/wrr.js +0 -81
  205. package/@tencent/polaris/dist/plugins/lb/wrr.js.map +0 -1
  206. package/@tencent/polaris/dist/plugins/logging/console.d.ts +0 -10
  207. package/@tencent/polaris/dist/plugins/logging/console.js +0 -38
  208. package/@tencent/polaris/dist/plugins/logging/console.js.map +0 -1
  209. package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +0 -32
  210. package/@tencent/polaris/dist/plugins/naming/local-server/index.js +0 -88
  211. package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +0 -1
  212. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +0 -124
  213. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +0 -398
  214. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +0 -1
  215. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +0 -27
  216. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +0 -287
  217. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +0 -1
  218. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +0 -15
  219. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +0 -43
  220. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +0 -1
  221. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +0 -28
  222. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +0 -249
  223. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +0 -1
  224. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +0 -19
  225. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +0 -222
  226. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +0 -1
  227. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +0 -26
  228. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +0 -99
  229. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +0 -1
  230. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +0 -60
  231. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +0 -259
  232. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +0 -1
  233. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +0 -24
  234. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +0 -18
  235. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +0 -12
  236. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +0 -39
  237. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +0 -115
  238. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +0 -1
  239. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +0 -24
  240. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +0 -22
  241. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +0 -28
  242. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +0 -80
  243. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +0 -18
  244. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +0 -65
  245. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +0 -66
  246. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +0 -95
  247. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +0 -1568
  248. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +0 -36
  249. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +0 -51
  250. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +0 -1
  251. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +0 -18
  252. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +0 -67
  253. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +0 -82
  254. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +0 -11
  255. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +0 -46
  256. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +0 -16
  257. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +0 -10
  258. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +0 -1102
  259. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +0 -29
  260. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +0 -77
  261. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +0 -1
  262. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +0 -12
  263. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +0 -28
  264. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +0 -395
  265. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +0 -13
  266. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +0 -116
  267. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +0 -1
  268. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +0 -67
  269. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +0 -67
  270. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +0 -1
  271. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +0 -99
  272. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +0 -217
  273. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +0 -1
  274. package/@tencent/polaris/dist/plugins/registry/memory.d.ts +0 -10
  275. package/@tencent/polaris/dist/plugins/registry/memory.js +0 -50
  276. package/@tencent/polaris/dist/plugins/registry/memory.js.map +0 -1
  277. package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +0 -51
  278. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +0 -145
  279. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +0 -1
  280. package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +0 -11
  281. package/@tencent/polaris/dist/plugins/router/polaris/rule.js +0 -174
  282. package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +0 -1
  283. package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +0 -25
  284. package/@tencent/polaris/dist/plugins/router/trpc/canary.js +0 -36
  285. package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +0 -1
  286. package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +0 -10
  287. package/@tencent/polaris/dist/plugins/router/trpc/env.js +0 -34
  288. package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +0 -1
  289. package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +0 -56
  290. package/@tencent/polaris/dist/plugins/router/trpc/set.js +0 -106
  291. package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +0 -1
  292. package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +0 -31
  293. package/@tencent/polaris/dist/plugins/shaping/unirate.js +0 -124
  294. package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +0 -1
  295. package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +0 -61
  296. package/@tencent/polaris/dist/plugins/shaping/warmup.js +0 -171
  297. package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +0 -1
  298. package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +0 -23
  299. package/@tencent/polaris/dist/plugins/weight/polaris.js +0 -159
  300. package/@tencent/polaris/dist/plugins/weight/polaris.js.map +0 -1
  301. package/@tencent/polaris/dist/plugins.d.ts +0 -619
  302. package/@tencent/polaris/dist/plugins.js +0 -91
  303. package/@tencent/polaris/dist/plugins.js.map +0 -1
  304. package/@tencent/polaris/dist/polaris.d.ts +0 -33
  305. package/@tencent/polaris/dist/polaris.js +0 -59
  306. package/@tencent/polaris/dist/polaris.js.map +0 -1
  307. package/@tencent/polaris/dist/provider/index.d.ts +0 -102
  308. package/@tencent/polaris/dist/provider/index.js +0 -168
  309. package/@tencent/polaris/dist/provider/index.js.map +0 -1
  310. package/@tencent/polaris/dist/registry.d.ts +0 -174
  311. package/@tencent/polaris/dist/registry.js +0 -660
  312. package/@tencent/polaris/dist/registry.js.map +0 -1
  313. package/@tencent/polaris/dist/rules.d.ts +0 -163
  314. package/@tencent/polaris/dist/rules.js +0 -24
  315. package/@tencent/polaris/dist/rules.js.map +0 -1
  316. package/@tencent/polaris/dist/scripts/postinstall.d.ts +0 -1
  317. package/@tencent/polaris/dist/scripts/postinstall.js +0 -71
  318. package/@tencent/polaris/dist/scripts/postinstall.js.map +0 -1
  319. package/@tencent/polaris/dist/service.d.ts +0 -18
  320. package/@tencent/polaris/dist/service.js +0 -3
  321. package/@tencent/polaris/dist/service.js.map +0 -1
  322. package/@tencent/polaris/dist/skeleton.d.ts +0 -87
  323. package/@tencent/polaris/dist/skeleton.js +0 -282
  324. package/@tencent/polaris/dist/skeleton.js.map +0 -1
  325. package/@tencent/polaris/dist/utils.d.ts +0 -36
  326. package/@tencent/polaris/dist/utils.js +0 -74
  327. package/@tencent/polaris/dist/utils.js.map +0 -1
  328. package/@tencent/polaris/dist/weak.d.ts +0 -11
  329. package/@tencent/polaris/dist/weak.js +0 -44
  330. package/@tencent/polaris/dist/weak.js.map +0 -1
  331. package/@tencent/polaris/package.json +0 -114
  332. package/libs/lib-generate-test-usersig-es.min.d.ts +0 -6
  333. package/libs/lib-generate-test-usersig-es.min.js +0 -2
  334. package/resource/doc/chatuikit/react/generate_UserSig.md +0 -306
  335. package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +0 -202
  336. package/resource/doc/chatuikit/react/integrate_tuichat_react.md +0 -279
  337. package/resource/doc/chatuikit/vue/generate_UserSig.md +0 -306
  338. package/resource/doc/chatuikit/vue/integrate_only_tuichat_Vue_web.md +0 -124
  339. package/resource/doc/chatuikit/vue/integrate_tuikit_Vue_web.md +0 -552
  340. package/resource/doc/chatuikit/vue/login.md +0 -31
  341. package/resource/doc/chatuikit/vue3/components/MessageInput.md +0 -1272
  342. package/resource/doc/chatuikit/vue3/components/avatar.md +0 -137
  343. package/resource/doc/chatuikit/vue3/components/chatheader.md +0 -189
  344. package/resource/doc/chatuikit/vue3/components/component-list.md +0 -102
  345. package/resource/doc/chatuikit/vue3/components/userpicker.md +0 -315
  346. package/resource/doc/chatuikit/vue3/integration.md +0 -256
  347. package/resource/doc/tuicallkit/react/.gitkeep +0 -0
  348. package/resource/doc/tuicallkit/react/api_TUICallKit.md +0 -354
  349. package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +0 -195
  350. package/resource/doc/tuicallkit/react/how_to_run_react_callkit_demo.md +0 -61
  351. package/resource/doc/tuicallkit/vue/.gitkeep +0 -0
  352. package/resource/doc/tuicallkit/vue/api_TUICallKit.md +0 -354
  353. package/resource/doc/tuicallkit/vue/how_to_integrated_vue_callkit.md +0 -187
  354. package/resource/doc/tuicallkit/vue/how_to_run_vue_callkit_demo.md +0 -61
  355. package/streamableHttp.js +0 -74
  356. package/streamableHttp.js.map +0 -1
  357. package/tools/call/get-native-call-integration-guide.js +0 -36
  358. package/tools/call/get-native-call-integration-guide.js.map +0 -1
  359. package/tools/call/get-web-call-integration-guide.js +0 -35
  360. package/tools/call/get-web-call-integration-guide.js.map +0 -1
  361. package/tools/chat/get-native-chat-integration-guide.js +0 -34
  362. package/tools/chat/get-native-chat-integration-guide.js.map +0 -1
  363. package/tools/chat/get-web-chat-integration-guide.js +0 -35
  364. package/tools/chat/get-web-chat-integration-guide.js.map +0 -1
  365. package/tools/chat/get-web-chat-uikit-login.js.map +0 -1
  366. package/tools/rtcengine/get-rtcengine-integration-guide.js +0 -33
  367. package/tools/rtcengine/get-rtcengine-integration-guide.js.map +0 -1
  368. package/tools/rtcengine/get-rtcenigne-faq.js.map +0 -1
  369. /package/resource/doc/chatuikit/react/{login.md → init.md} +0 -0
@@ -1,354 +0,0 @@
1
- ## TUICallKit (including UI Interface)
2
-
3
- ## TUICallKit APIs
4
-
5
- UICallKit API, you can quickly implement a WeChat-like audio and video call scenario through simple interfaces.
6
- <table>
7
- <tr>
8
- <td rowspan="1" colSpan="1" >API</td>
9
-
10
- <td rowspan="1" colSpan="1" >Description</td>
11
- </tr>
12
-
13
- <tr>
14
- <td rowspan="1" colSpan="1" >[login](https://write.woa.com/document/162412580951224320)</td>
15
-
16
- <td rowspan="1" colSpan="1" >Login.</td>
17
- </tr>
18
-
19
- <tr>
20
- <td rowspan="1" colSpan="1" >[logout](https://write.woa.com/document/162412580951224320)</td>
21
-
22
- <td rowspan="1" colSpan="1" >Logout.</td>
23
- </tr>
24
-
25
- <tr>
26
- <td rowspan="1" colSpan="1" >[calls](https://write.woa.com/document/162412580951224320)</td>
27
-
28
- <td rowspan="1" colSpan="1" >Initiate a one-to-one or multi-person call.</td>
29
- </tr>
30
-
31
- <tr>
32
- <td rowspan="1" colSpan="1" >[call](https://write.woa.com/document/162412580951224320)</td>
33
-
34
- <td rowspan="1" colSpan="1" >To make a one-on-one call, supports custom room ID, call timeout, offline push content, and more.</td>
35
- </tr>
36
-
37
- <tr>
38
- <td rowspan="1" colSpan="1" >[groupCall](https://write.woa.com/document/162412580951224320)</td>
39
-
40
- <td rowspan="1" colSpan="1" >To make a group call, supports custom room ID, call timeout, offline push content, and more.</td>
41
- </tr>
42
-
43
- <tr>
44
- <td rowspan="1" colSpan="1" >[joinInGroupCall](https://write.woa.com/document/162412580951224320)</td>
45
-
46
- <td rowspan="1" colSpan="1" >Join a group call.</td>
47
- </tr>
48
-
49
- <tr>
50
- <td rowspan="1" colSpan="1" >[setCallingBell](https://write.woa.com/document/162412580951224320)</td>
51
-
52
- <td rowspan="1" colSpan="1" >Customize user's ringtone.</td>
53
- </tr>
54
-
55
- <tr>
56
- <td rowspan="1" colSpan="1" >[enableMuteMode](https://write.woa.com/document/162412580951224320)</td>
57
-
58
- <td rowspan="1" colSpan="1" >Enable/Disable Ringtone.</td>
59
- </tr>
60
-
61
- <tr>
62
- <td rowspan="1" colSpan="1" >[enableVirtualBackground](https://write.woa.com/document/162412580951224320)</td>
63
-
64
- <td rowspan="1" colSpan="1" >Enable/disable blurry background feature.</td>
65
- </tr>
66
-
67
- <tr>
68
- <td rowspan="1" colSpan="1" >[setScreenOrientation](https://write.woa.com/document/162412580951224320)</td>
69
-
70
- <td rowspan="1" colSpan="1" >Set Screen Orientation.</td>
71
- </tr>
72
-
73
- <tr>
74
- <td rowspan="1" colSpan="1" >[on](https://write.woa.com/document/162412580951224320)</td>
75
-
76
- <td rowspan="1" colSpan="1" >Listen to TUICallKit events.</td>
77
- </tr>
78
-
79
- <tr>
80
- <td rowspan="1" colSpan="1" >[off](https://write.woa.com/document/162412580951224320)</td>
81
-
82
- <td rowspan="1" colSpan="1" >Cancel listening to TUICallKit events.</td>
83
- </tr>
84
- </table>
85
-
86
-
87
- ## TUICallEvent
88
-
89
- TUICallEvent is the callback event class corresponding to TUICallKit. Through this callback, you can listen to the callback events you are interested in.
90
- <table>
91
- <tr>
92
- <td rowspan="1" colSpan="1" >Event</td>
93
-
94
- <td rowspan="1" colSpan="1" >Description</td>
95
- </tr>
96
-
97
- <tr>
98
- <td rowspan="1" colSpan="1" >[TUICallEvent.onError](https://write.woa.com/document/162412628639113216)</td>
99
-
100
- <td rowspan="1" colSpan="1" >Error Callback during Call.</td>
101
- </tr>
102
-
103
- <tr>
104
- <td rowspan="1" colSpan="1" >[TUICallEvent.onCallReceived](https://write.woa.com/document/162412628639113216)</td>
105
-
106
- <td rowspan="1" colSpan="1" >Callback for a Call Request.</td>
107
- </tr>
108
-
109
- <tr>
110
- <td rowspan="1" colSpan="1" >[TUICallEvent.onCallCancelled](https://write.woa.com/document/162412628639113216)</td>
111
-
112
- <td rowspan="1" colSpan="1" >Callback for Call Cancellation.</td>
113
- </tr>
114
-
115
- <tr>
116
- <td rowspan="1" colSpan="1" >[TUICallEvent.onCallBegin](https://write.woa.com/document/162412628639113216)</td>
117
-
118
- <td rowspan="1" colSpan="1" >Callback for Call Connection.</td>
119
- </tr>
120
-
121
- <tr>
122
- <td rowspan="1" colSpan="1" >[TUICallEvent.onCallEnd](https://write.woa.com/document/162412628639113216)</td>
123
-
124
- <td rowspan="1" colSpan="1" >Callback for Call Termination.</td>
125
- </tr>
126
-
127
- <tr>
128
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserReject](https://write.woa.com/document/162412628639113216)</td>
129
-
130
- <td rowspan="1" colSpan="1" >xxxx User declines the call Callback.</td>
131
- </tr>
132
-
133
- <tr>
134
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserNoResponse](https://write.woa.com/document/162412628639113216)</td>
135
-
136
- <td rowspan="1" colSpan="1" >xxxx User Non-response Callback.</td>
137
- </tr>
138
-
139
- <tr>
140
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserLineBusy](https://write.woa.com/document/162412628639113216)</td>
141
-
142
- <td rowspan="1" colSpan="1" >xxxx User Busy Line Callback.</td>
143
- </tr>
144
-
145
- <tr>
146
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserJoin](https://write.woa.com/document/162412628639113216)</td>
147
-
148
- <td rowspan="1" colSpan="1" >xxxx User Joins Call Callback.</td>
149
- </tr>
150
-
151
- <tr>
152
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserLeave](https://write.woa.com/document/162412628639113216)</td>
153
-
154
- <td rowspan="1" colSpan="1" >A user left the call.</td>
155
- </tr>
156
-
157
- <tr>
158
- <td rowspan="1" colSpan="1" >[TUICallEvent.onCallMediaTypeChanged](https://write.woa.com/document/162412628639113216)</td>
159
-
160
- <td rowspan="1" colSpan="1" >Callback for a change in the Call's Media Type.</td>
161
- </tr>
162
-
163
- <tr>
164
- <td rowspan="1" colSpan="1" >[TUICallEvent.onKickedOffline](https://write.woa.com/document/162412628639113216)</td>
165
-
166
- <td rowspan="1" colSpan="1" >Current user kicked offline.</td>
167
- </tr>
168
-
169
- <tr>
170
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserSigExpired](https://write.woa.com/document/162412628639113216)</td>
171
-
172
- <td rowspan="1" colSpan="1" >Ticket expired while online.</td>
173
- </tr>
174
-
175
- <tr>
176
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserVideoAvailable](https://write.woa.com/document/162412628639113216)</td>
177
-
178
- <td rowspan="1" colSpan="1" >Whether a user has a video stream.</td>
179
- </tr>
180
-
181
- <tr>
182
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserAudioAvailable](https://write.woa.com/document/162412628639113216)</td>
183
-
184
- <td rowspan="1" colSpan="1" >Whether a user has an audio stream.</td>
185
- </tr>
186
-
187
- <tr>
188
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserVoiceVolumeChanged](https://write.woa.com/document/162412628639113216)</td>
189
-
190
- <td rowspan="1" colSpan="1" >The volume levels of all users.</td>
191
- </tr>
192
-
193
- <tr>
194
- <td rowspan="1" colSpan="1" >[TUICallEvent.onUserNetworkQualityChanged](https://write.woa.com/document/162412628639113216)</td>
195
-
196
- <td rowspan="1" colSpan="1" >The network quality of all users.</td>
197
- </tr>
198
- </table>
199
-
200
-
201
- ## TUICallEngine (No UI)
202
-
203
- `TUICallEngine` is an audio/video call component that **does not include UI elements**. If `TUICallKit` does not meet your requirements, you can use the APIs of `TUICallEngine` to customize your project.
204
- <table>
205
- <tr>
206
- <td rowspan="1" colSpan="1" >API</td>
207
-
208
- <td rowspan="1" colSpan="1" >Description</td>
209
- </tr>
210
-
211
- <tr>
212
- <td rowspan="1" colSpan="1" >[createInstance](https://write.woa.com/document/165654454250659840)</td>
213
-
214
- <td rowspan="1" colSpan="1" >Creates a `TUICallEngine` instance (singleton mode).</td>
215
- </tr>
216
-
217
- <tr>
218
- <td rowspan="1" colSpan="1" >[destroyInstance](https://write.woa.com/document/165654454250659840)</td>
219
-
220
- <td rowspan="1" colSpan="1" >Terminates a `TUICallEngine` instance (singleton mode).</td>
221
- </tr>
222
-
223
- <tr>
224
- <td rowspan="1" colSpan="1" >[login](https://write.woa.com/document/165654454250659840)</td>
225
-
226
- <td rowspan="1" colSpan="1" >Authenticates the basic audio/video call capabilities.</td>
227
- </tr>
228
-
229
- <tr>
230
- <td rowspan="1" colSpan="1" >[on](https://write.woa.com/document/165654454250659840)</td>
231
-
232
- <td rowspan="1" colSpan="1" >Registers an event listener.</td>
233
- </tr>
234
-
235
- <tr>
236
- <td rowspan="1" colSpan="1" >[off](https://write.woa.com/document/165654454250659840)</td>
237
-
238
- <td rowspan="1" colSpan="1" >Unregisters an event listener.</td>
239
- </tr>
240
-
241
- <tr>
242
- <td rowspan="1" colSpan="1" >[call](https://write.woa.com/document/165654454250659840)</td>
243
-
244
- <td rowspan="1" colSpan="1" >Makes a one-to-one call.</td>
245
- </tr>
246
-
247
- <tr>
248
- <td rowspan="1" colSpan="1" >[accept](https://write.woa.com/document/165654454250659840)</td>
249
-
250
- <td rowspan="1" colSpan="1" >Accepts a call.</td>
251
- </tr>
252
-
253
- <tr>
254
- <td rowspan="1" colSpan="1" >[reject](https://write.woa.com/document/165654454250659840)</td>
255
-
256
- <td rowspan="1" colSpan="1" >Rejects a call.</td>
257
- </tr>
258
-
259
- <tr>
260
- <td rowspan="1" colSpan="1" >[ignore](https://write.woa.com/document/165654454250659840)</td>
261
-
262
- <td rowspan="1" colSpan="1" >Ignores a call.</td>
263
- </tr>
264
-
265
- <tr>
266
- <td rowspan="1" colSpan="1" >[hangup](https://write.woa.com/document/165654454250659840)</td>
267
-
268
- <td rowspan="1" colSpan="1" >Ends a call.</td>
269
- </tr>
270
-
271
- <tr>
272
- <td rowspan="1" colSpan="1" >[switchCallMediaType](https://write.woa.com/document/165654454250659840)</td>
273
-
274
- <td rowspan="1" colSpan="1" >Changes the call type, for example, from video call to audio call.</td>
275
- </tr>
276
-
277
- <tr>
278
- <td rowspan="1" colSpan="1" >[startRemoteView](https://write.woa.com/document/165654454250659840)</td>
279
-
280
- <td rowspan="1" colSpan="1" >Subscribes to the video stream of a remote user.</td>
281
- </tr>
282
-
283
- <tr>
284
- <td rowspan="1" colSpan="1" >[stopRemoteView](https://write.woa.com/document/165654454250659840)</td>
285
-
286
- <td rowspan="1" colSpan="1" >Unsubscribes from the video stream of a remote user.</td>
287
- </tr>
288
-
289
- <tr>
290
- <td rowspan="1" colSpan="1" >[openCamera](https://write.woa.com/document/165654454250659840)</td>
291
-
292
- <td rowspan="1" colSpan="1" >Turns the camera on.</td>
293
- </tr>
294
-
295
- <tr>
296
- <td rowspan="1" colSpan="1" >[switchCamera](https://write.woa.com/document/165654454250659840)</td>
297
-
298
- <td rowspan="1" colSpan="1" >Switches between the front and rear cameras.</td>
299
- </tr>
300
-
301
- <tr>
302
- <td rowspan="1" colSpan="1" >[closeCamera](https://write.woa.com/document/165654454250659840)</td>
303
-
304
- <td rowspan="1" colSpan="1" >Turns the camera off.</td>
305
- </tr>
306
-
307
- <tr>
308
- <td rowspan="1" colSpan="1" >[openMicrophone](https://write.woa.com/document/165654454250659840)</td>
309
-
310
- <td rowspan="1" colSpan="1" >Turns the mic on.</td>
311
- </tr>
312
-
313
- <tr>
314
- <td rowspan="1" colSpan="1" >[closeMicrophone](https://write.woa.com/document/165654454250659840)</td>
315
-
316
- <td rowspan="1" colSpan="1" >Turns the mic off.</td>
317
- </tr>
318
-
319
- <tr>
320
- <td rowspan="1" colSpan="1" >[selectAudioPlaybackDevice](https://write.woa.com/document/165654454250659840)</td>
321
-
322
- <td rowspan="1" colSpan="1" >Selects the audio playback device (receiver or speaker).</td>
323
- </tr>
324
-
325
- <tr>
326
- <td rowspan="1" colSpan="1" >[setVideoRenderParams](https://write.woa.com/document/165654454250659840)</td>
327
-
328
- <td rowspan="1" colSpan="1" >Set the rendering mode of video image.</td>
329
- </tr>
330
-
331
- <tr>
332
- <td rowspan="1" colSpan="1" >[setVideoEncoderParams](https://write.woa.com/document/165654454250659840)</td>
333
-
334
- <td rowspan="1" colSpan="1" >Set the encoding parameters of video encoder.</td>
335
- </tr>
336
-
337
- <tr>
338
- <td rowspan="1" colSpan="1" >[setBeautyLevel](https://write.woa.com/document/165654454250659840)</td>
339
-
340
- <td rowspan="1" colSpan="1" >Set beauty level, support turning off default beauty.</td>
341
- </tr>
342
-
343
- <tr>
344
- <td rowspan="1" colSpan="1" >[setSelfInfo](https://write.woa.com/document/165654454250659840)</td>
345
-
346
- <td rowspan="1" colSpan="1" >Sets the alias and profile photo.</td>
347
- </tr>
348
-
349
- <tr>
350
- <td rowspan="1" colSpan="1" >[enableMultiDeviceAbility](https://write.woa.com/document/165654454250659840)</td>
351
-
352
- <td rowspan="1" colSpan="1" >Sets whether to enable multi-device login for `TUICallEngine` .</td>
353
- </tr>
354
- </table>
@@ -1,195 +0,0 @@
1
- This article will guide you through the quick integration of the TUICallKit component. You will complete several key steps within 10 minutes, ultimately obtaining a video call feature with a complete UI interface.
2
-
3
- ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100029836296/ace7b80f181f11ef9c015254002977b6.png)
4
-
5
- ## Prerequisites
6
- - React version 18+.
7
-
8
- - [Node.js](https://nodejs.org/en/) version 16+.
9
-
10
- - Modern browser, supporting WebRTC APIs.
11
-
12
-
13
- ## Step 1. Activate the service
14
-
15
- Refer to [Activate the Service](https://trtc.io/document/59832?platform=web&product=call) to obtain `SDKAppID, SDKSecretKey`, which will be used as **Mandatory Parameters in **[Initialize the TUICallKit](https://write.woa.com/document/133160392291844096)**.**
16
-
17
- ## Step 2. Download the TUICallKit
18
- 1. Download the [@tencentcloud/call-uikit-react](https://www.npmjs.com/package/@tencentcloud/call-uikit-react) component.
19
-
20
-
21
-
22
- 【shell】
23
- ``` bash
24
- npm install @tencentcloud/call-uikit-react
25
- ```
26
- 2. Copy the `debug` directory to your project directory `src/debug`, it is necessary when generating userSig locally.
27
-
28
-
29
-
30
-
31
-
32
- 【MacOS】
33
- ``` bash
34
- cp -r node_modules/@tencentcloud/call-uikit-react/debug ./src
35
- ```
36
-
37
-
38
- 【Windows】
39
- ``` bash
40
- xcopy node_modules\@tencentcloud\call-uikit-react\debug .\src\debug /i /e
41
- ```
42
-
43
-
44
- ## Step 3. Initialize the TUICallKit
45
-
46
- You can choose to import the sample code in the `/src/App.tsx` file.
47
- 1. Import the call uikit.
48
-
49
- ``` javascript
50
- import { useState } from 'react';
51
- import { TUICallKit, TUICallKitServer, TUICallType } from "@tencentcloud/call-uikit-react";
52
- import * as GenerateTestUserSig from "./debug/GenerateTestUserSig-es"; // Refer to Step 2.2
53
- ```
54
- 2. using the [<TUICallKit />](https://trtc.io/document/51015#call#tuicallkit), which contains the complete UI interaction during a call.
55
-
56
- ``` javascript
57
- return (
58
- <>
59
- <span> caller's ID: </span>
60
- <input type="text" placeholder='input caller userID' onChange={(event) => setCallerUserID(event.target.value)} />
61
- <button onClick={init}> step1. init </button> <br />
62
- <span> callee's ID: </span>
63
- <input type="text" placeholder='input callee userID' onChange={(event) => setCalleeUserID(event.target.value)} />
64
- <button onClick={call}> step2. call </button>
65
-
66
- {/* 【1】Import the TUICallKit component: Call interface UI */}
67
- <TUICallKit />
68
- </>
69
- );
70
- ```
71
- 3. using the [TUICallKitServer.init](https://trtc.io/document/51015#call#init) API to log in to the component, you need to `fill in``SDKAppID, SDKSecretKey `as two parameters in the code.
72
-
73
- ``` javascript
74
- const SDKAppID = 0; // TODO: Replace with your SDKAppID (Notice: SDKAppID is of type number)
75
- const SDKSecretKey = ''; // TODO: Replace with your SDKSecretKey
76
-
77
- const [callerUserID, setCallerUserID] = useState('');
78
- const [calleeUserID, setCalleeUserID] = useState('');
79
-
80
- //【2】Initialize the TUICallKit component
81
- const init = async () => {
82
- const { userSig } = GenerateTestUserSig.genTestUserSig({
83
- userID: callerUserID,
84
- SDKAppID,
85
- SecretKey: SDKSecretKey,
86
- });
87
- await TUICallKitServer.init({
88
- userID: callerUserID,
89
- userSig,
90
- SDKAppID,
91
- });
92
- alert('TUICallKit init succeed');
93
- }
94
- ```
95
- <table>
96
- <tr>
97
- <td rowspan="1" colSpan="1" >**Parameter**</td>
98
-
99
- <td rowspan="1" colSpan="1" >**Type**</td>
100
-
101
- <td rowspan="1" colSpan="1" >**Note**</td>
102
- </tr>
103
-
104
- <tr>
105
- <td rowspan="1" colSpan="1" >userID</td>
106
-
107
- <td rowspan="1" colSpan="1" >String</td>
108
-
109
- <td rowspan="1" colSpan="1" >**Unique identifier of the user, **`defined by you`**, **it is allowed to contain only upper and lower case letters (a-z, A-Z), numbers (0-9), underscores, and hyphens.</td>
110
- </tr>
111
-
112
- <tr>
113
- <td rowspan="1" colSpan="1" >SDKAppID</td>
114
-
115
- <td rowspan="1" colSpan="1" >Number</td>
116
-
117
- <td rowspan="1" colSpan="1" >The unique identifier for the audio and video application created in the [Tencent RTC Console](https://console.trtc.io/).</td>
118
- </tr>
119
-
120
- <tr>
121
- <td rowspan="1" colSpan="1" >SDKSecretKey</td>
122
-
123
- <td rowspan="1" colSpan="1" >String</td>
124
-
125
- <td rowspan="1" colSpan="1" >The SDKSecretKey of the audio and video application created in the [Tencent RTC Console](https://console.trtc.io/).</td>
126
- </tr>
127
-
128
- <tr>
129
- <td rowspan="1" colSpan="1" >userSig</td>
130
-
131
- <td rowspan="1" colSpan="1" >String</td>
132
-
133
- <td rowspan="1" colSpan="1" >A security protection signature used for user log in authentication to confirm the user's identity and prevent malicious attackers from stealing your cloud service usage rights.</td>
134
- </tr>
135
- </table>
136
-
137
-
138
- > **Explanation of userSig:**
139
- >
140
- > - **Development environment:** If you are running a demo locally and developing debugging, you can use the `genTestUserSig` (Refer to Step 3.2) function in the debug file to generate a `userSig`. In this method, SDKSecretKey is vulnerable to decompilation and reverse engineering. Once your key is leaked, attackers can steal your Tencent Cloud traffic.
141
- > - **Production environment: **If your project is going live, please use the [Server-side Generation of UserSig](https://trtc.io/document/35166) method.
142
-
143
-
144
- ## Step 4. Make your first call
145
- 1. using the [TUICallKitServer.calls API](https://trtc.io/document/51015#calls) to make a call.
146
-
147
- ``` javascript
148
- //【3】Make a 1v1 video call
149
- const call = async () => {
150
- await TUICallKitServer.calls({
151
- userIDIDList: [calleeUserID],
152
- type: TUICallType.VIDEO_CALL,
153
- });
154
- };
155
- ```
156
- 2. Run the project.
157
-
158
-
159
- > **Warning:**
160
- >
161
-
162
- > **For local environment, please access under localhost protocol. For public network experience, please access under HTTPS protocol. For details, see **[Description of Network Access Protocol](https://web.sdk.qcloud.com/trtc/webrtc/doc/en/tutorial-05-info-browser.html#h2-3)**.**
163
- >
164
-
165
- 3. Open two browser pages,** enter different userID (defined by you) **click `step1. init` to login (caller and callee).
166
-
167
-
168
- ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100029836296/0634dc1f668811ef9664525400d5f8ef.png)
169
-
170
- 4. **After both userID init to successfully**, click on` step2. call`to make a call. If you have a call problem, refer to [FAQs](https://trtc.io/document/51024?platform=android&product=call#create_userID).
171
-
172
-
173
- ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100029836296/1f3e8349668811ef86bb525400fdb830.png)
174
-
175
-
176
- ## Additional Features
177
- - [Setting Nickname, Avatar](https://trtc.io/document/59834?platform=web&product=call)
178
-
179
- - [Group Call](https://trtc.io/document/59838?platform=web&product=call)
180
-
181
- - [Floating Window](https://trtc.io/document/59842?platform=web&product=call)
182
-
183
- - [Custom Ringtone](https://trtc.io/document/59847?platform=web&product=call)
184
-
185
- - [Call Status Monitoring, Component Callback Event](https://trtc.io/document/59852?platform=web&product=call)
186
-
187
- - [Setting Resolution, Fill Pattern](https://trtc.io/document/59835?platform=web&product=call)
188
-
189
- - [Customize Interface](https://trtc.io/document/50997?platform=web&product=call)
190
-
191
-
192
- ## FAQs
193
- - If you encounter any problems with access and use, please refer to [FAQs](https://trtc.io/document/51024?platform=web&product=call).
194
-
195
- - If you have any requirements or feedback, you can contact: info_rtc@tencent.com.
@@ -1,61 +0,0 @@
1
- This article will guide you on how to quickly run through the Audio and Video Call Demo. By following this document, you can have the Demo up and running in 10 minutes, and ultimately experience an Audio and Video Call feature with a complete UI interface.
2
- <table>
3
- <tr>
4
- <td rowspan="1" colSpan="1" >1v1 Video Call</td>
5
-
6
- <td rowspan="1" colSpan="1" >Group call</td>
7
- </tr>
8
-
9
- <tr>
10
- <td rowspan="1" colSpan="1" >![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100029836296/cf76ae94b6d911ef916f525400f69702.png)</td>
11
-
12
- <td rowspan="1" colSpan="1" >![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100029836296/cf6073deb6d911efbb92525400329841.png)</td>
13
- </tr>
14
- </table>
15
-
16
-
17
- ## Step 1: Download the demo
18
- 1. Open the terminal and clone the repository.
19
-
20
- ``` bash
21
- git clone https://github.com/Tencent-RTC/TUICallKit.git
22
- ```
23
- 2. Install dependencies.
24
-
25
- ``` bash
26
- cd ./TUICallKit/ReactNative
27
- yarn install
28
- ```
29
-
30
- ## Step 2: Configure the demo
31
- 1. [Go to the Activate Service page](https://trtc.io/document/59832?platform=web&product=call&menulabel=web) and get `the SDKAppID and SDKSecretKey`![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100029836296/f829ea3fb6e711ef9cb452540075b605.png)
32
-
33
- 2. Fill them in the `TUICallKit/ReactNative/src/debug/GenerateTestUserSig-es.js` file.
34
-
35
-
36
- ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100029836296/1806fd5fb6db11ef9448525400fdb830.png)
37
-
38
-
39
- ## Step 3: Run the demo
40
- ``` bash
41
- # TUICallKit/ReactNative
42
- yarn start
43
- ```
44
-
45
- ## Step 4: Make the first call
46
-
47
- > **Note:**
48
- >
49
-
50
- > To experience the complete audio and video calling process, please log into the Demo on two devices as two different users, with one acting as the caller and the other as the callee.
51
- >
52
-
53
- - log in to userID (defined by you).
54
-
55
-
56
- ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100029836296/6528eb62b6e911ef9cb452540075b605.png)
57
-
58
- - Input the callee's userID and click all to experience your first call.
59
-
60
-
61
- ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100029836296/100d4889b6ec11ef9cb452540075b605.png)
File without changes