Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

trtc-electron-sdk

Package Overview
Dependencies
Maintainers
1
Versions
543
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trtc-electron-sdk - npm Package Compare versions

Comparing version 6.6.28 to 6.6.67

release-mac.sh

2

package.json
{
"name": "trtc-electron-sdk",
"version": "6.6.28",
"version": "6.6.67",
"description": "",

@@ -5,0 +5,0 @@ "main": "./liteav/trtc.js",

@@ -29,3 +29,4 @@ # TRTC on Electron

#### 发布npm包
- 修改版本号(package.json中version字段)
- 在蓝盾上找到要发的构建版本(http://devops.oa.com/console/pipeline/ecc/p-d5a7e359f7774b24bd9b33f9482851d2/history)
- 修改版本号(package.json中version字段,与蓝盾的版本号一致)
- 修改包的main字段 (package.json中"main": "./liteav/trtc.js",原因当前库指向demo)

@@ -42,39 +43,20 @@ - 增加下载命令 (package.json中script项中,增加 "install": "npm run download")

#### 整理接口
- 接口已补全
- Render绘制上填充模式和旋转,需要多细测试;
- 原则: 尽量按TRTC接口,没有的接口参考声网
- 新增设置绘制的模式,暂时软方式
- 自定义音视频采集和渲染,放二期
- setVideoEncoderRotation() ,trtc native接口有问题,已改
- setCurrentSpeakerVolume() ,trtc native接口有问题,暂未改
- mac上摄像头出数据慢,且开始会黑屏的情况,需要再确认下.
- 在win和mac平台,对接口需要更多的测试;
#### 性能:
##### 测试场景:
- 共6个用户在同一房间(一台PC、一台mac、4台手机),6个用户上行视频,其中PC用户同时上行辅路视频,4个手机端上行分辨率640x360;
- trtc Electron运行于mac端,通过活动监视器采集CPU情况, mac端 CPU 2.6 GHz Intel Core i7, 6核, 16G内存;
- mac端的trtc electron demo同时显示自已和另5位用户的视频,另包括一路辅路视频,显示分辨率480x320;
##### 结论:
- webGL的绘制CPU占用62%, 性能还不错。 内存350M.
- 在使用YUV-canvas进行绘制,CPU占用87%, 比webGL性能差20%,也还在可接受范围,内存390M.
#### 文档和demo:
- 已经整理接入文档和接口文档,参照native方式;
- 计划将demo和文档暂放到gitee上,方便用户更新;
- demo暂时只是开发用demo, 需要更加完善;
#### 开发进度
- 今天晚上发码云
- TRTC Electron Demo 视频流程 ok,可以和正常视频通话;
- 屏幕分享部分的接口测试,已经ok;
- 接口完成度80%,后面的20%接口主要体力活。
- 时间节点: 26号;
#### 缺失和问题
- 打包成库,周三提供包给saas;
- 20%的接口补全;
- 显示上有点方块;
#### 分工
- jasonxiao win
- sevenzhu mac

@@ -11,3 +11,2 @@ const download = require('download')

} = require('./utils');
const { DependentElectronVersion } = require('./constant')

@@ -19,10 +18,4 @@ const buildDownloadInfo = () => {

const { version } = detectOwnVersion();
signale.info('buildDownloadInfo 1=', version);
// const version = '2.4.0-beta'
// build electron dependent label
const {
electron_version
} = require("optimist").argv;
const dependentElectronVersion = detectElectronVersion(electron_version);
signale.info('buildDownloadInfo 2=', dependentElectronVersion);
signale.info('buildDownloadInfo =', version);
// generate download url

@@ -32,4 +25,3 @@ return {

platform: osLabel,
dependentElectronVersion: dependentElectronVersion,
downloadUrl: `https://tic-res-1259648581.cos.ap-shanghai.myqcloud.com/trtc_electron/release/trtc-electron-${osLabel}-${dependentElectronVersion}.zip`
downloadUrl: `https://tic-res-1259648581.cos.ap-shanghai.myqcloud.com/trtc_electron/release/${version}/trtc-electron-${osLabel}-${version}.zip`
};

@@ -42,3 +34,2 @@ };

platform,
dependentElectronVersion,
downloadUrl

@@ -68,3 +59,2 @@ } = buildDownloadInfo();

signale.info('Platform =', platform);
signale.info('Dependent Electron Version =', dependentElectronVersion);
signale.info('Download Url =', downloadUrl, '\n');

@@ -71,0 +61,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc