Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peer to peer video calls #93

Closed
SrujanMungara opened this issue Jul 5, 2022 · 7 comments
Closed

Peer to peer video calls #93

SrujanMungara opened this issue Jul 5, 2022 · 7 comments

Comments

@SrujanMungara
Copy link

SrujanMungara commented Jul 5, 2022

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

@Meherdeep
Copy link
Contributor

@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,
  ),
);

@SrujanMungara
Copy link
Author

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

@Meherdeep
Copy link
Contributor

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.

@SrujanMungara
Copy link
Author

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.

@arslankaleem7229
Copy link

@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?

@Meherdeep
Copy link
Contributor

@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.

@tadaspetra
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants