This article explains how to make in-app calls, including peer-to-peer and video calls.
Create an application and a user
To create an application, go to the Voximplant control panel and log into your account or create a new one. Then choose the application section from the menu in the upper left corner and click New application in the upper right corner or Create at the bottom of page:
This opens a New application editor window where you can set it up and save by clicking Create.
After that, you need to create a user. Go to the Applications section and choose the necessary application. Then go to the Users section and click the Create a user button in the upper right corner (or in the middle of the screen if your app has no users):
Specify the username, password and display name for your new user, and click Create.
Create a scenario
Open your application, select Scenarios on the left menu, and click on the plus icon and give your scenario a name:
This opens a new tab in the online IDE on the right. This is where you write your code. If needed, you can rename the scenario or change the source code later.
How to call a Voximplant user
How to make a peer-to-peer call
Peer-to-peer calls connect users directly, avoiding Voximplant servers. It provides better security and call quality, but less stability, because the call depends on the user's hardware and internet connection only.
To make a peer-to-peer call, use the callUserDirect method: