@tencent-rtc/mcp 1.0.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.
Files changed (286) hide show
  1. package/@tencent/aegis-node-sdk/CHANGELOG.md +8 -0
  2. package/@tencent/aegis-node-sdk/LICENSE +21 -0
  3. package/@tencent/aegis-node-sdk/README.md +562 -0
  4. package/@tencent/aegis-node-sdk/lib/aegis.min.js +1 -0
  5. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +14 -0
  6. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +1 -0
  7. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +9 -0
  8. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +2 -0
  9. package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +85 -0
  10. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +3 -0
  11. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +9 -0
  12. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +3 -0
  13. package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +9 -0
  14. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +62 -0
  15. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +11 -0
  16. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +4 -0
  17. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +130 -0
  18. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +34 -0
  19. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +2 -0
  20. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +18 -0
  21. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +8 -0
  22. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +8 -0
  23. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +2 -0
  24. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +4 -0
  25. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +10 -0
  26. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +3 -0
  27. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +3 -0
  28. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +34 -0
  29. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +12 -0
  30. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +14 -0
  31. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +2 -0
  32. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +12 -0
  33. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +3 -0
  34. package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +33 -0
  35. package/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
  36. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +2 -0
  37. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +18 -0
  38. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +60 -0
  39. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +15 -0
  40. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +5 -0
  41. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +6 -0
  42. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +18 -0
  43. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +12 -0
  44. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +10 -0
  45. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +20 -0
  46. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +27 -0
  47. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +2 -0
  48. package/@tencent/aegis-node-sdk/package.json +19 -0
  49. package/@tencent/polaris/README.md +407 -0
  50. package/@tencent/polaris/dist/consumer/health.d.ts +126 -0
  51. package/@tencent/polaris/dist/consumer/health.js +283 -0
  52. package/@tencent/polaris/dist/consumer/health.js.map +1 -0
  53. package/@tencent/polaris/dist/consumer/index.d.ts +120 -0
  54. package/@tencent/polaris/dist/consumer/index.js +348 -0
  55. package/@tencent/polaris/dist/consumer/index.js.map +1 -0
  56. package/@tencent/polaris/dist/consumer/monitor.d.ts +145 -0
  57. package/@tencent/polaris/dist/consumer/monitor.js +343 -0
  58. package/@tencent/polaris/dist/consumer/monitor.js.map +1 -0
  59. package/@tencent/polaris/dist/consumer/selector.d.ts +73 -0
  60. package/@tencent/polaris/dist/consumer/selector.js +316 -0
  61. package/@tencent/polaris/dist/consumer/selector.js.map +1 -0
  62. package/@tencent/polaris/dist/errors.d.ts +373 -0
  63. package/@tencent/polaris/dist/errors.js +154 -0
  64. package/@tencent/polaris/dist/errors.js.map +1 -0
  65. package/@tencent/polaris/dist/global.d.ts +16 -0
  66. package/@tencent/polaris/dist/global.js +18 -0
  67. package/@tencent/polaris/dist/global.js.map +1 -0
  68. package/@tencent/polaris/dist/index.d.ts +62 -0
  69. package/@tencent/polaris/dist/index.js +145 -0
  70. package/@tencent/polaris/dist/index.js.map +1 -0
  71. package/@tencent/polaris/dist/instance.d.ts +109 -0
  72. package/@tencent/polaris/dist/instance.js +38 -0
  73. package/@tencent/polaris/dist/instance.js.map +1 -0
  74. package/@tencent/polaris/dist/limiter/bucket.d.ts +51 -0
  75. package/@tencent/polaris/dist/limiter/bucket.js +152 -0
  76. package/@tencent/polaris/dist/limiter/bucket.js.map +1 -0
  77. package/@tencent/polaris/dist/limiter/index.d.ts +73 -0
  78. package/@tencent/polaris/dist/limiter/index.js +149 -0
  79. package/@tencent/polaris/dist/limiter/index.js.map +1 -0
  80. package/@tencent/polaris/dist/limiter/ratelimit.d.ts +27 -0
  81. package/@tencent/polaris/dist/limiter/ratelimit.js +134 -0
  82. package/@tencent/polaris/dist/limiter/ratelimit.js.map +1 -0
  83. package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +17 -0
  84. package/@tencent/polaris/dist/limiter/ratelimiter/base.js +15 -0
  85. package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +1 -0
  86. package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +59 -0
  87. package/@tencent/polaris/dist/limiter/ratelimiter/global.js +397 -0
  88. package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +1 -0
  89. package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +3 -0
  90. package/@tencent/polaris/dist/limiter/ratelimiter/index.js +19 -0
  91. package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +1 -0
  92. package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +17 -0
  93. package/@tencent/polaris/dist/limiter/ratelimiter/local.js +52 -0
  94. package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +1 -0
  95. package/@tencent/polaris/dist/location.d.ts +48 -0
  96. package/@tencent/polaris/dist/location.js +67 -0
  97. package/@tencent/polaris/dist/location.js.map +1 -0
  98. package/@tencent/polaris/dist/logging.d.ts +106 -0
  99. package/@tencent/polaris/dist/logging.js +130 -0
  100. package/@tencent/polaris/dist/logging.js.map +1 -0
  101. package/@tencent/polaris/dist/metadata.d.ts +78 -0
  102. package/@tencent/polaris/dist/metadata.js +119 -0
  103. package/@tencent/polaris/dist/metadata.js.map +1 -0
  104. package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +47 -0
  105. package/@tencent/polaris/dist/plugins/breaker/polaris.js +162 -0
  106. package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +1 -0
  107. package/@tencent/polaris/dist/plugins/lb/base.d.ts +24 -0
  108. package/@tencent/polaris/dist/plugins/lb/base.js +32 -0
  109. package/@tencent/polaris/dist/plugins/lb/base.js.map +1 -0
  110. package/@tencent/polaris/dist/plugins/lb/edf.d.ts +24 -0
  111. package/@tencent/polaris/dist/plugins/lb/edf.js +77 -0
  112. package/@tencent/polaris/dist/plugins/lb/edf.js.map +1 -0
  113. package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +24 -0
  114. package/@tencent/polaris/dist/plugins/lb/hashring.js +53 -0
  115. package/@tencent/polaris/dist/plugins/lb/hashring.js.map +1 -0
  116. package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +31 -0
  117. package/@tencent/polaris/dist/plugins/lb/sticky.js +88 -0
  118. package/@tencent/polaris/dist/plugins/lb/sticky.js.map +1 -0
  119. package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +25 -0
  120. package/@tencent/polaris/dist/plugins/lb/swrr.js +72 -0
  121. package/@tencent/polaris/dist/plugins/lb/swrr.js.map +1 -0
  122. package/@tencent/polaris/dist/plugins/lb/wr.d.ts +17 -0
  123. package/@tencent/polaris/dist/plugins/lb/wr.js +50 -0
  124. package/@tencent/polaris/dist/plugins/lb/wr.js.map +1 -0
  125. package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +19 -0
  126. package/@tencent/polaris/dist/plugins/lb/wrr.js +81 -0
  127. package/@tencent/polaris/dist/plugins/lb/wrr.js.map +1 -0
  128. package/@tencent/polaris/dist/plugins/logging/console.d.ts +10 -0
  129. package/@tencent/polaris/dist/plugins/logging/console.js +38 -0
  130. package/@tencent/polaris/dist/plugins/logging/console.js.map +1 -0
  131. package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +32 -0
  132. package/@tencent/polaris/dist/plugins/naming/local-server/index.js +88 -0
  133. package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +1 -0
  134. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +124 -0
  135. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +398 -0
  136. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +1 -0
  137. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +27 -0
  138. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +287 -0
  139. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +1 -0
  140. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +15 -0
  141. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +43 -0
  142. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +1 -0
  143. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +28 -0
  144. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +249 -0
  145. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +1 -0
  146. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +19 -0
  147. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +222 -0
  148. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +1 -0
  149. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +26 -0
  150. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +99 -0
  151. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +1 -0
  152. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +60 -0
  153. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +259 -0
  154. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +1 -0
  155. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +24 -0
  156. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +18 -0
  157. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +12 -0
  158. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +39 -0
  159. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +115 -0
  160. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +1 -0
  161. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +24 -0
  162. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +22 -0
  163. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +28 -0
  164. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +80 -0
  165. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +18 -0
  166. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +65 -0
  167. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +66 -0
  168. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +95 -0
  169. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +1568 -0
  170. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +36 -0
  171. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +51 -0
  172. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +1 -0
  173. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +18 -0
  174. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +67 -0
  175. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +82 -0
  176. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +11 -0
  177. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +46 -0
  178. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +16 -0
  179. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +10 -0
  180. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +1102 -0
  181. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +29 -0
  182. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +77 -0
  183. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +1 -0
  184. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +12 -0
  185. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +28 -0
  186. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +395 -0
  187. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +13 -0
  188. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +116 -0
  189. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +1 -0
  190. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +67 -0
  191. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +67 -0
  192. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +1 -0
  193. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +99 -0
  194. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +217 -0
  195. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +1 -0
  196. package/@tencent/polaris/dist/plugins/registry/memory.d.ts +10 -0
  197. package/@tencent/polaris/dist/plugins/registry/memory.js +50 -0
  198. package/@tencent/polaris/dist/plugins/registry/memory.js.map +1 -0
  199. package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +51 -0
  200. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +145 -0
  201. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +1 -0
  202. package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +11 -0
  203. package/@tencent/polaris/dist/plugins/router/polaris/rule.js +174 -0
  204. package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +1 -0
  205. package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +25 -0
  206. package/@tencent/polaris/dist/plugins/router/trpc/canary.js +36 -0
  207. package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +1 -0
  208. package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +10 -0
  209. package/@tencent/polaris/dist/plugins/router/trpc/env.js +34 -0
  210. package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +1 -0
  211. package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +56 -0
  212. package/@tencent/polaris/dist/plugins/router/trpc/set.js +106 -0
  213. package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +1 -0
  214. package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +31 -0
  215. package/@tencent/polaris/dist/plugins/shaping/unirate.js +124 -0
  216. package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +1 -0
  217. package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +61 -0
  218. package/@tencent/polaris/dist/plugins/shaping/warmup.js +171 -0
  219. package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +1 -0
  220. package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +23 -0
  221. package/@tencent/polaris/dist/plugins/weight/polaris.js +159 -0
  222. package/@tencent/polaris/dist/plugins/weight/polaris.js.map +1 -0
  223. package/@tencent/polaris/dist/plugins.d.ts +619 -0
  224. package/@tencent/polaris/dist/plugins.js +91 -0
  225. package/@tencent/polaris/dist/plugins.js.map +1 -0
  226. package/@tencent/polaris/dist/polaris.d.ts +33 -0
  227. package/@tencent/polaris/dist/polaris.js +59 -0
  228. package/@tencent/polaris/dist/polaris.js.map +1 -0
  229. package/@tencent/polaris/dist/provider/index.d.ts +102 -0
  230. package/@tencent/polaris/dist/provider/index.js +168 -0
  231. package/@tencent/polaris/dist/provider/index.js.map +1 -0
  232. package/@tencent/polaris/dist/registry.d.ts +174 -0
  233. package/@tencent/polaris/dist/registry.js +660 -0
  234. package/@tencent/polaris/dist/registry.js.map +1 -0
  235. package/@tencent/polaris/dist/rules.d.ts +163 -0
  236. package/@tencent/polaris/dist/rules.js +24 -0
  237. package/@tencent/polaris/dist/rules.js.map +1 -0
  238. package/@tencent/polaris/dist/scripts/postinstall.d.ts +1 -0
  239. package/@tencent/polaris/dist/scripts/postinstall.js +71 -0
  240. package/@tencent/polaris/dist/scripts/postinstall.js.map +1 -0
  241. package/@tencent/polaris/dist/service.d.ts +18 -0
  242. package/@tencent/polaris/dist/service.js +3 -0
  243. package/@tencent/polaris/dist/service.js.map +1 -0
  244. package/@tencent/polaris/dist/skeleton.d.ts +87 -0
  245. package/@tencent/polaris/dist/skeleton.js +282 -0
  246. package/@tencent/polaris/dist/skeleton.js.map +1 -0
  247. package/@tencent/polaris/dist/utils.d.ts +36 -0
  248. package/@tencent/polaris/dist/utils.js +74 -0
  249. package/@tencent/polaris/dist/utils.js.map +1 -0
  250. package/@tencent/polaris/dist/weak.d.ts +11 -0
  251. package/@tencent/polaris/dist/weak.js +44 -0
  252. package/@tencent/polaris/dist/weak.js.map +1 -0
  253. package/@tencent/polaris/package.json +114 -0
  254. package/README.md +61 -0
  255. package/cursor-setting.png +0 -0
  256. package/index.js +16 -0
  257. package/index.js.map +1 -0
  258. package/mcp-server-prompt.png +0 -0
  259. package/mcp.json +8 -0
  260. package/package.json +49 -0
  261. package/resource/doc/tuicallkit/android/.gitkeep +0 -0
  262. package/resource/doc/tuicallkit/android/api_TUICallKit.md +610 -0
  263. package/resource/doc/tuicallkit/android/api_TUICallObserver.md +784 -0
  264. package/resource/doc/tuicallkit/android/how_to_integrated_android_callkit.md +286 -0
  265. package/resource/doc/tuicallkit/faq/faq.md +127 -0
  266. package/resource/doc/tuicallkit/flutter/api_TUICallDefine.md +938 -0
  267. package/resource/doc/tuicallkit/flutter/api_TUICallKit.md +469 -0
  268. package/resource/doc/tuicallkit/flutter/api_TUICallObserver.md +897 -0
  269. package/resource/doc/tuicallkit/flutter/how_to_integrated_flutter_callkit.md +226 -0
  270. package/resource/doc/tuicallkit/flutter/how_to_run_flutter_callkit_demo.md +101 -0
  271. package/resource/doc/tuicallkit/iOS/api_TUICallKit.md +398 -0
  272. package/resource/doc/tuicallkit/iOS/api_TUICallObserver.md +781 -0
  273. package/resource/doc/tuicallkit/iOS/how_to_integrated_iOS_callkit.md +268 -0
  274. package/resource/doc/tuicallkit/iOS/how_to_run_iOS_callkit_demo.md +98 -0
  275. package/resource/doc/tuicallkit/react/.gitkeep +0 -0
  276. package/resource/doc/tuicallkit/react/api_TUICallKit.md +354 -0
  277. package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +166 -0
  278. package/resource/doc/tuicallkit/react/how_to_run_react_callkit_demo.md +61 -0
  279. package/resource/doc/tuicallkit/vue/.gitkeep +0 -0
  280. package/resource/doc/tuicallkit/vue/api_TUICallKit.md +354 -0
  281. package/resource/doc/tuicallkit/vue/how_to_integrated_vue_callkit.md +187 -0
  282. package/resource/doc/tuicallkit/vue/how_to_run_vue_callkit_demo.md +61 -0
  283. package/server.js +132 -0
  284. package/server.js.map +1 -0
  285. package/streamableHttp.js +74 -0
  286. package/streamableHttp.js.map +1 -0
@@ -0,0 +1,784 @@
1
+ ## TUICallObserver APIs
2
+
3
+ `TUICallObserver` is the callback class of `TUICallEngine`. You can use it to listen for events.
4
+
5
+ ## Overview
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" >[onError](https://write.woa.com/document/95824769596342272)</td>
15
+
16
+ <td rowspan="1" colSpan="1" >A call occurred during the call.</td>
17
+ </tr>
18
+
19
+ <tr>
20
+ <td rowspan="1" colSpan="1" >[onCallReceived](https://write.woa.com/document/95824769596342272)</td>
21
+
22
+ <td rowspan="1" colSpan="1" >A call invitation was received.</td>
23
+ </tr>
24
+
25
+ <tr>
26
+ <td rowspan="1" colSpan="1" >[onCallBegin](https://write.woa.com/document/95824769596342272)</td>
27
+
28
+ <td rowspan="1" colSpan="1" >The call was connected.</td>
29
+ </tr>
30
+
31
+ <tr>
32
+ <td rowspan="1" colSpan="1" >[onCallEnd](https://write.woa.com/document/95824769596342272)</td>
33
+
34
+ <td rowspan="1" colSpan="1" >The call ended.</td>
35
+ </tr>
36
+
37
+ <tr>
38
+ <td rowspan="1" colSpan="1" >[onCallNotConnected](https://write.woa.com/document/95824769596342272)</td>
39
+
40
+ <td rowspan="1" colSpan="1" >The call not connected.</td>
41
+ </tr>
42
+
43
+ <tr>
44
+ <td rowspan="1" colSpan="1" >[onUserReject](https://write.woa.com/document/95824769596342272)</td>
45
+
46
+ <td rowspan="1" colSpan="1" >A user declined the call.</td>
47
+ </tr>
48
+
49
+ <tr>
50
+ <td rowspan="1" colSpan="1" >[onUserNoResponse](https://write.woa.com/document/95824769596342272)</td>
51
+
52
+ <td rowspan="1" colSpan="1" >A user didn't respond.</td>
53
+ </tr>
54
+
55
+ <tr>
56
+ <td rowspan="1" colSpan="1" >[onUserLineBusy](https://write.woa.com/document/95824769596342272)</td>
57
+
58
+ <td rowspan="1" colSpan="1" >A user was busy.</td>
59
+ </tr>
60
+
61
+ <tr>
62
+ <td rowspan="1" colSpan="1" >[onUserInviting](https://write.woa.com/document/95824769596342272)</td>
63
+
64
+ <td rowspan="1" colSpan="1" >A user is invited to join a call.</td>
65
+ </tr>
66
+
67
+ <tr>
68
+ <td rowspan="1" colSpan="1" >[onUserJoin](https://write.woa.com/document/95824769596342272)</td>
69
+
70
+ <td rowspan="1" colSpan="1" >A user joined the call.</td>
71
+ </tr>
72
+
73
+ <tr>
74
+ <td rowspan="1" colSpan="1" >[onUserLeave](https://write.woa.com/document/95824769596342272)</td>
75
+
76
+ <td rowspan="1" colSpan="1" >A user left the call.</td>
77
+ </tr>
78
+
79
+ <tr>
80
+ <td rowspan="1" colSpan="1" >[onUserVideoAvailable](https://write.woa.com/document/95824769596342272)</td>
81
+
82
+ <td rowspan="1" colSpan="1" >Whether a user had a video stream.</td>
83
+ </tr>
84
+
85
+ <tr>
86
+ <td rowspan="1" colSpan="1" >[onUserAudioAvailable](https://write.woa.com/document/95824769596342272)</td>
87
+
88
+ <td rowspan="1" colSpan="1" >Whether a user had an audio stream.</td>
89
+ </tr>
90
+
91
+ <tr>
92
+ <td rowspan="1" colSpan="1" >[onUserVoiceVolumeChanged](https://write.woa.com/document/95824769596342272)</td>
93
+
94
+ <td rowspan="1" colSpan="1" >The volume levels of all users.</td>
95
+ </tr>
96
+
97
+ <tr>
98
+ <td rowspan="1" colSpan="1" >[onUserNetworkQualityChanged](https://write.woa.com/document/95824769596342272)</td>
99
+
100
+ <td rowspan="1" colSpan="1" >The network quality of all users.</td>
101
+ </tr>
102
+
103
+ <tr>
104
+ <td rowspan="1" colSpan="1" >[onKickedOffline](https://write.woa.com/document/95824769596342272)</td>
105
+
106
+ <td rowspan="1" colSpan="1" >The current user was kicked offline.</td>
107
+ </tr>
108
+
109
+ <tr>
110
+ <td rowspan="1" colSpan="1" >[onUserSigExpired](https://write.woa.com/document/95824769596342272)</td>
111
+
112
+ <td rowspan="1" colSpan="1" >The user sig is expired.</td>
113
+ </tr>
114
+ </table>
115
+
116
+
117
+ ## Details
118
+
119
+ ### onError
120
+
121
+ An error occurred.
122
+
123
+ > **Note:**
124
+ >
125
+
126
+ > This callback indicates that the SDK encountered an unrecoverable error. Such errors must be listened for, and UI reminders should be sent to users if necessary.
127
+ >
128
+
129
+ ``` java
130
+ void onError(int code, String message);
131
+ ```
132
+
133
+ The parameters are described below:
134
+ <table>
135
+ <tr>
136
+ <td rowspan="1" colSpan="1" >Parameter</td>
137
+
138
+ <td rowspan="1" colSpan="1" >Type</td>
139
+
140
+ <td rowspan="1" colSpan="1" >Description</td>
141
+ </tr>
142
+
143
+ <tr>
144
+ <td rowspan="1" colSpan="1" >code</td>
145
+
146
+ <td rowspan="1" colSpan="1" >int</td>
147
+
148
+ <td rowspan="1" colSpan="1" >The error code.</td>
149
+ </tr>
150
+
151
+ <tr>
152
+ <td rowspan="1" colSpan="1" >message</td>
153
+
154
+ <td rowspan="1" colSpan="1" >String</td>
155
+
156
+ <td rowspan="1" colSpan="1" >The error message.</td>
157
+ </tr>
158
+ </table>
159
+
160
+
161
+ ### onCallReceived
162
+
163
+ A call invitation was received. This callback is received by an invitee. You can listen for this event to determine whether to display the incoming call view.
164
+ ``` java
165
+ void onCallReceived(String callId, String callerId, List<String> calleeIdList,
166
+ TUICallDefine.MediaType mediaType, TUICallDefine.CallObserverExtraInfo info);
167
+ ```
168
+
169
+ The parameters are described below:
170
+ <table>
171
+ <tr>
172
+ <td rowspan="1" colSpan="1" >Parameter</td>
173
+
174
+ <td rowspan="1" colSpan="1" >Type</td>
175
+
176
+ <td rowspan="1" colSpan="1" >Description</td>
177
+ </tr>
178
+
179
+ <tr>
180
+ <td rowspan="1" colSpan="1" >callId</td>
181
+
182
+ <td rowspan="1" colSpan="1" >String</td>
183
+
184
+ <td rowspan="1" colSpan="1" >Unique ID of this call</td>
185
+ </tr>
186
+
187
+ <tr>
188
+ <td rowspan="1" colSpan="1" >callerId</td>
189
+
190
+ <td rowspan="1" colSpan="1" >String</td>
191
+
192
+ <td rowspan="1" colSpan="1" >Caller ID </td>
193
+ </tr>
194
+
195
+ <tr>
196
+ <td rowspan="1" colSpan="1" >calleeIdList</td>
197
+
198
+ <td rowspan="1" colSpan="1" >List<String></td>
199
+
200
+ <td rowspan="1" colSpan="1" >Callee ID List</td>
201
+ </tr>
202
+
203
+ <tr>
204
+ <td rowspan="1" colSpan="1" >mediaType</td>
205
+
206
+ <td rowspan="1" colSpan="1" >[TUICallDefine.MediaType](https://write.woa.com/document/114029061195374592)</td>
207
+
208
+ <td rowspan="1" colSpan="1" >The call type, which can be video or audio.</td>
209
+ </tr>
210
+
211
+ <tr>
212
+ <td rowspan="1" colSpan="1" >info</td>
213
+
214
+ <td rowspan="1" colSpan="1" >[TUICallDefine.CallObserverExtraInfo](https://write.woa.com/document/114029061195374592)</td>
215
+
216
+ <td rowspan="1" colSpan="1" >Extended information</td>
217
+ </tr>
218
+ </table>
219
+
220
+
221
+ ### onCallBegin
222
+
223
+ The call was connected. This callback is received by both the inviter and invitees. You can listen for this event to determine whether to start on-cloud recording, content moderation, or other tasks.
224
+ ``` java
225
+ void onCallBegin(String callId, TUICallDefine.MediaType mediaType, TUICallDefine.CallObserverExtraInfo info);
226
+ ```
227
+
228
+ The parameters are described below:
229
+ <table>
230
+ <tr>
231
+ <td rowspan="1" colSpan="1" >Parameter</td>
232
+
233
+ <td rowspan="1" colSpan="1" >Type</td>
234
+
235
+ <td rowspan="1" colSpan="1" >Description</td>
236
+ </tr>
237
+
238
+ <tr>
239
+ <td rowspan="1" colSpan="1" >callId</td>
240
+
241
+ <td rowspan="1" colSpan="1" >String</td>
242
+
243
+ <td rowspan="1" colSpan="1" >Unique ID of this call</td>
244
+ </tr>
245
+
246
+ <tr>
247
+ <td rowspan="1" colSpan="1" >mediaType</td>
248
+
249
+ <td rowspan="1" colSpan="1" >[TUICallDefine.MediaType](https://write.woa.com/document/114029061195374592)</td>
250
+
251
+ <td rowspan="1" colSpan="1" >The call type, which can be video or audio.</td>
252
+ </tr>
253
+
254
+ <tr>
255
+ <td rowspan="1" colSpan="1" >info</td>
256
+
257
+ <td rowspan="1" colSpan="1" >[TUICallDefine.CallObserverExtraInfo](https://write.woa.com/document/114029061195374592)</td>
258
+
259
+ <td rowspan="1" colSpan="1" >Extended information</td>
260
+ </tr>
261
+ </table>
262
+
263
+
264
+ ### onCallEnd
265
+
266
+ The call ended. This callback is received by both the inviter and invitees. You can listen for this event to determine when to display call information such as call duration and call type, or stop on-cloud recording.
267
+ ``` java
268
+ void onCallEnd(String callId, TUICallDefine.MediaType mediaType, TUICallDefine.CallEndReason reason,
269
+ String userId, long totalTime, TUICallDefine.CallObserverExtraInfo info);
270
+ ```
271
+
272
+ The parameters are described below:
273
+ <table>
274
+ <tr>
275
+ <td rowspan="1" colSpan="1" >Parameter</td>
276
+
277
+ <td rowspan="1" colSpan="1" >Type</td>
278
+
279
+ <td rowspan="1" colSpan="1" >Description</td>
280
+ </tr>
281
+
282
+ <tr>
283
+ <td rowspan="1" colSpan="1" >callId</td>
284
+
285
+ <td rowspan="1" colSpan="1" >String</td>
286
+
287
+ <td rowspan="1" colSpan="1" >Unique ID of this call</td>
288
+ </tr>
289
+
290
+ <tr>
291
+ <td rowspan="1" colSpan="1" >mediaType</td>
292
+
293
+ <td rowspan="1" colSpan="1" >[TUICallDefine.MediaType](https://write.woa.com/document/114029061195374592)</td>
294
+
295
+ <td rowspan="1" colSpan="1" >The call type, which can be video or audio.</td>
296
+ </tr>
297
+
298
+ <tr>
299
+ <td rowspan="1" colSpan="1" >reason</td>
300
+
301
+ <td rowspan="1" colSpan="1" >[TUICallDefine.CallEndReason](https://write.woa.com/document/114029061195374592)</td>
302
+
303
+ <td rowspan="1" colSpan="1" >Call end reason</td>
304
+ </tr>
305
+
306
+ <tr>
307
+ <td rowspan="1" colSpan="1" >userId</td>
308
+
309
+ <td rowspan="1" colSpan="1" >String</td>
310
+
311
+ <td rowspan="1" colSpan="1" >​​Ended by user ID</td>
312
+ </tr>
313
+
314
+ <tr>
315
+ <td rowspan="1" colSpan="1" >totalTime</td>
316
+
317
+ <td rowspan="1" colSpan="1" >long</td>
318
+
319
+ <td rowspan="1" colSpan="1" >The call duration.</td>
320
+ </tr>
321
+
322
+ <tr>
323
+ <td rowspan="1" colSpan="1" >info</td>
324
+
325
+ <td rowspan="1" colSpan="1" >[TUICallDefine.CallObserverExtraInfo](https://write.woa.com/document/114029061195374592)</td>
326
+
327
+ <td rowspan="1" colSpan="1" >Extended information</td>
328
+ </tr>
329
+ </table>
330
+
331
+
332
+ > **Note:**
333
+ >
334
+
335
+ > Client-side callbacks are often lost when errors occur, for example, when the process is closed. If you need to measure the duration of a call for billing or other purposes, we recommend you use the RESTful API.
336
+ >
337
+
338
+
339
+ ### onCallNotConnected
340
+
341
+ The call was canceled by the inviter or timed out. This callback is received by an invitee. You can listen for this event to determine whether to show a missed call message.
342
+
343
+ This indicates that the call was canceled by the caller, timed out by the callee, rejected by the callee, or the callee was busy. There are multiple scenarios involved. You can listen to this event to achieve UI logic such as missed calls and resetting UI status.
344
+ - Call cancellation by the caller: The caller receives the callback (userId is himself); the callee receives the callback (userId is the ID of the caller)
345
+
346
+ - Callee timeout: the caller will simultaneously receive the [onUserNoResponse](https://write.woa.com/document/95824769596342272) and onCallNotConnected callbacks (userId is his own ID); the callee receives the onCallNotConnected callback (userId is his own ID)
347
+
348
+ - Callee rejection: The caller will simultaneously receive the [onUserReject](https://write.woa.com/document/95824769596342272) and onCallNotConnected callbacks (userId is his own ID); the callee receives the onCallNotConnected callback (userId is his own ID)
349
+
350
+ - Callee busy: The caller will simultaneously receive the [onUserLineBusy](https://write.woa.com/document/95824769596342272) and onCallNotConnected callbacks (userId is his own ID);
351
+
352
+ - Abnormal interruption: The callee failed to receive the call ,he receives this callback (userId is his own ID).
353
+
354
+ ``` java
355
+ void onCallNotConnected(String callId, TUICallDefine.MediaType mediaType, TUICallDefine.CallEndReason reason,
356
+ String userId, TUICallDefine.CallObserverExtraInfo info);
357
+ ```
358
+
359
+ The parameters are described below:
360
+
361
+ <table>
362
+ <tr>
363
+ <td rowspan="1" colSpan="1" >Parameter</td>
364
+
365
+ <td rowspan="1" colSpan="1" >Type</td>
366
+
367
+ <td rowspan="1" colSpan="1" >Description</td>
368
+ </tr>
369
+
370
+ <tr>
371
+ <td rowspan="1" colSpan="1" >callId</td>
372
+
373
+ <td rowspan="1" colSpan="1" >String</td>
374
+
375
+ <td rowspan="1" colSpan="1" >Unique ID of this call</td>
376
+ </tr>
377
+
378
+ <tr>
379
+ <td rowspan="1" colSpan="1" >mediaType</td>
380
+
381
+ <td rowspan="1" colSpan="1" >[TUICallDefine.MediaType](https://write.woa.com/document/114029061195374592)</td>
382
+
383
+ <td rowspan="1" colSpan="1" >The call type, which can be video or audio.</td>
384
+ </tr>
385
+
386
+ <tr>
387
+ <td rowspan="1" colSpan="1" >reason</td>
388
+
389
+ <td rowspan="1" colSpan="1" >[TUICallDefine.CallEndReason](https://write.woa.com/document/114029061195374592)</td>
390
+
391
+ <td rowspan="1" colSpan="1" >Call end reason</td>
392
+ </tr>
393
+
394
+ <tr>
395
+ <td rowspan="1" colSpan="1" >userId</td>
396
+
397
+ <td rowspan="1" colSpan="1" >String</td>
398
+
399
+ <td rowspan="1" colSpan="1" >​​Not connected by user ID</td>
400
+ </tr>
401
+
402
+ <tr>
403
+ <td rowspan="1" colSpan="1" >info</td>
404
+
405
+ <td rowspan="1" colSpan="1" >[TUICallDefine.CallObserverExtraInfo](https://write.woa.com/document/114029061195374592)</td>
406
+
407
+ <td rowspan="1" colSpan="1" >Extended information</td>
408
+ </tr>
409
+ </table>
410
+
411
+
412
+ ### onUserReject
413
+
414
+ The call was rejected. In a one-to-one call, only the inviter will receive this callback. In a group call, all invitees will receive this callback.
415
+ ``` java
416
+ void onUserReject(String userId);
417
+ ```
418
+
419
+ The parameters are described below:
420
+ <table>
421
+ <tr>
422
+ <td rowspan="1" colSpan="1" >Parameter</td>
423
+
424
+ <td rowspan="1" colSpan="1" >Type</td>
425
+
426
+ <td rowspan="1" colSpan="1" >Description</td>
427
+ </tr>
428
+
429
+ <tr>
430
+ <td rowspan="1" colSpan="1" >userId</td>
431
+
432
+ <td rowspan="1" colSpan="1" >String</td>
433
+
434
+ <td rowspan="1" colSpan="1" >The user ID of the invitee who rejected the call.</td>
435
+ </tr>
436
+ </table>
437
+
438
+
439
+ ### onUserNoResponse
440
+
441
+ A user did not respond.
442
+ ``` java
443
+ void onUserNoResponse(String userId);
444
+ ```
445
+
446
+ The parameters are described below:
447
+ <table>
448
+ <tr>
449
+ <td rowspan="1" colSpan="1" >Parameter</td>
450
+
451
+ <td rowspan="1" colSpan="1" >Type</td>
452
+
453
+ <td rowspan="1" colSpan="1" >Description</td>
454
+ </tr>
455
+
456
+ <tr>
457
+ <td rowspan="1" colSpan="1" >userId</td>
458
+
459
+ <td rowspan="1" colSpan="1" >String</td>
460
+
461
+ <td rowspan="1" colSpan="1" >The user ID of the invitee who did not answer.</td>
462
+ </tr>
463
+ </table>
464
+
465
+
466
+ ### onUserInviting
467
+
468
+ A user is invited to join a call.
469
+ ``` java
470
+ void onUserInviting(String userId);
471
+ ```
472
+
473
+ The parameters are described below:
474
+ <table>
475
+ <tr>
476
+ <td rowspan="1" colSpan="1" >Parameter</td>
477
+
478
+ <td rowspan="1" colSpan="1" >Type</td>
479
+
480
+ <td rowspan="1" colSpan="1" >Description</td>
481
+ </tr>
482
+
483
+ <tr>
484
+ <td rowspan="1" colSpan="1" >userId</td>
485
+
486
+ <td rowspan="1" colSpan="1" >String</td>
487
+
488
+ <td rowspan="1" colSpan="1" >The user ID of the invite.</td>
489
+ </tr>
490
+ </table>
491
+
492
+
493
+ ### onUserLineBusy
494
+
495
+ A user is busy.
496
+ ``` java
497
+ void onUserLineBusy(String userId);
498
+ ```
499
+
500
+ The parameters are described below:
501
+ <table>
502
+ <tr>
503
+ <td rowspan="1" colSpan="1" >Parameter</td>
504
+
505
+ <td rowspan="1" colSpan="1" >Type</td>
506
+
507
+ <td rowspan="1" colSpan="1" >Description</td>
508
+ </tr>
509
+
510
+ <tr>
511
+ <td rowspan="1" colSpan="1" >userId</td>
512
+
513
+ <td rowspan="1" colSpan="1" >String</td>
514
+
515
+ <td rowspan="1" colSpan="1" >The user ID of the invitee who is busy.</td>
516
+ </tr>
517
+ </table>
518
+
519
+
520
+ ### onUserJoin
521
+
522
+ A user joined the call.
523
+ ``` java
524
+ void onUserJoin(String userId);
525
+ ```
526
+
527
+ The parameters are described below:
528
+ <table>
529
+ <tr>
530
+ <td rowspan="1" colSpan="1" >Parameter</td>
531
+
532
+ <td rowspan="1" colSpan="1" >Type</td>
533
+
534
+ <td rowspan="1" colSpan="1" >Description</td>
535
+ </tr>
536
+
537
+ <tr>
538
+ <td rowspan="1" colSpan="1" >userId</td>
539
+
540
+ <td rowspan="1" colSpan="1" >String</td>
541
+
542
+ <td rowspan="1" colSpan="1" >The ID of the user who joined the call.</td>
543
+ </tr>
544
+ </table>
545
+
546
+
547
+ ### onUserLeave
548
+
549
+ A user left the call.
550
+ ``` java
551
+ void onUserLeave(String userId);
552
+ ```
553
+
554
+ The parameters are described below:
555
+ <table>
556
+ <tr>
557
+ <td rowspan="1" colSpan="1" >Parameter</td>
558
+
559
+ <td rowspan="1" colSpan="1" >Type</td>
560
+
561
+ <td rowspan="1" colSpan="1" >Description</td>
562
+ </tr>
563
+
564
+ <tr>
565
+ <td rowspan="1" colSpan="1" >userId</td>
566
+
567
+ <td rowspan="1" colSpan="1" >String</td>
568
+
569
+ <td rowspan="1" colSpan="1" >The ID of the user who left the call.</td>
570
+ </tr>
571
+ </table>
572
+
573
+
574
+ ### onUserVideoAvailable
575
+
576
+ Whether a user is sending video.
577
+ ``` java
578
+ void onUserVideoAvailable(String userId, boolean isVideoAvailable);
579
+ ```
580
+
581
+ The parameters are described below:
582
+ <table>
583
+ <tr>
584
+ <td rowspan="1" colSpan="1" >Parameter</td>
585
+
586
+ <td rowspan="1" colSpan="1" >Type</td>
587
+
588
+ <td rowspan="1" colSpan="1" >Description</td>
589
+ </tr>
590
+
591
+ <tr>
592
+ <td rowspan="1" colSpan="1" >userId</td>
593
+
594
+ <td rowspan="1" colSpan="1" >String</td>
595
+
596
+ <td rowspan="1" colSpan="1" >The user ID.</td>
597
+ </tr>
598
+
599
+ <tr>
600
+ <td rowspan="1" colSpan="1" >isVideoAvailable</td>
601
+
602
+ <td rowspan="1" colSpan="1" >boolean</td>
603
+
604
+ <td rowspan="1" colSpan="1" >Whether the user has video.</td>
605
+ </tr>
606
+ </table>
607
+
608
+
609
+ ### onUserAudioAvailable
610
+
611
+ Whether a user is sending audio.
612
+ ``` java
613
+ void onUserAudioAvailable(String userId, boolean isAudioAvailable);
614
+ ```
615
+
616
+ The parameters are described below:
617
+ <table>
618
+ <tr>
619
+ <td rowspan="1" colSpan="1" >Parameter</td>
620
+
621
+ <td rowspan="1" colSpan="1" >Type</td>
622
+
623
+ <td rowspan="1" colSpan="1" >Description</td>
624
+ </tr>
625
+
626
+ <tr>
627
+ <td rowspan="1" colSpan="1" >userId</td>
628
+
629
+ <td rowspan="1" colSpan="1" >String</td>
630
+
631
+ <td rowspan="1" colSpan="1" >The user ID.</td>
632
+ </tr>
633
+
634
+ <tr>
635
+ <td rowspan="1" colSpan="1" >isAudioAvailable</td>
636
+
637
+ <td rowspan="1" colSpan="1" >boolean</td>
638
+
639
+ <td rowspan="1" colSpan="1" >Whether the user has audio.</td>
640
+ </tr>
641
+ </table>
642
+
643
+
644
+ ### onUserVoiceVolumeChanged
645
+
646
+ The volumes of all users.
647
+ ``` java
648
+ void onUserVoiceVolumeChanged(Map<String, Integer> volumeMap);
649
+ ```
650
+
651
+ The parameters are described below:
652
+ <table>
653
+ <tr>
654
+ <td rowspan="1" colSpan="1" >Parameter</td>
655
+
656
+ <td rowspan="1" colSpan="1" >Type</td>
657
+
658
+ <td rowspan="1" colSpan="1" >Description</td>
659
+ </tr>
660
+
661
+ <tr>
662
+ <td rowspan="1" colSpan="1" >volumeMap</td>
663
+
664
+ <td rowspan="1" colSpan="1" >Map</td>
665
+
666
+ <td rowspan="1" colSpan="1" >The volume table, which includes the volume of each user (`userId`). Value range: 0-100.</td>
667
+ </tr>
668
+ </table>
669
+
670
+
671
+ ### onUserNetworkQualityChanged
672
+
673
+ The network quality of all users.
674
+ ``` java
675
+ void onUserNetworkQualityChanged(List<TUICallDefine.NetworkQualityInfo> networkQualityList);
676
+ ```
677
+
678
+ The parameters are described below:
679
+ <table>
680
+ <tr>
681
+ <td rowspan="1" colSpan="1" >Parameter</td>
682
+
683
+ <td rowspan="1" colSpan="1" >Type</td>
684
+
685
+ <td rowspan="1" colSpan="1" >Description</td>
686
+ </tr>
687
+
688
+ <tr>
689
+ <td rowspan="1" colSpan="1" >networkQualityList</td>
690
+
691
+ <td rowspan="1" colSpan="1" >List</td>
692
+
693
+ <td rowspan="1" colSpan="1" >The current network conditions for all users (`userId`).</td>
694
+ </tr>
695
+ </table>
696
+
697
+
698
+ ### onKickedOffline
699
+
700
+ The current user was kicked offline: At this time, you can prompt the user with a UI message and then invoke `init` again.
701
+ ``` java
702
+ void onKickedOffline();
703
+ ```
704
+
705
+ ### onUserSigExpired
706
+
707
+ The user sig is expired: At this time, you need to generate a new `userSig`, and then invoke `init` again.
708
+ ``` java
709
+ void onUserSigExpired();
710
+ ```
711
+
712
+ ## Deprecated Interface
713
+
714
+ ### onCallCancelled
715
+
716
+ This indicates that the call was canceled by the caller, timed out by the callee, rejected by the callee, or the callee was busy. There are multiple scenarios involved. You can listen to this event to achieve UI logic such as missed calls and resetting UI status.
717
+ - Call cancellation by the caller: The caller receives the callback (userId is himself); the callee receives the callback (userId is the ID of the caller)
718
+
719
+ - Callee timeout: the caller will simultaneously receive the [onUserNoResponse](https://write.woa.com/document/95824769596342272) and onCallCancelled callbacks (userId is his own ID); the callee receives the onCallCancelled callback (userId is his own ID)
720
+
721
+ - Callee rejection: The caller will simultaneously receive the [onUserReject](https://write.woa.com/document/95824769596342272) and onCallCancelled callbacks (userId is his own ID); the callee receives the onCallCancelled callback (userId is his own ID)
722
+
723
+ - Callee busy: The caller will simultaneously receive the [onUserLineBusy](https://write.woa.com/document/95824769596342272) and onCallCancelled callbacks (userId is his own ID);
724
+
725
+ - Abnormal interruption: The callee failed to receive the call ,he receives this callback (userId is his own ID).
726
+
727
+ ``` java
728
+ void onCallCancelled(String userId);
729
+ ```
730
+
731
+ The parameters are described below:
732
+
733
+ <table>
734
+ <tr>
735
+ <td rowspan="1" colSpan="1" >Parameter</td>
736
+
737
+ <td rowspan="1" colSpan="1" >Type</td>
738
+
739
+ <td rowspan="1" colSpan="1" >Description</td>
740
+ </tr>
741
+
742
+ <tr>
743
+ <td rowspan="1" colSpan="1" >userId</td>
744
+
745
+ <td rowspan="1" colSpan="1" >String</td>
746
+
747
+ <td rowspan="1" colSpan="1" >The user ID of the inviter.</td>
748
+ </tr>
749
+ </table>
750
+
751
+
752
+ ### onCallMediaTypeChanged
753
+
754
+ The call type changed.
755
+ ``` java
756
+ void onCallMediaTypeChanged(TUICallDefine.MediaType oldCallMediaType,TUICallDefine.MediaType newCallMediaType);
757
+ ```
758
+
759
+ The parameters are described below:
760
+ <table>
761
+ <tr>
762
+ <td rowspan="1" colSpan="1" >Parameter</td>
763
+
764
+ <td rowspan="1" colSpan="1" >Type</td>
765
+
766
+ <td rowspan="1" colSpan="1" >Description</td>
767
+ </tr>
768
+
769
+ <tr>
770
+ <td rowspan="1" colSpan="1" >oldCallMediaType</td>
771
+
772
+ <td rowspan="1" colSpan="1" >[TUICallDefine.MediaType](https://write.woa.com/document/114029061195374592)</td>
773
+
774
+ <td rowspan="1" colSpan="1" >The call type before the change.</td>
775
+ </tr>
776
+
777
+ <tr>
778
+ <td rowspan="1" colSpan="1" >newCallMediaType</td>
779
+
780
+ <td rowspan="1" colSpan="1" >[TUICallDefine.MediaType](https://write.woa.com/document/114029061195374592)</td>
781
+
782
+ <td rowspan="1" colSpan="1" >The call type after the change.</td>
783
+ </tr>
784
+ </table>