Comments (4)
You can add a "Accept Call" phase before the parties video/audio starts. This isn't planned at this time. You can add this feature here near this function: https://github.com/stephenlb/webrtc-sdk/blob/master/index.html#L196-L208
I'll walk you through this:
Before the Sending the Video/Audio Stream, send a signal to ask for call permission:
let user_number = "1235445"; // my friends number
phone.send( { "accept" : "Would you like to accept this call?" }, user_number );
Like this:
function call_request(number) {
phone.send( { "accept" : "Would you like to accept this call?" }, user_number );
}
function call_accepted() {
// start voice/video session
phone.dial(user_number);
}
function call_rejected() {
// show call rejected screen
}
from webrtc-sdk.
from webrtc-sdk.
That is a really cool feature!
from webrtc-sdk.
Is there any milestone for this new feature?
from webrtc-sdk.
Related Issues (20)
- Mac - Safari. TypeError: talk.pc.addStream is not a function. HOT 4
- Deprecated. URL.createObjectURL HOT 2
- Sometimes session.video is whitout a stream HOT 11
- Safari 12 issue. The browser doesn't receive the call HOT 10
- session.snap sometimes takes my own camera photo instead of the caller HOT 2
- Video always freezes! HOT 12
- Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). HOT 4
- How to show caller video HOT 4
- Delete call from history HOT 1
- How to enable Pubnub Access Manager with video call sdk? HOT 1
- Need a list of users that are ready for a call. HOT 2
- Android Native Java Compatible HOT 1
- Double Friends Stream HOT 6
- trying to move other webRtc to this one. HOT 1
- 1 to many Broadcast, prevent viewer from send audio HOT 6
- Works perfectly on same wifi HOT 2
- Adaptation to Angular 8 HOT 1
- video chat presence HOT 1
- The sound is not transmitting HOT 1
- Using five or more STUN/TURN servers causes problems HOT 8
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 webrtc-sdk.