This demo demonstrates basic audio call functionality of the Voximplant Flutter SDK.
It is possible to make audio calls with any application (mobile or web) that have integrated Voximplant SDKs.
The application is able to:
- log in to the Voximplant Cloud
- auto login using access tokens
- make an audio call
- receive an incoming call
- put a call on hold / take it off hold
- change an audio device (speaker, receiver, wired headset, bluetooth headset) during a call
- mute audio during a call
- play VIAudioFile progresstone on ringing
- push notifications
- CallKit integration (iOS)
To get started, you'll need to register a free Voximplant developer account.
You'll need the following:
- Voximplant application
- two Voximplant users
- VoxEngine scenario
- routing setup
- VoIP services certificate for iOS push notifications. Follow this tutorial to upload the certificate to the Voximplant Control Panel
- Push certificate for Android push notifications. Follow this tutorial to upload the certificate to the Voximplant Control Panel
We've implemented a special template to enable you to quickly use the demo – just install SDK tutorial from our marketplace:
You can set up it manually using our Getting started guide and tutorials
require(Modules.PushService);
VoxEngine.addEventListener(AppEvents.CallAlerting, (e) => {
const newCall = VoxEngine.callUserDirect(
e.call,
e.destination,
e.callerid,
e.displayName,
null
);
VoxEngine.easyProcess(e.call, newCall, ()=>{}, true);
});
- Clone this repo
- Run
flutter pub get
Log in using:
- Voximplant user name in the format
[email protected]
- password
Enter a Voximplant user name to the input field and press "Call" button to make a call.
In these demo sound resources are used whose authors are:
- fennelliott_beeping.wav by author fennelliott with CC-BY-3.0 license