Comments (1)
avenginekitproxy.js
里面有两个方法:emitToVoip
和listenVoipEvent
- 在音视频通话窗口,即
Single.vue
里面,通过listenVoipEvent
监听请求挂断事件,收到挂断事件时,执行session.hangup()
进行挂断 - 需要从主窗口挂断音视频通话时,通过
emitToVoip
发送请求挂断事件
下面是参考代码:
// HomePage.vue
avenginekitproxy.emitToVoip('hangupNow', {
// 可以传一些参数
})
// Single.vue
avenginekitproxy.listenVoipEvent('hangupNow', (event, args) => {
this.session.hangup();
// ....
}
from vue-chat.
Related Issues (20)
- 发送截图有时候发送失败 HOT 3
- 输入框鼠标右击粘贴没有反应
- 能不能搜索历史消息 HOT 1
- 发送的图片在苹果app上看不到。 点击之后可以看到 HOT 8
- 添加主页面直接使用音视频功能的演示代码 HOT 1
- 哪个字段可以判断自己是否已被移出群聊? HOT 2
- 如何给新消息设置提示音? HOT 2
- 群聊音视频中,如何判断邀请成员的连接状态? HOT 2
- 群聊音视频中,如何判断是哪位成员在发言? HOT 3
- 为什么未知消息不计算未读数? HOT 3
- 关于跳转到未读消息第一条功能 HOT 3
- error:0308010C:digital envelope routines::unsupported HOT 2
- 视频通话,切换到到语音通话时,UI 显示错误
- 如何监听收到新消息? HOT 1
- https页面发送语音消息,地址返回http的问题导致资源被屏蔽 HOT 1
- 发起音视频通话时,内存泄漏 HOT 3
- 拨打语音前两次加载不出来
- web端获取历史数据,获取语音通话时长
- 选择联系人界面优化 HOT 1
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 vue-chat.