VideoUIKit-Flutter
VideoUIKit-Flutter copied to clipboard
Peer to peer video calls
I have 100 users. How can I make a peer to peer calls(only between two individuals) for those users. How to differentiate channel names etc for not overlapping the calls
@SrujanMungara You just have to pass the unique channel name inside the AgoraConnectionData
. For example:
var channelName = "MyChannelOne";
final AgoraClient client = AgoraClient(
agoraConnectionData: AgoraConnectionData(
appId: "<--Add Your App Id Here-->",
channelName: channelName,
),
);
Random channelNames have to be created when users try to connect to the other user? I need to make 50 different calls to 50 different individuals(ONE TO ONE ) calls
A random string channel name for the UIKit needs to be declared before you declare your AgoraConnectionData
config. For example, you can create a login screen before the video call page where the user who want to join the same call enter a channel name. You can then used this channel name passed by the user to setup your AgoraConnectionData
.
My requirement is identical to a whatsapp video/voice call. No need for the user to enter anything. I need to connect to the receiver directly.
@SrujanMungara seems like your requirements are the same as mine. I want to integrate direct video calls like WhatsApp but right now I am unable to find such a thing. Is this your problem statement? And did you find anything?
@SrujanMungara @arslankaleem7229 The user doesn't necessarily have to enter the channel name. This can be a random string that is shared between the 2 users.
There is now a Layout.oneToOne
added in the newest version. And like @Meherdeep mentioned, you don't need to prompt your users for a channelName. It can be done behind the scenes in your application code, I sometimes use the hostUID
as the channel name, but it can be any string as long as both users use the same one