Reputation: 19
I have gone through agora flutter quickstart sample app but there we are giving channel name which should be same on both sides. Now for a dynamic number how do we generate dynamic channel name which will be same for sender and receiver . As i am new to Agora am not able to link the dynamic channel name.
The code is same as Agora quickstart sample app.Also I am having the APP ID and temp token generated But not able to understand where do we use the temp token.Your help will be appreciated.
Thank you
Upvotes: 2
Views: 3003
Reputation: 873
For joining a channel, you have to pass the following parameters:
joinChannel(String token, String channelId, String info, int uid)
Where token, info, and uid are optional fields. While channel name is a required field. So you can pass the joinChannel function like:
joinChannel(null, 'channelName', null, 0)
You can either take an input for the channel name and use it to join a channel or you can simply pass the channel name inside the function as shown above.
To generate a token go to this link: https://docs.agora.io/en/Interactive%20Broadcast/token_server_python?platform=Python
This will help you generate a token from your server. There are multiple options available for the language you want to develop in, use that to generate your token.
You can get more information about the passed attributes and other functions over here
Upvotes: 2