@tencentcloud/trtc-cloud-wx 1.0.7 → 1.0.9-beta.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 (56) hide show
  1. package/.babelrc +6 -0
  2. package/.eslintrc.json +129 -0
  3. package/build/chokidar.js +19 -0
  4. package/build/clear.js +24 -0
  5. package/build/copy.js +24 -0
  6. package/build/copy_to_roomkit.js +19 -0
  7. package/dist/package.json +14 -0
  8. package/{trtc-cloud-wx.js → dist/trtc-cloud-wx.js} +25 -40
  9. package/docs/API/TRTCCloud.html +4353 -0
  10. package/docs/API/index.html +98 -0
  11. package/docs/API/scripts/add-toc.js +57 -0
  12. package/docs/API/scripts/collapse.js +20 -0
  13. package/docs/API/scripts/highlight/highlight.min.js +1282 -0
  14. package/docs/API/scripts/highlight/highlightjs-line-numbers.min.js +1 -0
  15. package/docs/API/scripts/linenumber.js +25 -0
  16. package/docs/API/scripts/nav.js +12 -0
  17. package/docs/API/scripts/polyfill.js +4 -0
  18. package/docs/API/scripts/prettify/Apache-License-2.0.txt +202 -0
  19. package/docs/API/scripts/prettify/lang-css.js +2 -0
  20. package/docs/API/scripts/prettify/prettify.js +28 -0
  21. package/docs/API/scripts/search.js +83 -0
  22. package/docs/API/styles/font.css +81 -0
  23. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3g3D_vx3rCubqg.woff2 +0 -0
  24. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3gTD_vx3rCubqg.woff2 +0 -0
  25. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3gbD_vx3rCubqg.woff2 +0 -0
  26. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3gfD_vx3rCubqg.woff2 +0 -0
  27. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3gnD_vx3rCs.woff2 +0 -0
  28. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2 +0 -0
  29. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459WRhyyTh89ZNpQ.woff2 +0 -0
  30. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459WZhyyTh89ZNpQ.woff2 +0 -0
  31. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2 +0 -0
  32. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2 +0 -0
  33. package/docs/API/styles/highlight/highlight.min.css +26 -0
  34. package/docs/API/styles/highlight/rainbow.min.css +1 -0
  35. package/docs/API/styles/jsdoc.css +684 -0
  36. package/docs/API/styles/prettify.css +79 -0
  37. package/docs/API/styles/toc.css +44 -0
  38. package/docs/API/tutorial-00-guideline.html +81 -0
  39. package/docs/doc-src/home.md +7 -0
  40. package/docs/doc-src/tutorials/00-guideline.md +1 -0
  41. package/docs/doc-src/tutorials/tutorials.json +5 -0
  42. package/jsdoc.json +43 -0
  43. package/package.json +40 -3
  44. package/rollup.config.js +19 -0
  45. package/sdk_publish.bash +5 -0
  46. package/src/TaskMachine.ts +371 -0
  47. package/src/index.ts +1184 -0
  48. package/src/interface/index.ts +45 -0
  49. package/src/interface/types.ts +95 -0
  50. package/src/log/logger.ts +80 -0
  51. package/src/types.d.ts +1 -0
  52. package/src/utils/common.ts +50 -0
  53. package/src/utils/index.ts +2 -0
  54. package/src/utils/translate.ts +139 -0
  55. package/tsconfig.json +15 -0
  56. package/typedoc.json +21 -0
@@ -0,0 +1,98 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>Home - Documentation</title>
7
+
8
+
9
+ <script src="scripts/highlight/highlight.min.js"></script>
10
+ <script src="scripts/highlight/highlightjs-line-numbers.min.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/highlight/rainbow.min.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/highlight/highlight.min.css">
16
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
17
+ <script src="scripts/nav.js" defer></script>
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
+ </head>
20
+ <body>
21
+
22
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
+ <label for="nav-trigger" class="navicon-button x">
24
+ <div class="navicon"></div>
25
+ </label>
26
+
27
+ <label for="nav-trigger" class="overlay"></label>
28
+
29
+ <nav >
30
+
31
+ <input type="text" id="nav-search" placeholder="Search" />
32
+
33
+ <h2><a href="index.html">Home</a></h2><h3>Interfaces</h3><ul><li><a href="TRTCCloud.html">TRTCCloud</a><ul class='methods'><li data-type='method' style='display: none;'><a href="TRTCCloud.html#.getTRTCShareInstance">getTRTCShareInstance</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#.destroyTRTCShareInstance">destroyTRTCShareInstance</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#on">on</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#off">off</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#emit">emit</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#enterRoom">enterRoom</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#exitRoom">exitRoom</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#switchRoom">switchRoom</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#switchRole">switchRole</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#startLocalPreview">startLocalPreview</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#stopLocalPreview">stopLocalPreview</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#updateLocalView">updateLocalView</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#muteLocalVideo">muteLocalVideo</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#startRemoteView">startRemoteView</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#stopRemoteView">stopRemoteView</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#updateRemoteView">updateRemoteView</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#switchCamera">switchCamera</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#.getTRTCShareInstance">getTRTCShareInstance</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#.destroyTRTCShareInstance">destroyTRTCShareInstance</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#on">on</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#off">off</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#emit">emit</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#enterRoom">enterRoom</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#exitRoom">exitRoom</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#switchRoom">switchRoom</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#switchRole">switchRole</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#startLocalPreview">startLocalPreview</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#stopLocalPreview">stopLocalPreview</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#updateLocalView">updateLocalView</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#muteLocalVideo">muteLocalVideo</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#startRemoteView">startRemoteView</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#stopRemoteView">stopRemoteView</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#updateRemoteView">updateRemoteView</a></li><li data-type='method' style='display: none;'><a href="TRTCCloud.html#switchCamera">switchCamera</a></li></ul></li></ul><h3>Tutorials</h3><ul><li><a href="tutorial-00-guideline.html">ChatEngine 使用指引</a></li></ul>
34
+ </nav>
35
+
36
+ <div id="main">
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <section class="package">
47
+ <h3> </h3>
48
+ </section>
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+ <section class="readme">
63
+ <article><h1>腾讯云即时通信 IM SDK</h1>
64
+ <h2>简介</h2>
65
+ <p>腾讯是国内最早也是最大的即时通信开发商,QQ 和微信已经成为每个互联网用户必不可少的应用。顺应行业数字化转型的趋势,腾讯将高并发、高可靠的即时通信能力进行开放,您可以轻易地根据腾讯提供的 SDK 将即时通信功能集成到 App 中,来满足您业务的各种需求。<br/>
66
+ 针对开发者的不同阶段需求及不同场景,即时通信 IM 团队提供了一系列解决方案,包括:Android、iOS、Windows、Web 的 SDK 组件、服务端集成 REST API 接口、第三方回调接口 等。利用这些组件和能力,开发者可以简单快捷地构建高可靠且稳定的即时通信产品,随心所想,触达全球。</p>
67
+ <p>ChatEngine 基于腾讯云即时通讯 IM SDK 底层能力实现业务逻辑层核心逻辑封装,支持在 Web 网页、H5、微信小程序、uniapp 等平台下接入使用。</p></article>
68
+ </section>
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <br class="clear">
80
+
81
+ <footer>
82
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Mon Apr 24 2023 16:55:54 GMT+0800 (China Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
83
+ </footer>
84
+
85
+ <script>
86
+ hljs.highlightAll({cssSelector:'highlight'});
87
+ hljs.initLineNumbersOnLoad();
88
+ </script>
89
+ <script src="scripts/polyfill.js"></script>
90
+
91
+ <script src="scripts/search.js" defer></script>
92
+
93
+
94
+ <script src="scripts/collapse.js" defer></script>
95
+
96
+
97
+ </body>
98
+ </html>
@@ -0,0 +1,57 @@
1
+ /* eslint-disable no-inner-declarations */
2
+ /* eslint-disable require-jsdoc */
3
+ // 给 tutorials 文章新增目录功能
4
+ if (location.href.includes('tutorial') && typeof tocbot !== 'undefined') {
5
+
6
+ // var link = document.createElement('link');
7
+ // link.type = 'text/css';
8
+ // link.rel = 'stylesheet';
9
+ // link.href = 'styles/toc.css';
10
+ // var head = document.getElementsByTagName('head')[0];
11
+ // head.appendChild(link);
12
+
13
+ const tocContainer = document.createElement('div');
14
+ tocContainer.setAttribute('id', 'toc-container');
15
+ const articleElement = document.getElementsByTagName('article')[0];
16
+ articleElement.insertAdjacentElement('afterend', tocContainer);
17
+ [...document.getElementsByTagName('h1')].forEach(
18
+ (element, index) => (element.id = `h1-${index}`)
19
+ );
20
+ [...document.getElementsByTagName('h2')].forEach(
21
+ (element, index) => (element.id = `h2-${index}`)
22
+ );
23
+ [...document.getElementsByTagName('h3')].forEach(
24
+ (element, index) => (element.id = `h3-${index}`)
25
+ );
26
+
27
+ tocbot.init({
28
+ // Where to render the table of contents.
29
+ tocSelector: '#toc-container',
30
+ // Where to grab the headings to build the table of contents.
31
+ contentSelector: 'article',
32
+ // Which headings to grab inside of the contentSelector element.
33
+ headingSelector: 'h1, h2',
34
+ // For headings inside relative or absolute positioned containers within content.
35
+ hasInnerContainers: false
36
+ });
37
+ // 文章滚动时,目录自动滚动到 active 的 li 标签。
38
+ function handleScroll() {
39
+ const toc = document.querySelector('#toc-container');
40
+ const active = document.querySelector('.is-active-li');
41
+ // 向下滚动 active li 超出目录栏、向上滚动时 active li 超出目录栏,则滚动到 active li 位置
42
+ if (
43
+ active.getBoundingClientRect().bottom - 100 > toc.clientHeight ||
44
+ active.getBoundingClientRect().top - 100 < 0
45
+ ) {
46
+ toc.scrollTo({ top: active.offsetTop, behavior: 'smooth' });
47
+ }
48
+ }
49
+ function debounce(fn, wait) {
50
+ var timeout = null;
51
+ return function() {
52
+ if (timeout !== null) clearTimeout(timeout);
53
+ timeout = setTimeout(fn, wait);
54
+ };
55
+ }
56
+ document.onscroll = debounce(handleScroll, 100);
57
+ }
@@ -0,0 +1,20 @@
1
+ function hideAllButCurrent(){
2
+ //by default all submenut items are hidden
3
+ //but we need to rehide them for search
4
+ document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) {
5
+ parent.style.display = "none";
6
+ });
7
+
8
+ //only current page (if it exists) should be opened
9
+ var file = window.location.pathname.split("/").pop().replace(/\.html/, '');
10
+ document.querySelectorAll("nav > ul > li > a").forEach(function(parent) {
11
+ var href = parent.attributes.href.value.replace(/\.html/, '');
12
+ if (file === href) {
13
+ parent.parentNode.querySelectorAll("ul li").forEach(function(elem) {
14
+ elem.style.display = "block";
15
+ });
16
+ }
17
+ });
18
+ }
19
+
20
+ hideAllButCurrent();