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
0
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 3.3.3-beta.1 to 3.3.3-beta.2

2

package.json
{
"name": "@tencentcloud/call-uikit-wechat",
"version": "3.3.3-beta.1",
"version": "3.3.3-beta.2",
"main": "./tuicall-uikit-vue.umd.js",

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

@@ -17,3 +17,3 @@ import {

} from './TUICallService/index';
const Version = '3.3.3-beta.1'; // basic-demo 原来上报使用
const Version = '3.3.3-beta.2'; // basic-demo 原来上报使用

@@ -20,0 +20,0 @@ // 输出产物

@@ -13,2 +13,4 @@ import { CallStatus, NAME, CallRole } from '../const/index';

private _callStatus: string = CallStatus.IDLE;
private _audioInterruptionBeginHandler: any = null;
private _audioInterruptionEndHandler: any = null;

@@ -92,22 +94,22 @@ constructor() {

}
private async _handleAudioInterruptionEnd() {
await this.play();
}
private _handleBellContextError(errMsg, errorCode) {
console.log('bellContext', errMsg, errorCode);
}
private _addListenBellContextEvent() {
this._bellContext?.onError(this._handleBellContextError);
this._audioInterruptionBeginHandler = this._handleAudioInterruptionBegin.bind(this);
this._audioInterruptionEndHandler = this._handleAudioInterruptionEnd.bind(this);
// @ts-ignore
wx.onAudioInterruptionBegin(this._handleAudioInterruptionBegin);
wx.onAudioInterruptionBegin(this._audioInterruptionBeginHandler);
// @ts-ignore
wx.onAudioInterruptionEnd(this._handleAudioInterruptionEnd);
wx.onAudioInterruptionEnd(this._audioInterruptionEndHandler);
}
private _removeListenBellContextEvent() {
this._bellContext.offError(this._handleBellContextError);
// @ts-ignore
wx.offAudioInterruptionBegin(this._handleAudioInterruptionBegin);
wx.offAudioInterruptionBegin(this._audioInterruptionBeginHandler);
// @ts-ignore
wx.offAudioInterruptionEnd(this._handleAudioInterruptionEnd);
wx.offAudioInterruptionEnd(this._audioInterruptionEndHandler);
}
}

@@ -30,3 +30,3 @@ import {

uiDesign.setTUIStore(TUIStore);
const version = '3.3.3-beta.1';
const version = '3.3.3-beta.2';
export { TUIGlobal, TUIStore, uiDesign };

@@ -54,3 +54,2 @@

this._watchTUIStore();
this._bellContext = new BellContext();
this._chatCombine = ChatCombine.getInstance({ callService: this });

@@ -88,2 +87,3 @@ this._engineEventHandler = EngineEventHandler.getInstance({ callService: this });

this._addListenTuiCallEngineEvent();
this._bellContext = new BellContext();
TUIStore.update(StoreName.CALL, NAME.LOCAL_USER_INFO, { userId: userID });

@@ -117,2 +117,4 @@ TUIStore.update(StoreName.CALL, NAME.LOCAL_USER_INFO_EXCLUDE_VOLUMN, { userId: userID });

}
this._bellContext?.destroy();
this._bellContext = null;
} catch (error) {

@@ -119,0 +121,0 @@ console.error(`${NAME.PREFIX}destroyed failed, error: ${error}.`);

@@ -8,2 +8,4 @@ import { IBellParams } from '../interface/index';

private _callStatus;
private _audioInterruptionBeginHandler;
private _audioInterruptionEndHandler;
constructor();

@@ -18,5 +20,4 @@ setBellSrc(): void;

private _handleAudioInterruptionEnd;
private _handleBellContextError;
private _addListenBellContextEvent;
private _removeListenBellContextEvent;
}

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

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

Sorry, the diff of this file is not supported yet

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