Comments (4)
In Android SDK we have similar callbacks:
/**
* Called in case when opponent has rejected your call
*/
override fun onCallRejectByUser(session: RTCSession, userId: Int, userInfo: MutableMap<String, String>?) {}
and
/**
* Called in case when opponent hung up
*/
override fun onReceiveHangUpFromUser(session: RTCSession, userId: Int, userInfo: MutableMap<String, String>?) {}
More info you can found in our documentation.
from android-messenger-app.
@TatankaConCube thanks for the info, but i've tried using these events. It works for the call initiator i.e. deviceC. But in my case deviceA and deviceB and are opponents with same user logged in, and none of the following events are invoked to the deviceB after deviceA accepted or rejected the call.
I deviceA rejects the call, onCallRejectByUser event will be invoked in deviceC but in deviceB no events are invoked. I've tried this in the sample application.
I want to dismiss the incoming call screen when same user accepts the call from another device.
/**
* Called in case when opponent has rejected your call
*/
override fun onCallRejectByUser(session: RTCSession, userId: Int, userInfo: MutableMap<String, String>?) {}
And
/**
* Called in case when opponent hung up
*/
override fun onReceiveHangUpFromUser(session: RTCSession, userId: Int, userInfo: MutableMap<String, String>?) {}
And
/**
* Called in case when opponent accept the call
*/
override fun onCallAcceptByUser(session: RTCSession, userId: Int, userInfo: MutableMap<String, String>?) {}
from android-messenger-app.
As a variant you can organise additional signalling via System messages feature. Oriented logic will be:
- deviceA sends system message for himself (userX) with parameter
self_action=accept
(self_action=reject
,self_action=hang_up
for another actions) andtype=self_signalling
when does Accept call (or another) action; - deviceB receives this message and does needed actions (close call screen, etc.);
from android-messenger-app.
@TatankaConCube Thank you very much. I did implemented the purposed solution, it worked :)
from android-messenger-app.
Related Issues (20)
- base occupants_ids field must contain an opponent user id HOT 1
- ConnectycubeChatService.getInstance().isLoggedIn is false even after login HOT 1
- Can't find account key HOT 1
- No incoming call notification HOT 2
- Can we create a group dialog with 2 members and Add new members successively? HOT 6
- Android 10 ,11, and above HOT 13
- User Issue HOT 7
- Push is being sent to both environments even I'm defining only one HOT 1
- Call Reject and and accept through notification HOT 2
- base You don't have appropriate permissions to perform this operation HOT 3
- Call Ringing Status HOT 11
- Issue is a tech one heads Up HOT 1
- calling screen open when app is killed mode? HOT 3
- Admin dasboard not opening, Users getting base forbidden after login HOT 3
- App doesnt work in latest version. HOT 2
- Getting 9 chat dialogs in app only out 200+ chat dialogs as seen in dashboard HOT 11
- The SDK (Your Server ) is blocked in many countries HOT 2
- Connectycube android VideoChatWebRTCSignalingManager not getting assigned HOT 3
- ConnectyCube resets or deletes the user FCM Token from Firebase Messaging as well for the device after unsubscribe from pushes HOT 7
- How to send a list of chat messages from other screen than chat message screen HOT 3
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 android-messenger-app.