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

@tencentcloud/call-uikit-wechat

Package Overview
Dependencies
Maintainers
14
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tencentcloud/call-uikit-wechat - npm Package Compare versions

Comparing version 2.1.5-beta.0 to 2.1.5

static/groupCall-switch_camera.svg

2

index.d.ts
import { TUIGlobal, TUIStore, StoreName, TUICallKitServer, NAME, StatusChange as STATUS, CallRole, CallMediaType, VideoResolution, VideoDisplayMode, t } from './TUICallService/index';
declare const Version = "2.1.5-beta.0";
declare const Version = "2.1.5";
export { TUIGlobal, TUIStore, StoreName, TUICallKitServer, NAME, STATUS, CallRole, CallMediaType, VideoResolution, VideoDisplayMode, Version, t, };

@@ -16,3 +16,3 @@ "use strict";

Object.defineProperty(exports, "t", { enumerable: true, get: function () { return index_1.t; } });
const Version = '2.1.5-beta.0'; // basic-demo 原来上报使用
const Version = '2.1.5'; // basic-demo 原来上报使用
exports.Version = Version;
{
"name": "@tencentcloud/call-uikit-wechat",
"version": "2.1.5-beta.0",
"version": "2.1.5",
"main": "./tuicall-uikit-vue.umd.js",

@@ -5,0 +5,0 @@ "module": "./tuicall-uikit-vue.es.js",

@@ -38,17 +38,24 @@ import { TUICallKitServer } from "../../../TUICallService/index";

},
enableVirtualBackground: {
type: Boolean,
},
isVirtualBackground: {
type: Boolean,
},
},
data: {
renderStreamList: [],
IMG_DEFAULT_AVATAR:`${PATH}/default_avatar.png`,
IMG_LOADING:`${PATH}/loading.png`,
IMG_HANGUP:`${PATH}/hangup.png`,
IMG_DEFAULT_AVATAR: `${PATH}/default_avatar.png`,
IMG_LOADING: `${PATH}/loading.png`,
IMG_HANGUP: `${PATH}/hangup.png`,
IMG_ACCEPT: `${PATH}/dialing.png`,
IMG_SPEAKER_FALSE:`${PATH}/speaker-false.png`,
IMG_SPEAKER_TRUE:`${PATH}/speaker-true.png`,
IMG_AUDIO_TRUE:`${PATH}/audio-true.png`,
IMG_AUDIO_FALSE:`${PATH}/audio-false.png`,
IMG_CAMERA_TRUE:`${PATH}/camera-true.png`,
IMG_CAMERA_FALSE:`${PATH}/camera-false.png`,
IMG_TRANS:`${PATH}/trans.png`,
IMG_SWITCH_CAMERA:`${PATH}/switch_camera.png`,
IMG_SPEAKER_FALSE: `${PATH}/speaker-false.png`,
IMG_SPEAKER_TRUE: `${PATH}/speaker-true.png`,
IMG_AUDIO_TRUE: `${PATH}/audio-true.png`,
IMG_AUDIO_FALSE: `${PATH}/audio-false.png`,
IMG_CAMERA_TRUE: `${PATH}/camera-true.png`,
IMG_CAMERA_FALSE: `${PATH}/camera-false.png`,
IMG_TRANS: `${PATH}/trans.png`,
IMG_SWITCH_CAMERA: `${PATH}/groupCall-switch_camera.svg`,
IMG_VIRTUALBACKGROUND_MINI: `${PATH}/groupCall-virtualBackground.svg`,
},

@@ -95,2 +102,5 @@ observers: {

},
async setBlurBackground() {
await TUICallKitServer.setBlurBackground(!this.data.isVirtualBackground);
},
pusherStateChangeHandler(e) {

@@ -97,0 +107,0 @@ TUICallKitServer._tuiCallEngine._pusherStateChangeHandler(e);

@@ -38,2 +38,8 @@ import { TUICallKitServer, CallMediaType } from "../../../TUICallService/index";

},
enableVirtualBackground: {
type: Boolean,
},
isVirtualBackground: {
type: Boolean,
},
},

@@ -54,2 +60,5 @@ data: {

IMG_MINIMIZE_WHITE: `${PATH}/minimize-white.png`,
IMG_VIRTUALBACKGROUND_OPEN: `${PATH}/virtualBackground-open.png`,
IMG_VIRTUALBACKGROUND_CLOSE: `${PATH}/virtualBackground-close.png`,
IMG_VIRTUALBACKGROUND_MINI: `${PATH}/virtualBackground-mini.png`,
// 使用空字符串作为属性传入,属性更新不会更新live-pusher

@@ -95,2 +104,5 @@ pictureMode: "push",

},
async setBlurBackground() {
await TUICallKitServer.setBlurBackground(!this.data.isVirtualBackground);
},
toggleViewSize() {

@@ -97,0 +109,0 @@ TUICallKitServer.switchScreen(

@@ -20,2 +20,4 @@ import { TUICallKitServer, TUIStore, StoreName, NAME } from "../index";

ENABLE_FLOAT_WINDOW,
IS_SHOW_ENABLE_VIRTUAL_BACKGROUND,
ENABLE_VIRTUAL_BACKGROUND
} = NAME;

@@ -40,2 +42,4 @@

enableFloatWindow: TUIStore.getData(StoreName.CALL, ENABLE_FLOAT_WINDOW), // 开启/关闭悬浮窗功能,设置为false,通话界面左上角的悬浮窗按钮会隐藏
enableVirtualBackground: TUIStore.getData(StoreName.CALL, IS_SHOW_ENABLE_VIRTUAL_BACKGROUND), // 开启/关闭虚拟背景功能,设置为 false,通话界面的虚拟背景按钮会隐藏
isVirtualBackground: TUIStore.getData(StoreName.CALL, ENABLE_VIRTUAL_BACKGROUND), // 当前是否是虚拟背景模式
watchOptions: {},

@@ -159,2 +163,12 @@ },

},
handleEnableVirtualChange(value) {
this.setData({
enableVirtualBackground: value,
});
},
handleBackgroundChange(value) {
this.setData({
isVirtualBackground: value,
});
}
},

@@ -180,2 +194,4 @@

[ENABLE_FLOAT_WINDOW]: this.handleFloatWindowChange.bind(this),
[IS_SHOW_ENABLE_VIRTUAL_BACKGROUND]: this.handleEnableVirtualChange.bind(this),
[ENABLE_VIRTUAL_BACKGROUND]: this.handleBackgroundChange.bind(this),
};

@@ -182,0 +198,0 @@ this.setData({ watchOptions });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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