Comments (5)
it will cantains data which you send in callSession.reject({"reason": "BUSY"});
when busy user does reject
from connectycube-flutter-samples.
@ShyamKrishna122 you can store call details in database when call is in process and when call finish delete the call related data.so before making call you check for call details for other user and if you find call details in database that means user is busy in call..
hope i am making sense
from connectycube-flutter-samples.
additionally to @wrteam-priyansh solution you can use additional parameters when you reject the call, it can looks like callSession.reject({"reason": "BUSY"});
and on the caller side in the callback onCallRejectedByUser
you can check this parameter like:
_callSession.onCallRejectedByUser = _onCallRejectedByUser;
void _onCallRejectedByUser(P2PSession session, int userId, Map<String, String> userInfo) {
if (userInfo.isNotEmpty && userInfo.containsKey("reason")) {
String reason = userInfo["reason"];
if (reason == "BUSY") {
// user is busy, do needed actions
}
}
}
from connectycube-flutter-samples.
Thank you guys but what will userInfo contains?
from connectycube-flutter-samples.
Thank you I will try implementing it
from connectycube-flutter-samples.
Related Issues (20)
- Voip kit is not working in terminated state HOT 7
- how to handle session expiration while chat is ongoing HOT 7
- Add existings users of my application to connetycube HOT 3
- Adding user to dialog which does not exist in user. HOT 21
- Seeking Guidance on Enhancing Video Quality and Layout in Flutter Video Calling App HOT 9
- Package name changes on application already on the connectycube hobby plan HOT 3
- Get unread count based on user HOT 2
- Flutter Web P2P call white screen HOT 5
- Multiple Device login in web for p2p calls HOT 4
- low audio volume when video calls connected across platforms HOT 1
- QUESTION - Is there any limitation on the duration of calls monthly? HOT 6
- issue with public group HOT 16
- p2p Call and Chat messanger in one application
- User Session Times Out and doesn't reconnect HOT 1
- Issue with ConnectyCube User Session Token Creation - "Unexpected Signature" HOT 23
- When internet is slow, getting a timeout log but not getting a callback HOT 5
- Cannot create chat group with more than 30 people HOT 4
- Notifications send to all attendees [even the host] HOT 2
- Reject call from notifications not ending the call for the other opponent HOT 23
- Notifications and incoming call screen appear on the same time, when the app is open. HOT 11
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 connectycube-flutter-samples.