Comments (3)
你好,SDK 是经过混淆压缩的,没办法 Tree Shaking。
5.0 版本的 SDK 只保留了核心通话相关的 API,其他功能以插件形式提供,例如美颜、混音、AI 降噪。
from trtc_web.
Tree Shaking 和 代码是否混淆压缩应该没有关系吧?
如果不支持Tree Shaking的话,打出 ESM 的包意义何在?
from trtc_web.
Tree Shaking 和 代码是否混淆压缩应该没有关系吧?
如果不支持Tree Shaking的话,打出 ESM 的包意义何在?
你好,我理解您的需求是:业务侧没使用到的 API 不需要进行打包。
目前 SDK 是混淆压缩后,以单个主包 + n 个插件包的形式提供的,主包提供核心的音视频通话功能,不能再进一步 Tree Shaking 了。
ESM 包保留了 ES6 的语法,为了支持业务侧在 ESM 模块的项目中使用。
默认的 trtc.js 是 UMD 模块的,做了 ES6 转 ES5 的处理。
from trtc_web.
Related Issues (14)
- getDisplayMedia api能否获取到4K的高清分辨率? HOT 1
- Where is the license terms? HOT 1
- 怎样将采集的本地音频流,获取出来有相应的接口吗 HOT 1
- trtc.startLocalVideo 中的参数 config.view 要求 HOT 2
- 直播流能区分客户端吗? HOT 2
- 5.x不支持辅流自定义采集 HOT 4
- 用户进房事件
- 加入房间时报错 UNKNOWN_ERROR: 'enterRoom' throw unknown exception, error: TypeError: Cannot read properties of undefined (reading 'userId'). HOT 5
- local暂停摄像头采集后恢复,remote无法恢复 HOT 5
- linux下没有对应的SDK,目前只能通过webRTC实现么 HOT 3
- 是否支持多端语音通话,仅有一端发布视频流,其余可以观看该直播和语音连麦。 HOT 1
- H5端在当前页面视频录制后没有声音?IOS无法播放语音 HOT 10
- [Q&A]改变了宫格布局,DOM结构变化了,如何重新更新显示? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trtc_web.