Skip to content

Commit add342a

Browse files
committed
支持接听登录前,已发起但尚未挂断的音视频通话 fix #113
1 parent a391e73 commit add342a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/wfc/av/engine/avenginekitproxy.js

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import Conversation from "../../../wfc/model/conversation";
1515

1616
import CallEndReason from "./callEndReason";
1717
import CallByeMessageContent from "../messages/callByeMessageContent";
18+
import WfcAVEngineKit from "./avenginekit";
1819

1920
// main window renderer process -> voip window renderer process
2021
// voip window renderer process -> main process -> main window renderer process
@@ -53,6 +54,7 @@ export class AvEngineKitProxy {
5354
* @param wfc
5455
*/
5556
setup(wfc) {
57+
console.log('avengineProxy, setup');
5658
if (this.wfc === wfc) {
5759
console.log('re-setup, just ignore');
5860
return;
@@ -164,6 +166,7 @@ export class AvEngineKitProxy {
164166

165167
// 收到消息时,timestamp已经过修正,后面使用时,不用考虑和服务器的时间差
166168
onReceiveMessage = (msg) => {
169+
console.log('avengineProxy, on receive message', msg);
167170
if (!Config.ENABLE_MULTI_VOIP_CALL && msg.conversation.type === ConversationType.Group) {
168171
console.log('not enable multi call ');
169172
return;
@@ -180,6 +183,7 @@ export class AvEngineKitProxy {
180183
let delta = wfc.getServerDeltaTime();
181184
if (now - (numberValue(msg.timestamp) - delta) >= 90 * 1000) {
182185
// 消息已失效,不做处理
186+
console.log('avengineProxy, message outdated, just ignore', msg);
183187
return;
184188
}
185189
let content = msg.messageContent;

src/wfc/proto/proto.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)