Video calls are a great way to enhance user experience and provide an environment for communication. However, we may not always need to use the camera and the job can be done by audio communication only.
That's where third-party service providers like ZegoCloud come in. ZegoCloud offers a hassle-free solution that allows you to create your Audio call module in no time. With ZegoCloud, you can take advantage of the latest features and updates without worrying about any maintenance or update issues. This ensures that your Audio call module is always up and running, providing a seamless user experience.
Get ZEGOCLOUD UIKits (low code) for 10,000 free mins: bit.ly/3O0rDIV
Learn more about ZEGOCLOUD audio call API: bit.ly/3Idhnti
ZEGOCLOUD Voice & Video Call API: bit.ly/3O0YWLZ
ZEGOCLOUD video call SDK &API allows you to easily build your live video chat apps within minutes.
Video Explanation
Documentation Problem
When I read the official documentation, it simply asks to do the following changes and an Audio Only call should Start.
// Modify your custom configurations here.
config: ZegoUIKitPrebuiltCallConfig.oneOnOneVideoCall()
..turnOnCameraWhenJoining = false
..turnOnMicrophoneWhenJoining = false
..useSpeakerWhenJoining = true,
);
However, reading the code doesn't seem so and while experimenting with the UI Kit I Found an even better way to do it.
Audio Call Button
Just as we added a Video call button in the previous video, We will add a new Audio call button to call the Audio call widget.
Adding Audio Call
We can simply create an `audio_call*.dart`* file and copy the video call code there and change the widget name.
once done, just replace the ZegoUIKitPrebuiltCallConfig.oneOnOneVideoCall(),
with config: ZegoUIKitPrebuiltCallConfig.oneOnOneVoiceCall(),
and we are good to go.
This is part of a Youtube Series Called: Social Media App Using Flutter and ZegoCloud | Voice Call, Video Call, Live Streaming and Timelines
You can Watch the Videos Here: https://www.youtube.com/playlist?list=PLlFwzkUNmr96CRZQCekbHRW22x8vJD573